-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
44 lines (37 loc) · 1.08 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
plugins {
id("base")
id("idea")
id("org.jetbrains.kotlin.jvm") version Versions.kotlinVersion apply false
id("net.researchgate.release") version "3.0.2"
}
allprojects {
group = "com.github.netomi.bat"
version = property("version") ?: "undefined"
repositories {
mavenCentral()
}
}
subprojects {
apply<JavaLibraryPlugin>()
apply<MavenPublishPlugin>()
configure<PublishingExtension> {
publications {
create<MavenPublication>(project.name) {
from(components["java"])
groupId = project.group.toString()
artifactId = project.name
version = project.version.toString()
}
}
repositories {
mavenLocal()
}
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
// enable invokedynamic generation for lanbdas (-Xlambdas=indy)
freeCompilerArgs = listOf("-Xjsr305=strict", "-Xjvm-default=all", "-Xlambdas=indy")
jvmTarget = "11"
}
}
}