Skip to content

Commit 4f2a88e

Browse files
committed
Add publishing configuration for assertions module
1 parent 07f9a7a commit 4f2a88e

File tree

3 files changed

+57
-0
lines changed

3 files changed

+57
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: "Push Events on `main`"
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
build-app:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Java Gradle Setup
12+
uses: Pointyware/.github/.github/actions/checkout-java-gradle@69eb71701edc0705172789b1299946fd27fcadac
13+
- name: Publish
14+
run: |
15+
./gradlew publishAndReleaseToMavenCentral --no-configuration-cache
16+
env:
17+
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
18+
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
19+
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.GPG_KEY_ID }}
20+
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.GPG_KEY_PASSWORD }}
21+
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY_STORE }}

assertions/build.gradle.kts

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ plugins {
44
alias(libs.plugins.kotlinMultiplatform)
55
alias(libs.plugins.androidLibrary)
66
`maven-publish`
7+
alias(libs.plugins.publishMultiplatform)
78
}
89

910
kotlin {
@@ -95,3 +96,37 @@ publishing {
9596
}
9697
}
9798
}
99+
100+
mavenPublishing {
101+
publishToMavenCentral()
102+
103+
signAllPublications()
104+
105+
coordinates("org.pointyware.kass", "assertions", libs.versions.kass.get())
106+
107+
pom {
108+
name = "Kass"
109+
description = "Kotlin Assertions"
110+
inceptionYear = "2024"
111+
url = "http://github.com/Pointyware/Kass"
112+
licenses {
113+
license {
114+
name = "GNU General Public License, 3.0"
115+
url = "https://www.gnu.org/licenses/gpl-3.0.txt"
116+
}
117+
}
118+
developers {
119+
developer {
120+
id = "TSampley"
121+
name = "Taush Sampley"
122+
123+
}
124+
}
125+
scm {
126+
val repo = "github.com/Pointyware/Kass"
127+
connection = "scm:git:git://$repo.git"
128+
developerConnection = "scm:git:ssh://$repo.git"
129+
url = "http://$repo/"
130+
}
131+
}
132+
}

gradle/libs.versions.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ kotlinx-coroutines = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core",
1515
androidLibrary = { id = "com.android.library", version.ref = "agp" }
1616
dokka = { id = "org.jetbrains.dokka", version.ref = "dokka" }
1717
kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
18+
publishMultiplatform = { id = "com.vanniktech.maven.publish", version = "0.34.0" }

0 commit comments

Comments
 (0)