Skip to content

Commit

Permalink
Also publish qr-code-svg module to maven central
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonScholz committed Mar 5, 2024
1 parent 441c708 commit 9df3e85
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,17 @@ jobs:

- uses: gradle/gradle-build-action@v3.0.0

- name: Publish Artifacts
run: ./gradlew publishAllPublicationsToMavenCentral
- name: Publish qr-code artifact
run: ./gradlew qr-code:publishAllPublicationsToMavenCentral
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_IN_MEMORY_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}

- name: Publish qr-code-svg artifact
run: ./gradlew qr-code-svg:publishAllPublicationsToMavenCentral
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }}
Expand Down
8 changes: 8 additions & 0 deletions qr-code-svg/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
import com.vanniktech.maven.publish.SonatypeHost
import io.gitlab.arturbosch.detekt.Detekt

plugins {
Expand All @@ -8,6 +9,7 @@ plugins {
alias(libs.plugins.detekt)
alias(libs.plugins.ktlint)
alias(libs.plugins.ben.manes.versions)
alias(libs.plugins.vaniktech.publish)
alias(libs.plugins.dokka)
}

Expand Down Expand Up @@ -69,3 +71,9 @@ tasks.withType<Detekt>().configureEach {
md.required.set(false)
}
}

mavenPublishing {
publishToMavenCentral(SonatypeHost.S01)

signAllPublications()
}
20 changes: 20 additions & 0 deletions qr-code-svg/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
GROUP=io.github.simonscholz
POM_ARTIFACT_ID=qr-code-with-logo-svg
VERSION_NAME=0.4.0-SNAPSHOT

POM_NAME=QR Code with logo using SVG
POM_DESCRIPTION=Customizable qr code generatation with different colors and shapes and logos using SVG
POM_INCEPTION_YEAR=2024
POM_URL=https://github.com/simonscholz/qr-code-with-logo/

POM_LICENSE_NAME=The Apache Software License, Version 2.0
POM_LICENSE_URL=https://www.apache.org/licenses/LICENSE-2.0.txt
POM_LICENSE_DIST=repo

POM_SCM_URL=https://github.com/SimonScholz/qr-code-with-logo
POM_SCM_CONNECTION=scm:git:git://github.com/simonscholz/qr-code-with-logo.git
POM_SCM_DEV_CONNECTION=scm:git:ssh://git@github.com/simonscholz/qr-code-with-logo.git

POM_DEVELOPER_ID=simonscholz
POM_DEVELOPER_NAME=Simon Scholz
POM_DEVELOPER_URL=https://github.com/simonscholz/
File renamed without changes.

0 comments on commit 9df3e85

Please sign in to comment.