-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
63 lines (49 loc) · 1.15 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
59
60
61
62
63
plugins {
id 'java'
id 'application'
}
group = 'dev.mrtecno'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
application {
mainClass = 'dev.mrtecno.juno.Juno'
}
dependencies {
implementation 'com.googlecode.json-simple:json-simple:1.1.1'
compileOnly 'org.projectlombok:lombok:1.18.32'
annotationProcessor 'org.projectlombok:lombok:1.18.32'
testCompileOnly 'org.projectlombok:lombok:1.18.32'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.32'
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation 'org.junit.jupiter:junit-jupiter'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(22)
}
}
clean {
delete 'plugins'
}
tasks.run {
dependsOn 'assemble'
}
tasks.register('testJar', Jar) {
dependsOn testClasses
archiveClassifier = 'test'
from sourceSets.test.output
}
tasks.register("copyPlugin", Copy) {
into 'plugins'
from tasks.testJar.outputs
}
tasks.named('assemble').configure {
dependsOn 'testJar'
dependsOn 'copyPlugin'
}
test {
useJUnitPlatform()
}