Skip to content

Commit

Permalink
release/fix: fix publishing (0.0.2)
Browse files Browse the repository at this point in the history
  • Loading branch information
JellyBrick committed Apr 10, 2023
1 parent a9df521 commit ef14919
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
group=be.zvz.koyo
version=0.0.2
15 changes: 15 additions & 0 deletions lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
kotlin("jvm") version "1.8.20"
kotlin("plugin.serialization") version "1.5.0"
`java-library`
`maven-publish`
}

repositories {
Expand All @@ -25,3 +26,17 @@ testing {
}
}
}

val sourcesJar by tasks.registering(Jar::class) {
from(sourceSets["main"].allSource)
archiveClassifier.set("sources")
}

publishing {
publications {
register<MavenPublication>("Koyo") {
from(components["java"])
artifact(sourcesJar)
}
}
}

0 comments on commit ef14919

Please sign in to comment.