File tree Expand file tree Collapse file tree 4 files changed +18
-32
lines changed
Expand file tree Collapse file tree 4 files changed +18
-32
lines changed Original file line number Diff line number Diff line change 77 runs-on : windows-latest
88 steps :
99 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
10- - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
11- with :
12- repository : ' mendixlabs/mendix-gradle-plugin'
13- path : ' mendix-gradle-plugin'
14- ref : ' 114bde309b52b037583d95a9beffee18eb71b65f'
15- ssh-key : ${{ secrets.MENDIX_GRADLE_PLUGIN_SSH }}
16- ssh-strict : false
17-
1810 - uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # 4.7.1
1911 with :
2012 distribution : ' adopt'
2113 java-version : ' 21'
2214 - uses : gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # 4.3.1
23-
24- - name : Build mendix-gradle-plugin
25- working-directory : mendix-gradle-plugin
26- run : |
27- echo "kotlin.jvm.target.validation.mode = IGNORE" >> gradle.properties
28- ./gradlew build publishToMavenLocal
29-
3015 - name : Define MODULE_VERSION
3116 run : |
3217 $env:MODULE_VERSION=$(./gradlew -q printModuleVersion)
3318 echo ("MODULE_VERSION=" + $env:MODULE_VERSION) >> $env:GITHUB_ENV
19+ env :
20+ GITHUB_ACTOR : ${{ env.GITHUB_ACTOR }}
21+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3422 - name : " Detected module version"
3523 run : echo $env:MODULE_VERSION
3624 - name : Build module
3725 run : ./gradlew buildModule
26+ env :
27+ GITHUB_ACTOR : ${{ env.GITHUB_ACTOR }}
28+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3829 - uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
3930 with :
4031 name : PushNotifications-${{ env.MODULE_VERSION }}.mpk
Original file line number Diff line number Diff line change @@ -17,31 +17,17 @@ jobs:
1717 runs-on : ubuntu-latest
1818 steps :
1919 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
20-
21- - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
22- with :
23- repository : ' mendixlabs/mendix-gradle-plugin'
24- path : ' mendix-gradle-plugin'
25- ref : ' 114bde309b52b037583d95a9beffee18eb71b65f'
26- ssh-key : ${{ secrets.MENDIX_GRADLE_PLUGIN_SSH }}
27- ssh-strict : false
28-
2920 - uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # 4.7.1
3021 with :
3122 distribution : ' adopt'
3223 java-version : ' 21'
3324 - uses : gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 # 4.3.1
34-
35- - name : Build mendix-gradle-plugin
36- working-directory : mendix-gradle-plugin
37- run : |
38- echo "kotlin.jvm.target.validation.mode = IGNORE" >> gradle.properties
39- ./gradlew build publishToMavenLocal
40-
4125 - name : Run Snyk to check for vulnerabilities
4226 uses : snyk/actions/gradle@b98d498629f1c368650224d6d212bf7dfa89e4bf # 0.4.0
4327 env :
4428 SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
29+ GHP_USERNAME : ${{ env.GITHUB_ACTOR }}
30+ GHP_PASSWORD : ${{ secrets.GITHUB_TOKEN }}
4531 with :
4632 command : ${{ inputs.command }}
4733 args : --project-name="gradle${{ inputs.suffix }}" --file=module/build.gradle
Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ plugins {
44}
55
66repositories {
7+ maven {
8+ url = uri(" https://maven.pkg.github.com/mendix/MxPushNotifications" )
9+ }
710 mavenCentral()
811}
912
Original file line number Diff line number Diff line change 11pluginManagement {
22 repositories {
3- mavenLocal()
3+ maven {
4+ url = uri(" https://maven.pkg.github.com/mendix/MxPushNotifications" )
5+ credentials {
6+ username " $gprusername " ?: System . getenv(" GITHUB_ACTOR" )
7+ password " $gprpassword " ?: System . getenv(" GITHUB_TOKEN" )
8+ }
9+ }
410 mavenCentral()
511 gradlePluginPortal()
612 }
You can’t perform that action at this time.
0 commit comments