Skip to content

Commit 24cbeee

Browse files
fix gradle tasks
1 parent 7b13b4a commit 24cbeee

File tree

9 files changed

+240
-247
lines changed

9 files changed

+240
-247
lines changed

.gitattributes

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,12 @@
1515
*.PDF diff=astextplain
1616
*.rtf diff=astextplain
1717
*.RTF diff=astextplain
18+
19+
# Linux start script should use lf
20+
/gradlew text eol=lf
21+
22+
# These are Windows script files and should use crlf
23+
*.bat text eol=crlf
24+
25+
# Binary files should be left untouched
26+
*.jar binary

.github/workflows/build-module.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Export module package
2+
on:
3+
push:
4+
paths:
5+
- "module/**"
6+
pull_request:
7+
paths:
8+
- "module/**"
9+
workflow_dispatch:
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 #4.7.1
15+
with:
16+
distribution: 'adopt'
17+
java-version: '21'
18+
- uses: gradle/actions/setup-gradle@06832c7b30a0129d7fb559bcc6e43d26f6374244 #4.3.1
19+
20+
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3
21+
with:
22+
repository: 'mendixlabs/mendix-gradle-plugin'
23+
path: 'mendix-gradle-plugin'
24+
ref: '114bde309b52b037583d95a9beffee18eb71b65f'
25+
ssh-key: ${{ secrets.MENDIX_GRADLE_PLUGIN_SSH }}
26+
- name: Build mendix-gradle-plugin
27+
run: |
28+
cd mendix-gradle-plugin
29+
./gradlew build publishToMavenLocal
30+
31+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
32+
- name: Define MODULE_VERSION
33+
run: |
34+
MODULE_VERSION=$(./gradlew -q printModuleVersion)
35+
echo "Detected module version: $MODULE_VERSION"
36+
echo "MODULE_VERSION=$MODULE_VERSION" >> $GITHUB_ENV
37+
- name: Create output directory
38+
run: mkdir $GITHUB_WORKSPACE/out
39+
- name: Build module
40+
run: ./gradlew exportModule
41+
- name: Create release
42+
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1
43+
with:
44+
token: ${{ secrets.GITHUB_TOKEN }}
45+
name: Marketplace release v${{env.MODULE_VERSION}}
46+
tag_name: v${{env.MODULE_VERSION}}
47+
body: |
48+
(insert release notes)
49+
draft: true
50+
prerelease: false
51+
files: |
52+
module/dist/PushNotifications-${{env.MODULE_VERSION}}.mpk
53+
- name: Archive results
54+
if: ${{ always() }}
55+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
56+
with:
57+
name: Results
58+
path: ${{ github.workspace }}/out/*

.github/workflows/export-mpk.yml

Lines changed: 0 additions & 103 deletions
This file was deleted.

README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,45 @@
1+
## Module usage
2+
13
Please see [Push Notifications Connector](https://docs.mendix.com/appstore/modules/push-notifications) in the Mendix documentation for details.
4+
5+
## Development
6+
7+
### Widget
8+
9+
#### Requirements
10+
11+
- Node.js (v6+)
12+
- nvm (optional)
13+
14+
#### Setup
15+
16+
```bash
17+
cd widget
18+
npm i
19+
```
20+
21+
#### Build
22+
23+
```bash
24+
npm run build
25+
```
26+
27+
### Module
28+
29+
#### Requirements
30+
31+
- JDK
32+
33+
#### Update user libs
34+
35+
```bash
36+
./gradlew.bat updateUserLibs
37+
```
38+
39+
#### Build module (mpk)
40+
41+
```bash
42+
./gradlew.bat exportModule
43+
```
44+
45+
Module package is placed in `module/dist/PushNotifications-<version>.mpk`

build.gradle

Lines changed: 0 additions & 142 deletions
This file was deleted.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)