-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
46 lines (37 loc) · 958 Bytes
/
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
plugins {
// `maven-publish`
id("maven-publish")
kotlin("jvm") version Versions.kotlin
kotlin("plugin.serialization") version Versions.kotlin
}
group = "ss.kutil"
version = "1.03"
repositories {
jcenter()
mavenCentral()
// mavenLocal()
}
val sourcesJar by tasks.creating(Jar::class) {
dependsOn(JavaPlugin.CLASSES_TASK_NAME)
@Suppress("DEPRECATION")
classifier = "sources"
from(sourceSets["main"].allSource)
}
publishing {
publications {
create<MavenPublication>("default") {
from(components["java"])
artifact(sourcesJar)
}
}
repositories {
mavenLocal()
}
}
dependencies {
implementation(kotlin("stdlib-jdk7"))
implementation(kotlin("stdlib-jdk8"))
implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime:${Versions.serialization}")
testImplementation(kotlin("test"))
testImplementation(kotlin("test-junit"))
}