-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
38 lines (32 loc) · 979 Bytes
/
build.gradle
File metadata and controls
38 lines (32 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
plugins {
id 'java'
}
group = 'de.werwolf2303.NTify'
version = '1.0-SNAPSHOT'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
archivesBaseName = 'MSNStatusSupport'
repositories {
mavenCentral()
}
dependencies {
implementation 'net.java.dev.jna:jna:4.5.2'
implementation 'net.java.dev.jna:jna-platform:4.5.2'
def dir = file("../NTify")
def repo_jar_file = file("../NTify.jar")
if (dir.exists() && dir.isDirectory()) {
compileOnly files("${projectDir}/../NTify/target/NTify.jar")
} else {
if (repo_jar_file.exists() && !repo_jar_file.isDirectory()) {
compileOnly files(repo_jar_file)
}else {
compileOnly files("${projectDir}/NTify/target/NTify.jar")
}
}
}
task buildJar(type: Jar) {
from configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
from sourceSets.main.output
archiveFileName = 'MSNStatusSupport.jar'
}
build.dependsOn buildJar