You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Gradle 5.6.2 doesn't run with JDK 13 (release version) #10807
Note that by applying the recipe described in the documentation, it is perfectly possible to use Gradle running with a lower Java version to invoke more recent java executables for compilation / test / execution
Activity
donhuvy commentedon Sep 20, 2019
If I use JDK 11 for Gradle run success, Related problem
file
build.gradlebuildscript { ext { springBootVersion = '2.1.8.RELEASE' } repositories { mavenCentral() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") } } apply plugin: 'java' apply plugin: 'eclipse-wtp' apply plugin: 'org.springframework.boot' apply plugin: 'io.spring.dependency-management' apply plugin: 'war' group = 'com.bkit' version = '2019.08-SNAPSHOT' sourceCompatibility = 12 repositories { mavenLocal() mavenCentral() maven { url 'http://jasperreports.sourceforge.net/maven2' } } configurations { providedRuntime developmentOnly runtimeClasspath { extendsFrom developmentOnly } } dependencies { implementation('org.springframework.boot:spring-boot-starter-actuator') implementation('org.springframework.boot:spring-boot-starter-data-jpa') implementation('org.springframework.boot:spring-boot-starter-security') implementation('org.springframework.boot:spring-boot-starter-web'){ exclude module: "spring-boot-starter-tomcat" } implementation('org.springframework.boot:spring-boot-starter-thymeleaf') implementation('org.thymeleaf.extras:thymeleaf-extras-java8time') implementation('org.apache.poi:poi:4.1.0') implementation('org.apache.poi:poi-ooxml:4.1.0') implementation('org.apache.pdfbox:pdfbox:2.0.15') implementation('org.hibernate.validator:hibernate-validator:6.0.17.Final') implementation('org.glassfish:javax.el:3.0.1-b09') implementation('commons-beanutils:commons-beanutils:1.9.3') implementation('com.fasterxml.jackson.core:jackson-core:2.9.9') implementation('com.fasterxml.jackson.core:jackson-databind') { exclude module: "jackson-annotations" } developmentOnly("org.springframework.boot:spring-boot-devtools") providedCompile group: 'javax.servlet', name: 'javax.servlet-api', version: '4.0.1' implementation('net.sf.jasperreports:jasperreports:6.9.0') implementation('net.sf.jasperreports:jasperreports-fonts:6.9.0') implementation('net.sf.jasperreports:jasperreports-functions:6.9.0') implementation('net.sf.jasperreports:jasperreports-metadata:6.9.0') implementation('net.sf.jasperreports:jasperreports-fonts:6.9.0') implementation('net.sf.jasperreports:jasperreports-annotation-processors:6.9.0') implementation('net.sf.jasperreports:jasperreports-chart-themes:6.9.0') implementation('net.sf.jasperreports:jasperreports-chart-customizers:6.9.0') implementation('net.sf.jasperreports:jasperreports-custom-visualization:6.9.0') compile 'com.lowagie:itext:2.1.7.js5' implementation('ar.com.fdvs:DynamicJasper-core-fonts:2.0') implementation('ar.com.fdvs:DynamicJasper:5.1.2') implementation('com.itextpdf:font-asian:7.1.7') implementation('com.itextpdf:itext-asian:5.2.0') implementation 'com.stimulsoft:stimulsoft-reports-libs:2019.3.3' implementation 'com.stimulsoft:stimulsoft-reports-demo:2019.3.3' implementation 'com.stimulsoft:stimulsoft-reports-samples:2019.3.3' implementation 'com.stimulsoft:stimulsoft-reports-webdesigner:2019.3.3' implementation 'com.stimulsoft:stimulsoft-reports-webviewer:2019.3.3' implementation 'com.stimulsoft:stimulsoft-reports-flex:2019.3.3' implementation 'com.stimulsoft:stimulsoft-reports-web:2019.3.3' implementation 'com.stimulsoft:stimulsoft-reports-viewer:2019.3.3' implementation 'com.stimulsoft:stimulsoft-reports-report:2019.3.3' implementation 'com.stimulsoft:stimulsoft-reports-base:2019.3.3' implementation 'com.stimulsoft:stimulsoft-reports-lib:2019.3.3' implementation 'com.stimulsoft:reports:2019.3.3' implementation 'com.stimulsoft:stimulsoft-reports-swt:2019.2.2' implementation('org.docx4j:docx4j-core:11.1.0') implementation('org.docx4j:docx4j:6.1.2') implementation('com.j256.simplemagic:simplemagic:1.16') implementation('javax.xml.bind:jaxb-api:2.3.1') implementation('com.sun.xml.bind:jaxb-core:2.3.0.1') implementation('com.sun.xml.bind:jaxb-impl:2.3.1') implementation('javax.activation:activation:1.1.1') runtimeOnly('com.microsoft.sqlserver:mssql-jdbc') testImplementation('org.springframework.boot:spring-boot-starter-test') }info
donhuvy commentedon Sep 20, 2019
It means I cannot build to target JDK 12 if Gradle doesn't run on JDK 13.
It means I cannot build to target JDK 13 if Gradle doesn't run on JDK 13.
blindpirate commentedon Sep 20, 2019
Thanks for reporting, JDK 13 will be supported in Gradle 6.0. Closing due to duplicate of #10785
It's expected behavior that you can't build a higher target using lower version JDK.
ljacomet commentedon Sep 20, 2019
Note that by applying the recipe described in the documentation, it is perfectly possible to use Gradle running with a lower Java version to invoke more recent java executables for compilation / test / execution