[ 
https://issues.apache.org/jira/browse/GROOVY-9505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17082330#comment-17082330
 ] 

Kamil Jedrzejuk commented on GROOVY-9505:
-----------------------------------------

[~szpak]

You can chack on github
{code:java}
buildscript { ext { springBootVersion = '2.2.6.RELEASE' } repositories { 
mavenCentral() maven { url 
'http://oss.jfrog.org/artifactory/oss-snapshot-local' } maven { url 
"https://repo.spring.io/snapshot"; } maven { url 
"https://repo.spring.io/milestone"; } maven { url 
"https://plugins.gradle.org/m2/"; } } dependencies { 
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
 classpath("net.ltgt.gradle:gradle-apt-plugin:0.21") } } apply plugin: 'java' 
apply plugin: 'groovy' apply plugin: 'application' apply plugin: 'idea' apply 
plugin: 'org.springframework.boot' apply plugin: 
'io.spring.dependency-management' apply plugin: 'net.ltgt.apt' group = 
'com.twitter.kamilyedrzejuq' version = '0.0.2-SNAPSHOT' sourceCompatibility = 
JavaVersion.VERSION_14 targetCompatibility = JavaVersion.VERSION_14 
mainClassName = "com.twitter.kamilyedrzejuq.Application" 
compileJava.options.encoding = 'UTF-8' compileTestJava.options.encoding = 
'UTF-8' compileJava.dependsOn(processResources) 
tasks.withType(JavaCompile).each { 
it.options.compilerArgs.add('--enable-preview') } tasks.withType(GroovyCompile) 
{ it.options.compilerArgs.add('--enable-preview') } [bootJar, bootRun, 
bootDistTar, bootDistZip, distTar, distZip]*.enabled = false jar.enabled = true 
project.ext.versions = [ lombokVersion : '1.18.12', swaggerVersion : '2.9.2', 
spockVersion : '2.0-M2-groovy-3.0', vavrVersion : '0.10.2', 
mockWebServerVersion : '3.14.1', gsonVersion : '2.8.5', springdocOpenapiVersion 
: '1.3.2' ] repositories { mavenLocal() mavenCentral() maven { url 
'http://oss.jfrog.org/artifactory/oss-snapshot-local' } maven { url 
"https://repo.spring.io/snapshot"; } maven { url 
"https://repo.spring.io/milestone"; } } test { useJUnitPlatform() 
jvmArgs(['--enable-preview']) testLogging { exceptionFormat = 'full' events = 
["STARTED", "PASSED", "SKIPPED", "FAILED"] } } sourceSets { integrationTest { 
groovy { compileClasspath += main.output + test.output runtimeClasspath += 
main.output + test.output srcDir { file('src/integrationTest/groovy') } } 
resources.srcDir file('src/integrationTest/resources') } } configurations { 
integrationTestImplementation.extendsFrom compileOnly 
integrationTestImplementation.extendsFrom implementation 
integrationTestImplementation.extendsFrom annotationProcessor 
integrationTestImplementation.extendsFrom testImplementation } task 
integrationTest(type: Test) { testClassesDirs = 
sourceSets.integrationTest.output.classesDirs classpath = 
sourceSets.integrationTest.runtimeClasspath include '**/*Spec.*' include 
'**/*Test.*' systemProperty 'spring.profiles.active', 'integration' 
outputs.upToDateWhen { false } } dependencies { 
compileOnly("org.projectlombok:lombok:${versions.lombokVersion}") 
annotationProcessor("org.projectlombok:lombok:${versions.lombokVersion}") 
implementation("org.springframework.boot:spring-boot-starter-webflux") 
implementation("io.vavr:vavr:${versions.vavrVersion}") 
implementation("com.google.code.gson:gson:${versions.gsonVersion}") 
implementation("org.springdoc:springdoc-openapi-webflux-ui:${versions.springdocOpenapiVersion}")
 testImplementation("org.spockframework:spock-core:${versions.spockVersion}") 
testImplementation("org.spockframework:spock-spring:${versions.spockVersion}") 
testImplementation("io.projectreactor:reactor-core") 
testImplementation("io.projectreactor:reactor-test") 
testImplementation("org.springframework.boot:spring-boot-starter-test") { 
exclude( group : 'org.ow2.asm' ) } 
testImplementation("com.squareup.okhttp3:mockwebserver:${versions.mockWebServerVersion}")
 } dependencyManagement { imports { mavenBom 
"org.springframework.boot:spring-boot-dependencies:${springBootVersion}" } } 
wrapper { gradleVersion = '6.3' distributionType = Wrapper.DistributionType.ALL 
}
{code}

> Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 on JDK 14 in 
> Spock tests
> -----------------------------------------------------------------------------------------
>
>                 Key: GROOVY-9505
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9505
>             Project: Groovy
>          Issue Type: Bug
>          Components: Compiler
>    Affects Versions: 3.0.0-beta-2
>         Environment: Ubuntu 20.04
> Intellij IDEA IntelliJ IDEA 2020.1 (Ultimate Edition)
> Build #IU-201.6668.121, built on April 8, 2020
> Runtime version: 11.0.6+8-b765.25 amd64
> Adopt Open JDK 14.0.0.hs-adpt
>            Reporter: Kamil Jedrzejuk
>            Priority: Critical
>         Attachments: Screenshot from 2020-04-12 22-23-10.png, Screenshot from 
> 2020-04-12 22-23-52.png, image-2020-04-13-15-35-10-149.png, 
> image-2020-04-13-15-35-15-834.png, image-2020-04-13-15-51-39-107.png
>
>   Original Estimate: 720h
>          Time Spent: 10m
>  Remaining Estimate: 719h 50m
>
> I have a problem with integration tests.  I've updated  Java from 11 to 14.
> I can compile my application, but I can't run a integration tests.
> I'm using a Gradle 6.3
> Open JDK 14
> Spring Boot 2.4
> 2.0-M2-groovy-3.0
>  
> The code you can find here 
> [https://github.com/KamilJedrzejuk/weatherinformer/tree/develop]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to