Skip to content

Commit 6abe705

Browse files
Improve Gradle build.
1 parent 45ab5da commit 6abe705

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

build.gradle

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ plugins
1212
group = 'com.ibm.cicsdev.springboot'
1313
archivesBaseName='cics-java-liberty-springboot-transactions'
1414
version = '0.1.0'
15-
sourceCompatibility = '1.8'
16-
1715

1816
// If in Eclipse, add Javadoc to the local project classpath
1917
eclipse
@@ -30,6 +28,15 @@ repositories
3028
mavenCentral()
3129
}
3230

31+
java
32+
{
33+
toolchain
34+
{
35+
languageVersion = JavaLanguageVersion.of(java_version)
36+
vendor = JvmVendorSpec.IBM
37+
implementation = JvmImplementation.J9
38+
}
39+
}
3340

3441
dependencies
3542
{

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@
1313
# These values only have any effect if the publish goal is used.
1414
# For example: gradle build publish.
1515
publish_repo_releases_url = 'default-value-for-publish_repo_releases_url'
16-
publish_repo_releases_name = 'default-value-for-publish_repo_releases_name'
16+
publish_repo_releases_name = 'default-value-for-publish_repo_releases_name'
17+
java_version = 8

0 commit comments

Comments
 (0)