-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up gradle configs and update to gradle 7. (#1110)
* Update gradle, fix gradle stuff so can now run on java 17. Fix versioning to be more in line with semver. * Fix launcher run. Fix releaseJar. Fix release tools build. * Fix maven publishing. * Clean up build outputs. * Re-indent files. * Do not delete release directory when running other tasks. * Implement gradle clean. * Add `releaseVersion` command which tags the current version and update gh actions build. * Remove markdown.pl. Update readme. Update build gradle. * Fix launcher semver dependency. * Fix JDK setup step name. Fix PR build naming. * Update Gradle to 7.3.3. * Add missing version.json to the standalone launcher * Include lib subproject files in the chunky jar * Fix gradle configuration as dependency warnings Co-authored-by: Maik Marschner <[email protected]>
- Loading branch information
Showing
14 changed files
with
464 additions
and
1,877 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,11 +17,11 @@ jobs: | |
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: 1.8 | ||
java-package: jdk+fx | ||
distribution: 'temurin' | ||
java-version: '17' | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Build with Gradle | ||
|
@@ -36,14 +36,12 @@ jobs: | |
PR_NUMBER: ${{ github.event.pull_request.number }} | ||
run: | | ||
if [[ "${GITHUB_EVENT_NAME}" != "pull_request" ]]; then | ||
./gradlew build releasejar -PnewVersion="$(git describe)" | ||
./gradlew buildReleaseJar | ||
else | ||
./gradlew build releasejar -PnewVersion="PR-${PR_NUMBER}_$(git describe)" | ||
./gradlew buildReleaseJar -PprereleaseTag="PR.${PR_NUMBER}" | ||
fi | ||
- name: Cleanup | ||
run: rm -rf build/docs build/tmp | ||
- name: Upload build | ||
uses: actions/[email protected] | ||
with: | ||
name: Chunky Build | ||
path: build/ | ||
path: build/installer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.