-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle.kts
49 lines (38 loc) · 1.22 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
plugins {
kotlin("jvm") version "1.6.20"
kotlin("plugin.serialization") version "1.6.20"
`maven-publish`
}
group = "dev.cbyrne"
version = "0.2.2"
repositories {
mavenCentral()
}
sourceSets {
create("example")
}
val exampleImplementation by configurations
exampleImplementation.extendsFrom(configurations.implementation.get())
dependencies {
implementation(libs.kotlin.stdlib)
implementation(libs.kotlinx.serialization)
implementation(libs.kotlinx.coroutines)
implementation(libs.slf4j.api)
implementation(libs.junixsocket.core)
exampleImplementation(sourceSets.main.get().output)
// Log4J is only used in the example project as a backend for SLF4j
exampleImplementation(libs.log4j.core)
exampleImplementation(libs.log4j.api)
exampleImplementation(libs.log4j.slf4j)
}
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
}
}
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions.freeCompilerArgs += "-opt-in=kotlinx.serialization.ExperimentalSerializationApi"
kotlinOptions.freeCompilerArgs += "-opt-in=kotlinx.serialization.InternalSerializationApi"
}