Skip to content

Commit a1c43f2

Browse files
fix: Build with JDK 17 and Gradle 9.
1 parent 5497e1b commit a1c43f2

File tree

9 files changed

+194
-115
lines changed

9 files changed

+194
-115
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414
paths-ignore:
1515
- README.md
1616
- README.es.md
17+
- docker/*
1718

1819
pull_request:
1920
branches:
@@ -22,35 +23,49 @@ on:
2223
- develop
2324
- experimental
2425
- bugfix/**
25-
- hotfix/**
2626
- feature/**
27+
- hotfix/**
28+
- test/**
2729
paths-ignore:
2830
- README.md
2931
- README.es.md
32+
- docker/*
3033

3134
jobs:
3235

3336
build-ci:
34-
name: Build Template
37+
name: Build ADempiere Mobile Service
3538
runs-on: ubuntu-latest
3639
steps:
3740
- name: Check out the repo
38-
uses: actions/checkout@v3
41+
uses: actions/checkout@v4
3942

40-
- name: Set up Java JDK 11
41-
uses: actions/setup-java@v3
43+
- name: Setup Java JDK 17
44+
uses: actions/setup-java@v4
4245
with:
4346
distribution: 'temurin'
4447
java-package: 'jdk'
45-
java-version: 11
48+
java-version: 17
4649
architecture: x64
4750

51+
- name: Setup Gradle 9
52+
uses: gradle/actions/setup-gradle@v4
53+
with:
54+
gradle-version: 9.0.0 # current
55+
4856
- name: Build with Gradle
49-
uses: gradle/gradle-build-action@v2
57+
run: gradle build --warning-mode all --stacktrace
5058
env:
51-
GITHUB_DEPLOY_USER: "${{ secrets.DEPLOY_USER }}"
52-
GITHUB_DEPLOY_TOKEN: "${{ secrets.DEPLOY_TOKEN }}"
59+
ORG_GRADLE_PROJECT_deployUsername: ${{ secrets.DEPLOY_USER }}
60+
ORG_GRADLE_PROJECT_deployToken: ${{ secrets.DEPLOY_TOKEN }}
61+
ORG_GRADLE_PROJECT_deployRepository: ${{ secrets.DEPLOY_REPOSITORY }}
62+
GITHUB_DEPLOY_USER: ${{ github.actor }}
63+
GITHUB_DEPLOY_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5364
GITHUB_DEPLOY_REPOSITORY: ${{ secrets.DEPLOY_REPOSITORY }}
65+
66+
- name: Upload descriptor file artifact
67+
uses: actions/upload-artifact@v4
5468
with:
55-
gradle-version: 8.0.2
56-
arguments: build
69+
name: adempiere-mobile-service.dsc
70+
path: build/descriptors/adempiere-mobile-service.dsc
71+
retention-days: 1

.gitignore

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,12 @@
2323
hs_err_pid*
2424
/bin/
2525
/.gradle/
26+
/libs/
27+
/dependences/
2628
/build/
27-
*.properties
29+
*.properties
30+
# skip folder dependencies
31+
!dependencies/*.jar
32+
33+
# Enviroment variable file
34+
.env

.vscode/launch.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@
1111
"mainClass": "org.spin.mobile_service.server.MobileServer",
1212
"projectName": "adempiere-mobile-service",
1313
"env": {
14-
"ADEMPIERE_APPS_TYPE": "wildfly",
15-
"JWT_SECRET_KEY": "2C51599F5B1248F945B93E05EFC43B3A15D8EB0707C0F02FD97028786C40976F",
16-
"JWT_EXPIRATION_TIME": 86400000
14+
"TZ": "America/Caracas"
1715
},
1816
"args": "'resources/env.yaml'"
1917
}

.vscode/settings.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
"editor.indentSize": "tabSize",
44
"editor.tabSize": 4,
55
"editor.autoIndent": "full",
6+
// "editor.insertSpaces": false,
67
"editor.renderWhitespace": "boundary",
78
"files.exclude": {
8-
"**/.git": true,
9-
"**/.DS_Store": true,
9+
"**/.git": true, // this is a default value
10+
"**/.DS_Store": true, // this is a default value
1011
"build": true
1112
},
1213
"files.insertFinalNewline": true,

0 commit comments

Comments
 (0)