Skip to content

Commit 57a0deb

Browse files
committed
Add acutal maven publishing for Jitpack to pickup, bump to V1
1 parent e97afe2 commit 57a0deb

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

build.gradle.kts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff 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

99
repositories {
1010
mavenCentral()
@@ -25,4 +25,16 @@ dependencies {
2525

2626
tasks.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
}

buildSrc/build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
plugins {
2+
`kotlin-dsl`
3+
}
4+
5+
repositories {
6+
mavenCentral()
7+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
object Publishing {
2+
const val ArtifactId = "kotlin-aoc-api"
3+
const val GroupId = "com.github.jsoberg"
4+
const val Version = "1.0"
5+
}

0 commit comments

Comments
 (0)