Skip to content
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.

Commit

Permalink
Tweaked build names again
Browse files Browse the repository at this point in the history
  • Loading branch information
DeflatedPickle committed Aug 23, 2021
1 parent 962a536 commit 7f7a2f7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradle-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
os: [ ubuntu-latest ]
task: [ distZip ]
java-v: [ 8, 11, 16 ]
java-d: [ adopt-hotspot, adopt-openj9 ]
java-d: [ adopt-hotspot, adopt-openj9, temurin, zulu ]

name: Building ${{ matrix.task }} for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand Down
14 changes: 13 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,19 @@ sourceCompatibility = targetCompatibility = "$jvmTarget"

project.ext {
ver = project.properties["pre"] ?: version
mostlyName = "$name-$ver-${System.getProperty("os.name").toLowerCase()}-${System.getProperty("os.arch")}-java${JavaVersion.current()}-${System.getProperty("java.vendor").replace(" ", "").toLowerCase()}"
vendor = System.getProperty("java.vendor").replace(" ", "").toLowerCase()

if (vendor == "internationalbusinessmachinescorporation") {
vendor = "ibm"
}

jv = JavaVersion.current()

if (jv == JavaVersion.VERSION_1_8) {
jv = "8"
}

mostlyName = "$name-$ver-${System.getProperty("os.name").toLowerCase()}-${System.getProperty("os.arch")}-java${jv}-${vendor}"

licenseDir = new File(buildDir, 'licenses')
toolDir = new File(buildDir, 'tools')
Expand Down

0 comments on commit 7f7a2f7

Please sign in to comment.