Skip to content

Commit

Permalink
Update plugin maven-publish to v0.22.0 (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
juul-mobile-bot authored Sep 17, 2022
1 parent f258773 commit 477908f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 16 deletions.
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: ubuntu-20.04
Expand Down Expand Up @@ -39,15 +36,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
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: ubuntu-20.04
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 @@ -21,6 +21,7 @@ android.enableJetifier=true
kotlin.code.style=official

SONATYPE_HOST=DEFAULT
SONATYPE_AUTOMATIC_RELEASE=true
RELEASE_SIGNING_ENABLED=true

GROUP=com.juul.exercise
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ android-library = { id = "com.android.library", version.ref = "agp" }
dokka = { id = "org.jetbrains.dokka", version = "1.7.0" }
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
kotlinter = { id = "org.jmailen.kotlinter", version = "3.12.0" }
maven-publish = { id = "com.vanniktech.maven.publish", version = "0.21.0" }
maven-publish = { id = "com.vanniktech.maven.publish", version = "0.22.0" }
one-eight = { id = "net.mbonnin.one.eight", version = "0.2" }
validator = { id = "binary-compatibility-validator", version = "0.8.0" }

0 comments on commit 477908f

Please sign in to comment.