Skip to content

Commit 5ea269f

Browse files
authored
Merge pull request #114 from openequella/release/1.2.1
Release 1.2.1
2 parents 574a64a + 42f86e8 commit 5ea269f

9 files changed

+64
-18
lines changed

.github/workflows/ci.yaml

+11-8
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: openEQUELLA Admin Console Launcer CI
1+
name: openEQUELLA Admin Console Launcher CI
22

33
on:
44
push:
@@ -30,23 +30,27 @@ jobs:
3030
restore-keys: |
3131
${{ runner.os }}-gradle-
3232
33-
- name: Set up JDK 1.8
33+
- name: Set up JDK
3434
uses: actions/setup-java@v3
3535
with:
36-
distribution: adopt
37-
java-version: 8
36+
distribution: temurin
37+
java-version: 11
3838

3939
- name: Build with Gradle
4040
run: ./gradlew build
4141

42+
- name: Generate artefact hashes
43+
run: ../../generate-hashes.sh *
44+
working-directory: build/distributions
45+
4246
- name: Save artefacts
43-
uses: actions/[email protected].1
47+
uses: actions/[email protected].2
4448
with:
4549
name: Artefacts
4650
path: build/distributions
4751

4852
- name: Save Coverage Report
49-
uses: actions/[email protected].1
53+
uses: actions/[email protected].2
5054
with:
5155
name: CoverageReport
5256
path: build/reports/tests/test
@@ -57,5 +61,4 @@ jobs:
5761
with:
5862
files: build/distributions/*
5963
env:
60-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61-
64+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.idea/misc.xml

+4-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ repositories {
1616
}
1717

1818
dependencies {
19-
implementation 'org.slf4j:slf4j-api:1.7.36'
20-
implementation 'com.fasterxml.jackson.core:jackson-databind:2.14.0'
19+
implementation 'org.slf4j:slf4j-api:2.0.7'
20+
implementation 'com.fasterxml.jackson.core:jackson-databind:2.15.2'
2121
implementation 'org.jasypt:jasypt:1.9.3'
22-
runtimeOnly 'org.slf4j:slf4j-simple:1.7.36'
22+
runtimeOnly 'org.slf4j:slf4j-simple:2.0.7'
2323
testImplementation "junit:junit:$junitVersion"
2424
}
2525

generate-hashes.sh

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/usr/bin/env bash
2+
3+
# This script generates the hash files for specified files. These can be generated as part of the
4+
# build process to provide later validation of artefact integrity.
5+
#
6+
# To validate with the output files from this you simply run:
7+
# sha256sum -c <hashfile>
8+
9+
# Enable globstar and nullglob options, so as to support filename globs - e.g. artefacts*.zip
10+
shopt -s globstar nullglob
11+
12+
if [ $# -lt 1 ]; then
13+
echo "Usage: $0 <file...>"
14+
echo "Where:"
15+
echo " <file> is the name of the file(s) to generate a hash for."
16+
exit 1
17+
fi
18+
19+
# Loop over arguments, each one being the name of a file to hash
20+
for file in "$@"; do
21+
# double loop to support globbing
22+
for filename in "$file"; do
23+
echo "Processing: $filename"
24+
hash_contents=$(sha256sum "$filename")
25+
hash_result=$?
26+
27+
if [ $hash_result -ne 0 ]; then
28+
echo "Failed to hash [${filename}], exiting."
29+
exit $hash_result
30+
fi
31+
32+
echo $hash_contents > "${filename}.sha256"
33+
done
34+
done

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
junitVersion=4.13.2
2-
artifactVersion=1.2.0
2+
artifactVersion=1.2.1

gradle/wrapper/gradle-wrapper.jar

818 Bytes
Binary file not shown.
+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-all.zip
4+
networkTimeout=10000
45
zipStoreBase=GRADLE_USER_HOME
56
zipStorePath=wrapper/dists

gradlew

+8-4
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
# Darwin, MinGW, and NonStop.
5656
#
5757
# (3) This script is generated from the Groovy template
58-
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
58+
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
5959
# within the Gradle project.
6060
#
6161
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -80,10 +80,10 @@ do
8080
esac
8181
done
8282

83-
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
84-
85-
APP_NAME="Gradle"
83+
# This is normally unused
84+
# shellcheck disable=SC2034
8685
APP_BASE_NAME=${0##*/}
86+
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
8787

8888
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
8989
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
@@ -143,12 +143,16 @@ fi
143143
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144144
case $MAX_FD in #(
145145
max*)
146+
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147+
# shellcheck disable=SC3045
146148
MAX_FD=$( ulimit -H -n ) ||
147149
warn "Could not query maximum file descriptor limit"
148150
esac
149151
case $MAX_FD in #(
150152
'' | soft) :;; #(
151153
*)
154+
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155+
# shellcheck disable=SC3045
152156
ulimit -n "$MAX_FD" ||
153157
warn "Could not set maximum file descriptor limit to $MAX_FD"
154158
esac

gradlew.bat

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ if "%OS%"=="Windows_NT" setlocal
2626

2727
set DIRNAME=%~dp0
2828
if "%DIRNAME%"=="" set DIRNAME=.
29+
@rem This is normally unused
2930
set APP_BASE_NAME=%~n0
3031
set APP_HOME=%DIRNAME%
3132

0 commit comments

Comments
 (0)