@@ -4,36 +4,39 @@ plugins {
4
4
val kotlinVersion = " 1.6.10"
5
5
kotlin(" jvm" ) version kotlinVersion
6
6
jacoco
7
+ `java- library`
8
+ `maven- publish`
7
9
}
8
10
9
11
dependencies {
10
12
implementation(platform(" org.jetbrains.kotlin:kotlin-bom" ))
11
13
12
14
val kotlinxSerializationVersion = " 1.3.1"
13
- implementation(project.dependencies.enforcedPlatform (" org.jetbrains.kotlinx:kotlinx-serialization-bom:$kotlinxSerializationVersion " ))
15
+ implementation(platform (" org.jetbrains.kotlinx:kotlinx-serialization-bom:$kotlinxSerializationVersion " ))
14
16
api(" org.jetbrains.kotlinx:kotlinx-serialization-core" )
15
17
api(" org.jetbrains.kotlinx:kotlinx-serialization-json" )
16
18
17
19
val junitVersion = " 5.8.2"
18
- testImplementation(enforcedPlatform (" org.junit:junit-bom:$junitVersion " ))
20
+ testImplementation(platform (" org.junit:junit-bom:$junitVersion " ))
19
21
testImplementation(" org.junit.jupiter:junit-jupiter" )
20
22
testRuntimeOnly(" org.junit.platform:junit-platform-launcher" ) {
21
23
because(" Only needed to run tests in a version of IntelliJ IDEA that bundles older versions" )
22
24
}
23
25
24
26
val kotestVersion = " 5.0.3"
25
- testImplementation(enforcedPlatform (" io.kotest:kotest-bom:$kotestVersion " ))
27
+ testImplementation(platform (" io.kotest:kotest-bom:$kotestVersion " ))
26
28
testImplementation(" io.kotest:kotest-runner-junit5:$kotestVersion " )
27
29
testImplementation(" io.kotest:kotest-assertions-core:$kotestVersion " )
28
30
testImplementation(" io.kotest:kotest-property:$kotestVersion " )
29
31
testImplementation(" io.kotest:kotest-assertions-json:$kotestVersion " )
30
32
}
31
33
32
34
group = " at.syntaxerror"
33
- version = " 2.0.0 "
35
+ version = " 2.0.2 "
34
36
description = " JSON5 for Kotlin"
35
37
36
38
java {
39
+ withJavadocJar()
37
40
withSourcesJar()
38
41
}
39
42
@@ -92,4 +95,19 @@ tasks.withType<JavaCompile> {
92
95
93
96
tasks.wrapper {
94
97
gradleVersion = " 7.3.2"
98
+ distributionType = Wrapper .DistributionType .ALL
99
+ }
100
+
101
+ tasks.javadoc {
102
+ if (JavaVersion .current().isJava9Compatible) {
103
+ (options as StandardJavadocDocletOptions ).addBooleanOption(" html5" , true )
104
+ }
105
+ }
106
+
107
+ publishing {
108
+ publications {
109
+ create<MavenPublication >(" mavenJava" ) {
110
+ from(components[" java" ])
111
+ }
112
+ }
95
113
}
0 commit comments