Skip to content

Commit 574a64a

Browse files
committed
Merge branch 'release/1.2.0'
2 parents e835763 + 08be8f8 commit 574a64a

11 files changed

+203
-172
lines changed

.github/workflows/ci.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
build:
1919
runs-on: ubuntu-latest
2020
steps:
21-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v3
2222

2323
- name: Gradle Cache
24-
uses: actions/cache@v2
24+
uses: actions/cache@v3
2525
with:
2626
path: |
2727
~/.gradle/caches
@@ -31,7 +31,7 @@ jobs:
3131
${{ runner.os }}-gradle-
3232
3333
- name: Set up JDK 1.8
34-
uses: actions/setup-java@v2
34+
uses: actions/setup-java@v3
3535
with:
3636
distribution: adopt
3737
java-version: 8
@@ -40,13 +40,13 @@ jobs:
4040
run: ./gradlew build
4141

4242
- name: Save artefacts
43-
uses: actions/upload-artifact@v2.2.4
43+
uses: actions/upload-artifact@v3.1.1
4444
with:
4545
name: Artefacts
4646
path: build/distributions
4747

4848
- name: Save Coverage Report
49-
uses: actions/upload-artifact@v2.2.4
49+
uses: actions/upload-artifact@v3.1.1
5050
with:
5151
name: CoverageReport
5252
path: build/reports/tests/test

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ unable to find valid certification path to requested target
5353

5454
This is because the Java Keystore used by the admin console package does not recognize the Root CA certificate used to sign openEQUELLA's SSL certificate.
5555

56-
The admin-console-package uses its own copy of the JRE, in the `jdk8u242-b08-jre` folder.
57-
The keystore we need to update is within this folder, at the path `jdk8u242-b08-jre/lib/security/cacerts`.
56+
The admin-console-package uses its own copy of the JRE, in the `jdk-11.0.18+10-jre` folder.
57+
The keystore we need to update is within this folder, at the path `jdk-11.0.18+10-jre/lib/security/cacerts`.
5858

5959
The bundled JRE comes with a command line tool which you can use for updating these keystores, called `keytool`.
60-
This should work in Mac, Linux and Windows. It is stored in `jdk8u242-b08-jre/bin`.
60+
This should work in Mac, Linux and Windows. It is stored in `jdk-11.0.18+10-jre/bin`.
6161

6262
**NOTE:**
6363

@@ -72,7 +72,7 @@ You will need a copy of the Root CA certificate used to sign your SSL certificat
7272
in which case you should use whatever it was set to.
7373

7474
```
75-
keytool -import -trustcacerts -keystore path/to/adminconsolepackage/jdk8u242-b08-jre/lib/security/cacerts -storepass changeit -alias giveYourCertANameHere -file path/to/rootCA.pem
75+
keytool -import -trustcacerts -keystore path/to/adminconsolepackage/jdk-11.0.18+10-jre/lib/security/cacerts -storepass changeit -alias giveYourCertANameHere -file path/to/rootCA.pem
7676
```
7777

7878
The command will display the certificate and prompt the user to `Trust this certificate? [no]:`. Type `yes` and hit Enter.

build.gradle

+16-28
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,31 @@ plugins {
22
id 'java'
33
id 'application'
44
id 'base'
5-
id 'nebula.lint' version '16.26.0'
6-
id 'com.github.hierynomus.license' version '0.15.0'
5+
id 'com.github.hierynomus.license' version '0.16.1'
76
}
87

98
apply plugin: 'java'
109
apply plugin: 'base'
11-
apply plugin: 'nebula.lint'
1210
apply plugin: 'com.github.hierynomus.license'
1311
apply plugin: "application"
1412

1513
repositories {
1614
mavenLocal()
17-
jcenter()
15+
mavenCentral()
1816
}
1917

2018
dependencies {
21-
implementation 'org.slf4j:slf4j-api:1.7.31'
22-
implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.3'
19+
implementation 'org.slf4j:slf4j-api:1.7.36'
20+
implementation 'com.fasterxml.jackson.core:jackson-databind:2.14.0'
2321
implementation 'org.jasypt:jasypt:1.9.3'
24-
runtimeOnly 'org.slf4j:slf4j-simple:1.7.31'
22+
runtimeOnly 'org.slf4j:slf4j-simple:1.7.36'
2523
testImplementation "junit:junit:$junitVersion"
2624
}
2725

