File tree Expand file tree Collapse file tree 3 files changed +26
-2
lines changed Expand file tree Collapse file tree 3 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ plugins {
33 id(" maven-publish" )
44}
55
6- group = " com.github.jsoberg "
7- version = " 0.1 "
6+ group = Publishing . GroupId
7+ version = Publishing . Version
88
99repositories {
1010 mavenCentral()
@@ -25,4 +25,16 @@ dependencies {
2525
2626tasks.withType<Test > {
2727 useJUnitPlatform()
28+ }
29+
30+ publishing {
31+ publications {
32+ create<MavenPublication >(" maven" ) {
33+ artifactId = Publishing .ArtifactId
34+ groupId = Publishing .GroupId
35+ version = Publishing .Version
36+
37+ from(components[" java" ])
38+ }
39+ }
2840}
Original file line number Diff line number Diff line change 1+ plugins {
2+ `kotlin- dsl`
3+ }
4+
5+ repositories {
6+ mavenCentral()
7+ }
Original file line number Diff line number Diff line change 1+ object Publishing {
2+ const val ArtifactId = " kotlin-aoc-api"
3+ const val GroupId = " com.github.jsoberg"
4+ const val Version = " 1.0"
5+ }
You can’t perform that action at this time.
0 commit comments