-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
49 lines (37 loc) · 1.21 KB
/
build.gradle
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
39
40
41
42
43
44
45
46
47
48
49
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '7.1.2'
}
group = "io.github.qe7"
version = "1.0.6-SNAPSHOT"
repositories {
mavenCentral()
maven {
name = 'impactdevelopment-repo'
url = 'https://impactdevelopment.github.io/maven/'
}
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
tasks.withType(Javadoc).configureEach {
options.encoding = 'UTF-8'
}
tasks.withType(JavaExec).configureEach {
def osType = System.getProperty('os.name').toLowerCase().contains('windows') ? 'windows' : 'linux'
systemProperty 'java.library.path', "${projectDir}${File.separator}test_natives${File.separator}${osType}"
}
dependencies {
implementation 'com.google.code.gson:gson:2.11.0'
implementation 'commons-io:commons-io:2.16.1'
implementation 'com.github.ZeroMemes:Alpine:3.1.0'
implementation fileTree(dir: 'workspace/bin', include: ['*.jar'])
compileOnly 'org.projectlombok:lombok:1.18.16'
annotationProcessor 'org.projectlombok:lombok:1.18.16'
testCompileOnly 'org.projectlombok:lombok:1.18.16'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.16'
}
shadowJar {
mergeServiceFiles()
}
build.dependsOn shadowJar