Skip to content

Commit 8b7059f

Browse files
use mendix-gradle-plugin from ghpr
1 parent 5c234d2 commit 8b7059f

File tree

4 files changed

+18
-16
lines changed

4 files changed

+18
-16
lines changed

.github/workflows/build-module.yml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,25 @@ jobs:
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

.github/workflows/snyk.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
uses: snyk/actions/gradle@b98d498629f1c368650224d6d212bf7dfa89e4bf # 0.4.0
2222
env:
2323
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
24+
GHP_USERNAME: ${{ env.GITHUB_ACTOR }}
25+
GHP_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
2426
with:
2527
command: ${{ inputs.command }}
2628
args: --project-name="gradle${{ inputs.suffix }}" --file=module/build.gradle

module/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ plugins {
44
}
55

66
repositories {
7+
maven {
8+
url = uri("https://maven.pkg.github.com/mendix/MxPushNotifications")
9+
}
710
mavenCentral()
811
}
912

settings.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
pluginManagement {
22
repositories {
3-
mavenLocal()
3+
maven {
4+
url = uri("https://maven.pkg.github.com/mendix/MxPushNotifications")
5+
credentials {
6+
username System.getenv("GITHUB_ACTOR") ?: "$gprusername"
7+
password System.getenv("GITHUB_TOKEN") ?: "$gprpassword"
8+
}
9+
}
410
mavenCentral()
511
gradlePluginPortal()
612
}

0 commit comments

Comments
 (0)