Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update plugin maven-publish to v0.22.0 #186

Merged
merged 3 commits into from
Sep 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: CI
on:
pull_request:

env:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"

jobs:
build:
runs-on: macos-11
Expand Down Expand Up @@ -45,15 +42,14 @@ jobs:
set -o xtrace
if [ ! -z "${{ secrets.SIGNING_KEY }}" ]; then
./gradlew \
--no-parallel \
-PVERSION_NAME="unspecified" \
-PsigningInMemoryKey="${{ secrets.SIGNING_KEY }}" \
-PsigningInMemoryKeyPassword="${{ secrets.SIGNING_PASSWORD }}" \
publishToMavenLocal
else
./gradlew \
--no-parallel \
-PVERSION_NAME="unspecified-SNAPSHOT" \
-PVERSION_NAME="unspecified" \
-PRELEASE_SIGNING_ENABLED=false \
publishToMavenLocal
fi
if: github.repository_owner == 'JuulLabs'
Expand Down
9 changes: 0 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
types:
- published

env:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"

jobs:
publish:
runs-on: macos-11
Expand Down Expand Up @@ -34,18 +31,12 @@ jobs:
- run: ./gradlew check
- run: >-
./gradlew
--no-parallel
-PVERSION_NAME="${GITHUB_REF/refs\/tags\//}"
-PsigningInMemoryKey="${{ secrets.SIGNING_KEY }}"
-PsigningInMemoryKeyPassword="${{ secrets.SIGNING_PASSWORD }}"
-PmavenCentralUsername="${{ secrets.OSS_SONATYPE_NEXUS_USERNAME }}"
-PmavenCentralPassword="${{ secrets.OSS_SONATYPE_NEXUS_PASSWORD }}"
publish
- run: >-
./gradlew
-PmavenCentralUsername="${{ secrets.OSS_SONATYPE_NEXUS_USERNAME }}"
-PmavenCentralPassword="${{ secrets.OSS_SONATYPE_NEXUS_PASSWORD }}"
closeAndReleaseRepository

- run: |
rm -f ~/.gradle/caches/modules-2/modules-2.lock
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ android.defaults.buildfeatures.resvalues=false
# https://github.com/vanniktech/gradle-maven-publish-plugin#setting-properties

SONATYPE_HOST=DEFAULT
SONATYPE_AUTOMATIC_RELEASE=true
RELEASE_SIGNING_ENABLED=true

GROUP=com.juul.krayon
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ dokka = { id = "org.jetbrains.dokka", version = "1.7.10" }
java8 = { id = "net.mbonnin.one.eight", version = "0.2" }
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
kotlinter = { id = "org.jmailen.kotlinter", version = "3.11.1" }
maven-publish = { id = "com.vanniktech.maven.publish", version = "0.21.0" }
maven-publish = { id = "com.vanniktech.maven.publish", version = "0.22.0" }
validator = { id = "binary-compatibility-validator", version = "0.8.0" }