-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
51 lines (42 loc) · 960 Bytes
/
build.gradle
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
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.7.0'
id 'org.jetbrains.kotlin.plugin.serialization' version '1.7.0'
id "com.diffplug.spotless" version "5.12.5"
id 'maven-publish'
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.0'
}
spotless {
kotlin {
ktfmt('0.25').kotlinlangStyle()
endWithNewline()
}
}
group = "com.github.Starlight220"
version = "1.0"
java {
withSourcesJar()
withJavadocJar()
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
afterEvaluate {
artifactId = jar.archiveBaseName.get()
}
}
}
}
kotlin.explicitApi()
dependencies {
api('org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.0')
testImplementation('org.jetbrains.kotlin:kotlin-test')
}
tasks.test {
useJUnitPlatform()
}