2826
group = 'org.apereo.openequella.adminconsole'
2927
version = System.getenv("TRAVIS_TAG") ?: artifactVersion
3028
mainClassName = 'org.apereo.openequella.adminconsole.launcher.ClientLauncher'
3129

32-
// Gradlelint is broken: https://github.com/nebula-plugins/gradle-lint-plugin/issues/203
33-
gradleLint.rules = [/*'all-dependency', */'dependency-parentheses', 'duplicate-dependency-class']
34-
3530
license {
3631
strictCheck
3732
header = file('LICENSE')
@@ -59,20 +54,20 @@ final launcherScripts = [
5954
class JreProperties {
6055
String hash
6156
String fileName
62-
String getDownloadUrl() {"https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u242-b08/${fileName}"}
57+
String getDownloadUrl() {"https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.18%2B10/${fileName}"}
6358
File getJre() {new File("build/jre-downloads/${fileName}")}
6459
}
6560

6661
final jreProperties = [
6762
windows: new JreProperties(
68-
hash: 'b00c361e6ce022c6dc63b7c747cfdd9d28c17943e50bc1855adf36854ce46898',
69-
fileName: 'OpenJDK8U-jre_x64_windows_hotspot_8u242b08.zip'),
63+
hash: 'dea0fe7fd5fc52cf5e1d3db08846b6a26238cfcc36d5527d1da6e3cb059071b3',
64+
fileName: 'OpenJDK11U-jre_x64_windows_hotspot_11.0.18_10.zip'),
7065
linux: new JreProperties(
71-
hash: '5edfaefdbb0469d8b24d61c8aef80c076611053b1738029c0232b9a632fe2708',
72-
fileName: 'OpenJDK8U-jre_x64_linux_hotspot_8u242b08.tar.gz'),
66+
hash: '0e7b196ef8603ac3d38caaf7768b7b0a3c613d60e15a6511bcfb2c894b609e99',
67+
fileName: 'OpenJDK11U-jre_x64_linux_hotspot_11.0.18_10.tar.gz'),
7368
mac: new JreProperties(
74-
hash: 'fae3777e3441dc7384c339a9054aa7efc40cd2c501625a535c2d4648367ccca3',
75-
fileName: 'OpenJDK8U-jre_x64_mac_hotspot_8u242b08.tar.gz')
69+
hash: '7c73b1a731fc840f2ecb5633906d687bfee4346a8191d3cb1c4370168b16351f',
70+
fileName: 'OpenJDK11U-jre_x64_mac_hotspot_11.0.18_10.tar.gz')
7671
]
7772

7873
task copyDependencies(type: Copy, description: 'Copy dependencies to /build/libs') {
@@ -135,16 +130,9 @@ task unzipJre(description: 'Unzip a JRE when the extract directory is missing',
135130
!new File(jreExtractDir(sys)).exists()
136131
}.each {String sys, JreProperties props ->
137132
println "Unzip JRE for ${sys}"
138-
if (props.jre.name.endsWith('zip')) {
139-
copy {
140-
from zipTree(props.jre)
141-
into file(jreExtractDir(sys))
142-
}
143-
} else {
144-
copy {
145-
from tarTree(resources.gzip(props.jre))
146-
into file(jreExtractDir(sys))
147-
}
133+
copy {
134+
from props.jre.name.endsWith('zip') ? zipTree(props.jre) : tarTree(resources.gzip(props.jre))
135+
into file(jreExtractDir(sys))
148136
}
149137
}
150138
}
@@ -160,7 +148,7 @@ distributions {
160148
launcherScripts.each { String sys, String scriptFileName ->
161149
String scriptFileDir = "${projectDir}/launcher-scripts/${scriptFileName}"
162150
"${sys}Packages" {
163-
baseName = "admin-console-package-for-${sys}"
151+
distributionBaseName = "admin-console-package-for-${sys}"
164152
contents {
165153
from("${buildDir}") {
166154
include "libs/*"

gradle.properties

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

gradle/wrapper/gradle-wrapper.jar

5.02 KB
Binary file not shown.
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)