Skip to content

Commit f18e56e

Browse files
committed
Add maven local publishing
1 parent 3dbd2ce commit f18e56e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

build.gradle.kts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
plugins {
22
kotlin("jvm") version "2.0.20"
33
id("org.jetbrains.kotlinx.kover") version "0.8.3"
4+
`maven-publish`
45
}
56

67
subprojects {
78
apply(plugin = "org.jetbrains.kotlin.jvm")
89
apply(plugin = "org.jetbrains.kotlinx.kover")
10+
apply(plugin = "maven-publish")
911

1012
group = "ai.ancf.lmos"
1113
version = "1.0-SNAPSHOT"
@@ -16,6 +18,19 @@ subprojects {
1618
testImplementation("io.mockk:mockk:1.13.13")
1719
}
1820

21+
publishing {
22+
publications {
23+
create<MavenPublication>("mavenKotlin") {
24+
from(components["java"])
25+
artifactId = project.name
26+
}
27+
}
28+
repositories {
29+
mavenLocal()
30+
}
31+
}
32+
33+
1934
tasks.test {
2035
useJUnitPlatform()
2136

0 commit comments

Comments
 (0)