forked from chimbori/crux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
61 lines (50 loc) · 1.41 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
60
61
import org.jetbrains.kotlin.gradle.dsl.ExplicitApiMode.Strict
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.8.21"
id("com.github.ben-manes.versions") version "0.45.0"
id("com.vanniktech.maven.publish") version "0.24.0"
}
repositories {
mavenCentral()
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath(kotlin("gradle-plugin", version = "1.8.21"))
classpath("com.github.ben-manes:gradle-versions-plugin:0.45.0")
classpath("com.vanniktech:gradle-maven-publish-plugin:0.25.2")
}
}
dependencies {
api("org.jsoup:jsoup:1.16.1")
api("com.squareup.okhttp3:okhttp:4.10.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.0")
implementation("com.beust:klaxon:5.6")
testImplementation("com.squareup.okhttp3:logging-interceptor:4.10.0")
testImplementation("com.squareup.okhttp3:mockwebserver:4.10.0")
testImplementation("junit:junit:4.13.2")
}
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()
}