New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gradle 5.6.2 doesn't run with JDK 13 (release version) #10807
Comments
If I use JDK 11 for Gradle run success, Related problem buildscript {
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
|
It means I cannot build to target JDK 12 if Gradle doesn't run on JDK 13. |
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. |
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 |
Windows 10 pro x64, JDK 13 (General Availability version), IntelliJ IDEA 2019, Spring Boot 2.1.8.RELEASE
Error
Expected Behavior
Current Behavior
Context
Steps to Reproduce
Your Environment
Build scan URL:
The text was updated successfully, but these errors were encountered: