-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
113 lines (97 loc) · 3.3 KB
/
build.gradle.kts
File metadata and controls
113 lines (97 loc) · 3.3 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
plugins {
kotlin("multiplatform") version "1.8.10"
id("com.vanniktech.maven.publish") version "0.24.0"
`maven-publish`
}
group = "io.github.merlinths"
version = "1.0.0"
val coroutineVersion = "1.6.4"
val kluentVersion = "1.72"
val mockkVersion = "1.13.4"
repositories {
mavenCentral()
}
mavenPublishing {
publishToMavenCentral(com.vanniktech.maven.publish.SonatypeHost.Companion.S01, true)
signAllPublications()
coordinates(groupId = group.toString(), "swing-flow", version.toString())
pom {
name.set("SwingFlow")
description.set("Kotlin Flow integration for Swing.")
inceptionYear.set("2023")
url.set("https://github.com/merlinths/swingflow")
licenses {
license {
name.set("The Apache License, Version 2.0")
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
distribution.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
developers {
developer {
id.set("merlinths")
name.set("Merlin Eden")
url.set("https://github.com/MerlinTHS/")
}
}
scm {
url.set("https://github.com/MerlinTHS/SwingFlow/")
connection.set("scm:git:git://github.com/merlinths/swingflow.git")
developerConnection.set("scm:git:ssh://git@github.com/merlinths/swingflow.git")
}
}
}
kotlin {
jvm {
compilations.all {
kotlinOptions {
freeCompilerArgs += listOf(
"-Xcontext-receivers",
"-XXLanguage:+ReferencesToSyntheticJavaProperties"
)
}
}
withJava()
testRuns["test"].executionTask.configure {
useJUnitPlatform()
}
}
sourceSets {
val jvmMain by getting {
dependencies {
implementation("io.github.microutils:kotlin-logging-jvm:3.0.4")
implementation("org.slf4j:slf4j-api:2.0.6")
implementation("org.slf4j:slf4j-simple:2.0.6")
implementation("org.jetbrains.kotlin:kotlin-reflect:1.8.10")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:$coroutineVersion")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-swing:$coroutineVersion")
}
}
val jvmTest by getting {
dependencies {
implementation(kotlin("test"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutineVersion")
implementation("org.amshove.kluent:kluent:$kluentVersion")
implementation("io.mockk:mockk:${mockkVersion}")
}
}
}
}
publishing {
publications {
create<MavenPublication>("default") {
from(components["kotlin"])
pom {
name.set("swing-flow")
description.set("Kotlin Flow integration for Swing.")
url.set("https://github.com/MerlinTHS/SwingFlow")
developers {
developer {
name.set("Merlin Eden")
url.set("https://github.com/MerlinTHS")
}
}
}
}
}
}