Skip to content

Commit 39a7372

Browse files
authored
Merge pull request #44 from sbesson/gradle9
Bump Java runtime requirement to 11+ and build requirement to 17+
2 parents f148066 + 1f07195 commit 39a7372

7 files changed

Lines changed: 234 additions & 154 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
build:
1010
strategy:
1111
matrix:
12-
java: [11, 17, 21]
12+
java: [17, 21, 25]
1313
os: [ubuntu-latest]
1414
runs-on: ${{ matrix.os }}
1515
env:
@@ -27,11 +27,16 @@ jobs:
2727
run: |
2828
./gradlew ${{ env.gradle_commands }}
2929
- name: Publish artifacts
30-
if: github.event_name != 'pull_request' && matrix.java == 11
30+
if: github.event_name != 'pull_request' && matrix.java == 17
3131
run: |
3232
./gradlew -PArtifactoryUserName=${ArtifactoryUserName} -PArtifactoryPassword=${ArtifactoryPassword} publish
3333
- name: Upload artifacts
3434
uses: actions/upload-artifact@v4
3535
with:
3636
name: omero-ms-core ${{ matrix.java }}
3737
path: build/libs/*
38+
- name: Create a GitHub release
39+
if: startsWith(github.ref, 'refs/tags')
40+
run: gh release create --generate-notes "${GITHUB_REF#refs/tags/}"
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ Requirements
1010
* OMERO 5.6.x+
1111
* OMERO.web 5.6.x+
1212
* Redis backed sessions
13-
* Java 8+
13+
* Java 11+
1414

1515
Development Installation
1616
========================
1717

18+
1. Install Java 17 or later
19+
1820
1. Clone the repository::
1921

2022
git clone https://github.com/glencoesoftware/omero-ms-core.git

build.gradle

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,18 @@ plugins {
77
group = 'com.glencoesoftware.omero'
88
version = '0.11.1-SNAPSHOT'
99

10-
sourceCompatibility = 1.8
11-
targetCompatibility = 1.8
10+
compileJava {
11+
options.release = 11
12+
}
1213

1314
repositories {
1415
mavenCentral()
1516
maven {
16-
name 'Unidata'
17-
url 'https://artifacts.unidata.ucar.edu/content/repositories/unidata-releases'
17+
name = 'Unidata'
18+
url = 'https://artifacts.glencoesoftware.com/artifactory/unidata-releases'
1819
}
1920
maven {
20-
url 'https://artifacts.glencoesoftware.com/artifactory/ome.releases'
21+
url = 'https://artifacts.glencoesoftware.com/artifactory/ome.releases'
2122
}
2223
}
2324

@@ -76,6 +77,21 @@ test {
7677
useTestNG()
7778
}
7879

80+
jar {
81+
manifest {
82+
attributes(
83+
"Created-By": "Gradle ${gradle.gradleVersion}",
84+
"Build-Jdk": "${System.properties['java.version']} (${System.properties['java.vendor']} ${System.properties['java.vm.version']})",
85+
"Built-By": System.properties['user.name'],
86+
"Built-On": new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").format(new Date()),
87+
"Implementation-Build": "git rev-parse --verify HEAD".execute().getText().trim(),
88+
"Implementation-Title": "OMERO Microservice Core",
89+
"Implementation-Version": archiveVersion,
90+
"Implementation-Vendor": "Glencoe Software Inc.",
91+
)
92+
}
93+
}
94+
7995
publishing {
8096
publications {
8197
omeroMsCore(MavenPublication) {
@@ -85,8 +101,8 @@ publishing {
85101

86102
repositories {
87103
maven {
88-
name 'gs-omero-snapshots-local'
89-
url 'https://artifacts.glencoesoftware.com/artifactory/gs-omero-snapshots-local'
104+
name = 'gs-omero-snapshots-local'
105+
url = 'https://artifacts.glencoesoftware.com/artifactory/gs-omero-snapshots-local'
90106
credentials {
91107
username = project.properties.ArtifactoryUserName
92108
password = project.properties.ArtifactoryPassword

gradle/wrapper/gradle-wrapper.jar

-12.2 KB
Binary file not shown.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
46
zipStoreBase=GRADLE_USER_HOME
57
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)