-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
73 lines (60 loc) · 1.47 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
62
63
64
65
66
67
68
69
70
71
72
73
plugins {
id ("com.github.johnrengelman.shadow") version "7.1.2"
kotlin("jvm") version "1.7.10"
kotlin("plugin.serialization") version "1.7.10"
id("org.jetbrains.dokka") version "1.7.10"
`maven-publish`
}
group = "com.github.reviversmc.themodindex.api"
version = "9.2.1"
repositories {
mavenCentral()
}
dependencies {
api("com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:0.8.0")
api("com.squareup.retrofit2:retrofit:2.9.0")
api("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.3")
testApi(kotlin("test"))
testApi("com.squareup.okhttp3:mockwebserver:4.10.0")
}
tasks {
compileJava {
options.release.set(17)
}
compileKotlin {
kotlinOptions.jvmTarget = "17"
}
compileTestJava {
options.release.set(17)
}
compileTestKotlin {
kotlinOptions.jvmTarget = "17"
}
dokkaHtml {
dokkaSourceSets {
configureEach {
jdkVersion.set(17)
}
}
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
create<MavenPublication>("api") {
from(rootProject.components["kotlin"])
}
}
}
shadowJar {
archiveFileName.set(rootProject.name + "-" + rootProject.version + ".jar")
}
test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
}