Skip to content

Commit

Permalink
making a build script and fixing the deps
Browse files Browse the repository at this point in the history
  • Loading branch information
madhephaestus committed Jul 29, 2024
1 parent 3d17280 commit abad5ae
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 23 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,8 @@ jobs:
- name: After JDK download, list directory contnts
run: pwd; ls -la

- name: Set Java
uses: actions/setup-java@v1
with:
java-version: 1.8
jdkFile: ./zulu8.44.0.13-ca-fx-jdk8.0.242-linux_x64.tar.gz


- name: Build with Gradle
run: ./gradlew shadowJar
run: bash makeJar.sh

- name: release
uses: actions/create-release@v1
Expand Down
14 changes: 1 addition & 13 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,5 @@ jobs:
- name: After checkout, list directory contnts
run: pwd; ls -la

- name: Pull a JavaFX JDK
run: wget http://static.azul.com/zulu/bin/zulu8.44.0.13-ca-fx-jdk8.0.242-linux_x64.tar.gz

- name: After JDK download, list directory contnts
run: pwd; ls -la

- name: Set Java
uses: actions/setup-java@v1
with:
java-version: 1.8
jdkFile: ./zulu8.44.0.13-ca-fx-jdk8.0.242-linux_x64.tar.gz

- name: Build with Gradle
run: ./gradlew shadowJar
run: bash makeJar.sh
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,8 @@ dependencies {

//compile fileTree (dir: 'libraries/java-bowler/libs/', includes: ['*.jar'])
implementation 'com.google.guava:guava:19+'
api 'org.kohsuke.stapler:stapler:1.263'
api group: 'org.kohsuke', name: 'wordnet-random-name', version: '1.2'
implementation 'org.kohsuke.stapler:stapler:1.263'
implementation group: 'org.kohsuke', name: 'wordnet-random-name', version: '1.2'


//https://github.com/HanSolo/Medusa
Expand Down
19 changes: 19 additions & 0 deletions makeJar.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

export ARCH=x86_64
JVM=zulu8.78.0.19-ca-fx-jdk8.0.412-linux_x64
set -e
ZIP=$JVM.tar.gz
export JAVA_HOME=$HOME/bin/java8/
if test -d $JAVA_HOME/$JVM/; then
echo "$JAVA_HOME exists."
else
rm -rf $JAVA_HOME
mkdir -p $JAVA_HOME
wget https://cdn.azul.com/zulu/bin/$ZIP
tar -xvzf $ZIP -C $JAVA_HOME
mv $JAVA_HOME/$JVM/* $JAVA_HOME/
fi
echo "Java home set to $JAVA_HOME"

./gradlew clean shadowJar

0 comments on commit abad5ae

Please sign in to comment.