diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index 243e49d..efc7f60 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -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 }} diff --git a/qr-code-svg/build.gradle.kts b/qr-code-svg/build.gradle.kts index 0030b94..6213bbd 100644 --- a/qr-code-svg/build.gradle.kts +++ b/qr-code-svg/build.gradle.kts @@ -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 { @@ -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) } @@ -69,3 +71,9 @@ tasks.withType().configureEach { md.required.set(false) } } + +mavenPublishing { + publishToMavenCentral(SonatypeHost.S01) + + signAllPublications() +} diff --git a/qr-code-svg/gradle.properties b/qr-code-svg/gradle.properties new file mode 100644 index 0000000..63eb542 --- /dev/null +++ b/qr-code-svg/gradle.properties @@ -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/ diff --git a/gradle.properties b/qr-code/gradle.properties similarity index 100% rename from gradle.properties rename to qr-code/gradle.properties