Skip to content

Commit 2f94688

Browse files
authored
Merge pull request #29 from sbesson/java_target
Specify Java target using release flag
2 parents 7c7042d + 117e545 commit 2f94688

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,15 @@ Like any Java project, include the jar into your classpath.
1212

1313
The compilation, testing, launch, and delivery of the application are
1414
automated by means of a Gradle (https://gradle.org/) build file.
15-
In order to perform a build, all you need is
16-
a JDK -- version 111 and Gradle 6.8.x.
17-
Clone this GitHub repository `git clone https://github.com/ome/omero-renderer.git`.
15+
16+
In order to perform a build, you need JDK 11 and Gradle 6.x installed. Clone
17+
this GitHub repository:
18+
19+
git clone https://github.com/ome/omero-renderer
20+
1821
Go to the directory and enter:
1922

20-
gradle build
23+
gradle build
2124

2225
This will compile, build, test and create a distribution bundle.
2326

build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
id "java-library"
3-
id "org.openmicroscopy.project" version "5.7.0"
3+
id "org.openmicroscopy.project" version "5.7.2"
44
}
55

66
group = "org.openmicroscopy"
@@ -11,9 +11,8 @@ repositories {
1111
mavenCentral()
1212
}
1313

14-
java {
15-
sourceCompatibility = JavaVersion.VERSION_1_8
16-
targetCompatibility = JavaVersion.VERSION_1_8
14+
compileJava {
15+
options.release = 8
1716
}
1817

1918
dependencies {

0 commit comments

Comments
 (0)