-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
52 lines (46 loc) · 1.28 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
51
52
/*
* This file was generated by the Gradle 'init' task.
*
* This is a general purpose Gradle build.
* Learn more about Gradle by exploring our samples at https://docs.gradle.org/7.4.2/samples
*/
plugins {
java
kotlin("jvm") version "1.7.10"
}
group = "cn.uniondrug.dev"
allprojects {
val lombok = "1.18.20"
val jdk = JavaVersion.VERSION_11.toString()
apply {
plugin("java")
plugin("org.jetbrains.kotlin.jvm")
}
repositories {
mavenLocal()
maven { url = uri("https://maven.aliyun.com/repository/public") }
mavenCentral()
}
dependencies {
compileOnly("org.projectlombok:lombok:$lombok")
annotationProcessor("org.projectlombok:lombok:$lombok")
testCompileOnly("org.projectlombok:lombok:$lombok")
testAnnotationProcessor("org.projectlombok:lombok:$lombok")
}
tasks {
compileJava {
options.release.set(jdk.toInt())
options.compilerArgs.add("-parameters")
}
compileTestJava {
options.release.set(jdk.toInt())
options.compilerArgs.add("-parameters")
}
compileKotlin {
kotlinOptions.jvmTarget = jdk
}
compileTestKotlin {
kotlinOptions.jvmTarget = jdk
}
}
}