File tree Expand file tree Collapse file tree 4 files changed +19
-7
lines changed Expand file tree Collapse file tree 4 files changed +19
-7
lines changed Original file line number Diff line number Diff line change 3131 fail-fast : false
3232 runs-on : ${{ matrix.os }}
3333 steps :
34+ - name : Check Nexus access
35+ env :
36+ OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
37+ OSSRH_TOKEN : ${{ secrets.OSSRH_TOKEN }}
38+ run : |
39+ curl -u $OSSRH_USERNAME:$OSSRH_TOKEN https://oss.sonatype.org/service/local/repositories/releases/content/
40+
3441 - name : " Validate Gradle Wrapper"
3542 run : pwd
3643
Original file line number Diff line number Diff line change @@ -29,10 +29,10 @@ jobs:
2929 fetch-depth : 0
3030
3131 - name : " Validate Gradle Wrapper"
32- uses : gradle/wrapper-validation-action@v1
32+ uses : gradle/wrapper-validation-action@v3
3333
3434 - name : " Cache gradle"
35- uses : actions/cache@v3
35+ uses : actions/cache@v4
3636 with :
3737 path : |
3838 ~/.gradle/caches
4343 ${{ runner.os }}-gradle-
4444
4545 - name : " Install Java ${{ env.JAVA_VERSION }}"
46- uses : actions/setup-java@v3
46+ uses : actions/setup-java@v4
4747 with :
4848 java-version : ${{ env.JAVA_VERSION }}
4949 distribution : " zulu"
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ jobs:
102102 with :
103103 xcode-version : ' 15.0.1'
104104
105- - uses : crazy-max/ghaction-import-gpg@v5
105+ - uses : crazy-max/ghaction-import-gpg@v6
106106 id : import_gpg
107107 with :
108108 gpg_private_key : ${{ secrets.OSSRH_GPG_SECRET_KEY }}
Original file line number Diff line number Diff line change @@ -15,6 +15,14 @@ buildscript {
1515 gradlePluginPortal()
1616 google()
1717 mavenCentral()
18+ maven {
19+ name = " OSSRH"
20+ url = uri(" https://oss.sonatype.org/service/local/repositories/releases/content/" )
21+ credentials {
22+ username = project.findProperty(" sonatypeUsername" ) as String? ? : System .getenv(" OSSRH_USERNAME" )
23+ password = project.findProperty(" sonatypePassword" ) as String? ? : System .getenv(" OSSRH_TOKEN" )
24+ }
25+ }
1826 }
1927 dependencies {
2028 classpath(" org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23" )
@@ -177,6 +185,3 @@ nexusPublishing {
177185 }
178186 }
179187}
180-
181-
182-
You can’t perform that action at this time.
0 commit comments