-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
58 lines (46 loc) · 1.07 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
50
51
52
53
54
55
56
57
58
plugins {
id 'io.freefair.lombok' version '6.5.0.3' apply false
}
allprojects {
group = 'com.tisawesomeness'
version = '0.3.2'
}
subprojects {
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'io.freefair.lombok'
dependencies {
implementation 'com.google.code.findbugs:jsr305:3.0.2'
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.0'
testImplementation 'org.assertj:assertj-core:3.23.1'
}
test {
useJUnitPlatform()
}
java {
sourceCompatibility = '1.8'
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = "UTF-8"
}
}
def outputTasks() {
[":nh-spigot:shadowJar"].stream().map({ tasks.findByPath(it) })
}
task copyToOutput(type: Copy) {
outputTasks().forEach {
from(it)
}
rename '(.*)-all.jar', '$1.jar'
into 'build/libs'
}
task cleanOutput() {
delete fileTree("build/libs/").matching {
include "*.jar"
}
}
task clean() {
dependsOn cleanOutput
}
task build() {
dependsOn copyToOutput
}