-
-
Notifications
You must be signed in to change notification settings - Fork 43
/
build.gradle.kts
59 lines (48 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import org.jetbrains.kotlin.gradle.dsl.ExplicitApiMode.Strict
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
alias(libs.plugins.kotlin.jvm)
alias(libs.plugins.ben.manes.versions)
alias(libs.plugins.maven.publish)
}
repositories {
mavenCentral()
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath(libs.kotlin.plugin)
}
}
dependencies {
api(libs.jsoup)
api(libs.okhttp)
implementation(libs.coroutines.core)
implementation(libs.klaxon)
testImplementation(libs.okhttp.mockwebserver)
testImplementation(libs.okhttp.logging)
testImplementation(libs.junit)
}
configurations.all {
// Re-run tests every time test cases are updated, even if sources haven’t changed.
resolutionStrategy.cacheChangingModulesFor(0, "seconds")
}
tasks.jar {
archiveBaseName.set("crux")
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
allWarningsAsErrors = true
}
}
kotlin {
explicitApi = Strict
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of("11"))
}
}
mavenPublishing {
signAllPublications()
}