-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle.kts
50 lines (41 loc) · 1.3 KB
/
build.gradle.kts
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
plugins {
java
`maven-publish`
}
group = "dev.xdark"
version = "2.1.0"
repositories.mavenCentral()
dependencies {
val junitVersion = "5.10.1"
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitVersion")
testImplementation("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
testImplementation("org.junit.jupiter:junit-jupiter-params:$junitVersion")
val asmVersion = "9.7"
testImplementation("org.ow2.asm:asm:$asmVersion")
testImplementation("org.ow2.asm:asm-tree:$asmVersion")
val annotationsVersion = "24.1.0"
compileOnly("org.jetbrains:annotations:$annotationsVersion")
testCompileOnly("org.jetbrains:annotations:$annotationsVersion")
}
tasks.withType<JavaCompile>().configureEach {
options.compilerArgs.addAll(listOf("-parameters", "-g:lines,source,vars"))
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
withSourcesJar()
}
publishing {
publications.create<MavenPublication>("maven") {
groupId = project.group.toString()
artifactId = project.name
version = project.version.toString()
pom {
name = "jlinker"
description = "Java member resolution library"
}
from(components["java"])
}
}