-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
45 lines (40 loc) · 1.04 KB
/
build.gradle.kts
File metadata and controls
45 lines (40 loc) · 1.04 KB
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
import kotlin.collections.plus
import org.gradle.kotlin.dsl.withType
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
java
`java-library`
`maven-publish`
}
tasks {
withType<JavaCompile> {
sourceCompatibility = JavaVersion.VERSION_1_8.toString()
targetCompatibility = JavaVersion.VERSION_1_8.toString()
options.encoding = "UTF-8"
options.compilerArgs.add("-Xlint:all")
options.compilerArgs.add("-Xlint:-options")
options.compilerArgs.add("-Werror")
}
withType<KotlinCompile> {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
freeCompilerArgs += "-Xsam-conversions=class"
allWarningsAsErrors = true
}
}
}
repositories {
mavenCentral()
githubPackages(project, "UnitTestBot/jacodb")
maven("https://jitpack.io")
}
dependencies {
compileOnly(Libs.jacodb_api_jvm)
}
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
}
}
}