Skip to content

Commit 48b6247

Browse files
committed
Update to com.vanniktech.maven.publish plugin
1 parent 80d520a commit 48b6247

7 files changed

Lines changed: 101 additions & 42 deletions

File tree

RELEASING.adoc

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
= Releasing
2+
3+
. Update the `VERSION_NAME` in `gradle.properties` to the release version.
4+
5+
. Update the `CHANGELOG.md`:
6+
7+
.. Change the `Unreleased` header to the release version.
8+
.. Add a link URL to ensure the header link works.
9+
.. Add a new `Unreleased` section to the top.
10+
. Update the `README.md` so the "Download" section reflects the new release version and the
11+
snapshot section reflects the next "SNAPSHOT" version.
12+
13+
. Commit
14+
15+
`
16+
$ git commit -am "Prepare version X.Y.X"
17+
`
18+
19+
. Publish
20+
21+
----
22+
$ ./gradlew clean publish
23+
----
24+
25+
If this step fails, drop the Sonatype repo, fix, commit, and publish again.
26+
27+
. Tag
28+
29+
`
30+
$ git tag -am "Version X.Y.Z" X.Y.Z
31+
`
32+
33+
. Update the `VERSION_NAME` in `gradle.properties` to the next "SNAPSHOT" version.
34+
35+
. Commit
36+
37+
`
38+
$ git commit -am "Prepare next development version"
39+
`
40+
41+
. Push!
42+
43+
`
44+
$ git push && git push --tags
45+
`

build.gradle.kts

Lines changed: 41 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -8,58 +8,59 @@ plugins {
88
alias(libs.plugins.jetbrainsKotlinJvm) apply false
99
alias(libs.plugins.binaryCompatibility) apply false
1010
alias(libs.plugins.modulegraph.souza) apply true
11-
alias(libs.plugins.mavenPublish) apply false
11+
alias(libs.plugins.mavenPublish)
1212
}
1313

14-
allprojects {
15-
version = "0.0.5"
16-
group = "sk.ai.net"
17-
14+
publishing {
1815
repositories {
19-
google()
20-
mavenCentral()
16+
repositories {
17+
maven {
18+
name = "GitHubPackages"
19+
url = uri("https://maven.pkg.github.com/sk-ai-net/skainet")
20+
credentials {
21+
username = System.getenv("GITHUB_ACTOR")
22+
password = System.getenv("GITHUB_TOKEN")
23+
}
24+
}
25+
}
2126
}
2227
}
2328

24-
allprojects {
25-
plugins.withId("com.vanniktech.maven.publish.base") {
26-
configure<MavenPublishBaseExtension> {
27-
repositories {
28-
maven {
29-
name = "GitHubPackages"
30-
url = uri("https://maven.pkg.github.com/sk-ai-net/skainet")
31-
credentials {
32-
username = System.getenv("GITHUB_ACTOR")
33-
password = System.getenv("GITHUB_TOKEN")
34-
}
35-
}
29+
mavenPublishing {
30+
pom {
31+
description.set("skainet")
32+
name.set(project.name)
33+
url.set("https://github.com/sk-ai-net/skainet/")
34+
licenses {
35+
license {
36+
name.set("MIT")
37+
distribution.set("repo")
3638
}
37-
pom {
38-
description.set("skainet")
39-
name.set(project.name)
40-
url.set("https://github.com/sk-ai-net/skainet/")
41-
licenses {
42-
license {
43-
name.set("MIT")
44-
distribution.set("repo")
45-
}
46-
}
47-
scm {
48-
url.set("https://github.com/sk-ai-net/skainet/")
49-
connection.set("scm:git:git@github.com:sk-ai-net/skainet.git")
50-
developerConnection.set("scm:git:ssh://git@github.com:sk-ai-net/skainet.git")
51-
}
52-
developers {
53-
developer {
54-
id.set("sk-ai-net")
55-
name.set("sk-ai-net")
56-
}
57-
}
39+
}
40+
scm {
41+
url.set("https://github.com/sk-ai-net/skainet/")
42+
connection.set("scm:git:git@github.com:sk-ai-net/skainet.git")
43+
developerConnection.set("scm:git:ssh://git@github.com:sk-ai-net/skainet.git")
44+
}
45+
developers {
46+
developer {
47+
id.set("sk-ai-net")
48+
name.set("sk-ai-net")
5849
}
5950
}
6051
}
6152
}
6253

54+
allprojects {
55+
version = "0.0.3"
56+
group = "sk.ai.net"
57+
58+
repositories {
59+
google()
60+
mavenCentral()
61+
}
62+
}
63+
6364
moduleGraphConfig {
6465
readmePath.set("./Modules.md")
6566
heading = "### Module Graph"

core/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ kotlin {
2424
iosArm64()
2525
iosSimulatorArm64()
2626
wasmJs().nodejs()
27-
macosX64 ()
28-
linuxX64 ()
27+
macosX64()
28+
linuxX64()
2929

3030

3131
sourceSets {

core/gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
POM_NAME=skainet
2+
POM_ARTIFACT_ID=core

gguf/gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
POM_NAME=skainet
2+
POM_ARTIFACT_ID=gguf

gradle.properties

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,10 @@ kotlin.mpp.enableCInteropCommonization=true
1010
#Android
1111
android.useAndroidX=true
1212
android.nonTransitiveRClass=true
13+
14+
15+
kotlin.mpp.stability.nowarn=true
16+
17+
SONATYPE_HOST=DEFAULT
18+
SONATYPE_AUTOMATIC_RELEASE=false
19+
RELEASE_SIGNING_ENABLED=false

io/gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
POM_NAME=skainet
2+
POM_ARTIFACT_ID=io

0 commit comments

Comments
 (0)