[jira] [Commented] (GROOVY-9505) Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 on JDK 14 in Spock tests

2020-04-13 Thread Kamil Jedrzejuk (Jira)


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

Kamil Jedrzejuk commented on GROOVY-9505:
-

Hmm I think that is still a problem with downloading some libs:

!image-2020-04-13-21-57-29-711.png!

> 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.3
> 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, 
> image-2020-04-13-16-31-38-734.png, image-2020-04-13-16-31-47-635.png, 
> image-2020-04-13-16-32-50-825.png, image-2020-04-13-20-09-35-617.png, 
> image-2020-04-13-21-57-29-711.png
>
>   Original Estimate: 720h
>  Time Spent: 40m
>  Remaining Estimate: 719h 20m
>
> 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)


[jira] [Commented] (GROOVY-9505) Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 on JDK 14 in Spock tests

2020-04-13 Thread Kamil Jedrzejuk (Jira)


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

Kamil Jedrzejuk commented on GROOVY-9505:
-

I could not make a pull request :

!image-2020-04-13-20-09-35-617.png!

> 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.3
> 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, 
> image-2020-04-13-16-31-38-734.png, image-2020-04-13-16-31-47-635.png, 
> image-2020-04-13-16-32-50-825.png, image-2020-04-13-20-09-35-617.png
>
>   Original Estimate: 720h
>  Time Spent: 20m
>  Remaining Estimate: 719h 40m
>
> 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)


[jira] [Commented] (GROOVY-9505) Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 on JDK 14 in Spock tests

2020-04-13 Thread Kamil Jedrzejuk (Jira)


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

Kamil Jedrzejuk commented on GROOVY-9505:
-

Thank You Marcin for Your support! Have a nice day!

> 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.3
> 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, 
> image-2020-04-13-16-31-38-734.png, image-2020-04-13-16-31-47-635.png, 
> image-2020-04-13-16-32-50-825.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)


[jira] [Commented] (GROOVY-9505) Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 on JDK 14 in Spock tests

2020-04-13 Thread Marcin Zajaczkowski (Jira)


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

Marcin Zajaczkowski commented on GROOVY-9505:
-

It's rather a separate issue related to the fact how integration tests are 
configured. Most likely not Java 14 related.

> 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.3
> 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, 
> image-2020-04-13-16-31-38-734.png, image-2020-04-13-16-31-47-635.png, 
> image-2020-04-13-16-32-50-825.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)


[jira] [Commented] (GROOVY-9505) Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 on JDK 14 in Spock tests

2020-04-13 Thread Kamil Jedrzejuk (Jira)


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

Kamil Jedrzejuk commented on GROOVY-9505:
-

It works

!image-2020-04-13-16-31-47-635.png!

But for integrationTest I have problem I think not related with this issue

!image-2020-04-13-16-32-50-825.png!

 

> 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, 
> image-2020-04-13-16-31-38-734.png, image-2020-04-13-16-31-47-635.png, 
> image-2020-04-13-16-32-50-825.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)


[jira] [Commented] (GROOVY-9505) Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 on JDK 14 in Spock tests

2020-04-13 Thread Marcin Zajaczkowski (Jira)


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

Marcin Zajaczkowski commented on GROOVY-9505:
-

And this comes back to my original question to Paul :).

> Can Groovy (3.0.3) interact with {{record}} defined in Java 14 production 
> code?

>  (assuming ASM_API_VERSION in 
>[CompilerConfiguration|https://github.com/apache/groovy/blob/a9946449a943fcf55204f8bbfaa71f3419500f2a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java#L125]
> is changed to Opcodes.ASM8)

 

It seems that no and there is some extra work required on the Groovy side to 
deal with that bytecode.

> 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)


[jira] [Commented] (GROOVY-9505) Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 on JDK 14 in Spock tests

2020-04-13 Thread Kamil Jedrzejuk (Jira)


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

Kamil Jedrzejuk commented on GROOVY-9505:
-

[~szpak] 

 No still :

_Testing started at 4:18 PM ..._
_> Task :processResources UP-TO-DATE_
_> Task :compileJava UP-TO-DATE_
_> Task :compileGroovy NO-SOURCE_
_> Task :classes UP-TO-DATE_
_> Task :compileTestJava NO-SOURCE_
_> Task :compileTestGroovy FAILED_
_/home/kamil/Documents/projects/priv/weatherinformer/src/test/groovy/com/twitter/kamilyedrzejuq/weather/domain/SampleData.java:17:
 error: cannot find symbol_
 _return FetchCityWeatherCommand.of(cityName);_
 _^_
 _symbol: method of(String)_
 _location: class FetchCityWeatherCommand_
_Note: 
/home/kamil/Documents/projects/priv/weatherinformer/src/test/groovy/com/twitter/kamilyedrzejuq/weather/domain/SampleData.java
 uses preview language features._
_Note: Recompile with -Xlint:preview for details._
_1 error_
_startup failed:_
_Compilation failed; see the compiler error output for details._
_1 error_
_FAILURE: Build failed with an exception._
_* What went wrong:_
_Execution failed for task ':compileTestGroovy'._
_> Compilation failed; see the compiler error output for details._
_* Try:_

> 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)


[jira] [Commented] (GROOVY-9505) Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 on JDK 14 in Spock tests

2020-04-13 Thread Marcin Zajaczkowski (Jira)


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

Marcin Zajaczkowski commented on GROOVY-9505:
-

And that is the result after those changes? :)

Still "{{java.lang.UnsupportedOperationException: This feature requires ASM8}}"?

 

> 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)


[jira] [Commented] (GROOVY-9505) Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 on JDK 14 in Spock tests

2020-04-13 Thread Kamil Jedrzejuk (Jira)


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

Kamil Jedrzejuk commented on GROOVY-9505:
-

The changes is on [https://github.com/KamilJedrzejuk/groovy/tree/GROOVY_3_0_X]

> 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)


[jira] [Commented] (GROOVY-9505) Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 on JDK 14 in Spock tests

2020-04-13 Thread Kamil Jedrzejuk (Jira)


[ 
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-3

[jira] [Commented] (GROOVY-9505) Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 on JDK 14 in Spock tests

2020-04-13 Thread Marcin Zajaczkowski (Jira)


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

Marcin Zajaczkowski commented on GROOVY-9505:
-

In addition you might want to do the same for "GroovyCompile" tasks.

> 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)


[jira] [Commented] (GROOVY-9505) Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 on JDK 14 in Spock tests

2020-04-13 Thread Marcin Zajaczkowski (Jira)


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

Marcin Zajaczkowski commented on GROOVY-9505:
-

Have you enabled it properly?

https://blog.solidsoft.pl/2020/03/02/enable-java-14-preview-features-in-gradle-maven-and-idea/#gradle

> 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
>  Remaining Estimate: 720h
>
> 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)


[jira] [Commented] (GROOVY-9505) Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 on JDK 14 in Spock tests

2020-04-13 Thread Kamil Jedrzejuk (Jira)


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

Kamil Jedrzejuk commented on GROOVY-9505:
-

[~szpak]

I've built a Groovy locally from 3.0.X branch, I got a 3.0.4-SNAPSHOT.jar, then 
I renamed file and put to my local gradle repo.

Now I'm getting:

!image-2020-04-13-15-51-39-107.png!

> 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
>  Remaining Estimate: 720h
>
> 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)


[jira] [Commented] (GROOVY-9505) Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 on JDK 14 in Spock tests

2020-04-13 Thread Marcin Zajaczkowski (Jira)


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

Marcin Zajaczkowski commented on GROOVY-9505:
-

[~CamilYed] Have you change [this 
line|https://github.com/apache/groovy/blob/a9946449a943fcf55204f8bbfaa71f3419500f2a/src/main/java/org/codehaus/groovy/control/CompilerConfiguration.java#L125]
 to:

> public static final int ASM_API_VERSION = Opcodes.ASM8;

built Groovy locally, use it in your project and still have:

> {{java.lang.UnsupportedOperationException: This feature requires ASM8}}

?{{}}

> 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
>
>   Original Estimate: 720h
>  Remaining Estimate: 720h
>
> 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)


[jira] [Commented] (GROOVY-9505) Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 on JDK 14 in Spock tests

2020-04-13 Thread Kamil Jedrzejuk (Jira)


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

Kamil Jedrzejuk commented on GROOVY-9505:
-

[~szpak] I've seen that Groovy use a properly asm version. 

I thought about this to build a groovy locally.

> 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
>
>   Original Estimate: 720h
>  Remaining Estimate: 720h
>
> 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)


[jira] [Commented] (GROOVY-9505) Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 on JDK 14 in Spock tests

2020-04-13 Thread Marcin Zajaczkowski (Jira)


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

Marcin Zajaczkowski commented on GROOVY-9505:
-

It's not a problem with the asm version anymore. 3.0.3 uses 8.1. However, as I 
mentioned in my last comment CompilerConfiguration (also in master) uses 
Opcodes.ASM7 which generates the last error (see the asm code in the given 
line). The case, I asked Paul, is if it there are other things to do to make 
Groovy be able to recognized record in compiled Java 14 code.

The thing you [~CamilYed] may - if you have time - is to bump this 
(Opcodes.ASM8) locally, compile and build Groovy and (if successful) check if 
that snapshot works in your project.

> 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
>
>   Original Estimate: 720h
>  Remaining Estimate: 720h
>
> 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)


[jira] [Commented] (GROOVY-9505) Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 on JDK 14 in Spock tests

2020-04-13 Thread Kamil Jedrzejuk (Jira)


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

Kamil Jedrzejuk commented on GROOVY-9505:
-

After update a Groovy to 3.0.4-SNAPSHOT the problem still exists.

 

groovy.version=3.0.4-SNAPSHOT

> 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
>
>   Original Estimate: 720h
>  Remaining Estimate: 720h
>
> 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)


[jira] [Commented] (GROOVY-9505) Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 on JDK 14 in Spock tests

2020-04-13 Thread Kamil Jedrzejuk (Jira)


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

Kamil Jedrzejuk commented on GROOVY-9505:
-

Maybe 
[https://oss.jfrog.org/artifactory/oss-snapshot-local/org/codehaus/groovy/groovy-all/3.0.4-SNAPSHOT/]
 this will resolve a problem but I dont know how to force gradle to use this 
version...

> 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
>
>   Original Estimate: 720h
>  Remaining Estimate: 720h
>
> 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)


[jira] [Commented] (GROOVY-9505) Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 on JDK 14 in Spock tests

2020-04-13 Thread Kamil Jedrzejuk (Jira)


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

Kamil Jedrzejuk commented on GROOVY-9505:
-

[~szpak]

Ok I've update a Soring Boot to 2.2.6 and also forced to use a groovy 3.0.3, 
and now I have a:

java.lang.UnsupportedOperationException: This feature requires ASM8

as you wrote here: 
[https://github.com/spockframework/spock/issues/1142#issuecomment-612855754]

> 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
>
>   Original Estimate: 720h
>  Remaining Estimate: 720h
>
> 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)


[jira] [Commented] (GROOVY-9505) Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 on JDK 14 in Spock tests

2020-04-13 Thread Marcin Zajaczkowski (Jira)


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

Marcin Zajaczkowski commented on GROOVY-9505:
-

[~paulk] I made a separate investigation in the meantime 
[here|https://github.com/spockframework/spock/issues/1142#issuecomment-612855754
 ] and the key question there is:

Can Groovy (3.0.3) interact with {{record}} defined in Java 14 production 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
>
>   Original Estimate: 720h
>  Remaining Estimate: 720h
>
> 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)


[jira] [Commented] (GROOVY-9505) Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 on JDK 14 in Spock tests

2020-04-13 Thread Kamil Jedrzejuk (Jira)


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

Kamil Jedrzejuk commented on GROOVY-9505:
-

[~paulk] 

Hi I've download to poms:

org.spockframework:spock-core

org.spockframework:spock-spring

I've changed artifactsid to

spockVersion : '2.0-M2-groovy-3.0.3',

and in each pom I've changed groovy version from 3.0.0 to 3.0.3 after that I 
have installed this artifacts in my local maven repo. In my build gradle I 
wouold like to use them (with changed artifacts id). BUt I still have the same 
problem.

 

 
{code:java}
buildscript {
ext {
springBootVersion = '2.2.4.RELEASE'
}
repositories {
mavenCentral()
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')
}

[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.3',
vavrVersion : '0.10.2',
mockWebServerVersion: '3.14.1',
gsonVersion : '2.8.5',
springdocOpenapiVersion : '1.3.2'
]

repositories {
mavenLocal()
mavenCentral()
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.codehaus.groovy:groovy-all:3.0.3'

testImplementation("org.spockframework:spock-core:${versions.spockVersion}") {
//exclude group : 'org.codehaus.groovy'
//compile 'org.codehaus.groovy:groovy:3.0.3'
//compile 'org.codehaus.groovy:groovy-json:3.0.3'
//compile 'org.codehaus.groovy:groovy-nio:3.0.3'
//compile 'org.codehaus.groovy:groovy-macro:3.0.3'
//compile 'org.codehaus.groovy:groovy-templates:3.0.3'
//compile 'org.codehaus.groovy:groovy-test:3.0.3'
//compile 'org.codehaus.groovy:groovy-sql:3.0.3'
//compile 'org.codehaus.groovy:groovy-xml:3.0.3'

}

testImplementation("org.spockframework:spock-spring:${versions.spockVersion}") {
//exclude group : 'org.codehaus.groovy'
//compile 'org.codehaus.groovy:groovy:3.0.3'
//compile 'org.codehaus.groovy:groovy-json:3.0.3'
//c

[jira] [Commented] (GROOVY-9505) Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 on JDK 14 in Spock tests

2020-04-13 Thread Kamil Jedrzejuk (Jira)


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

Kamil Jedrzejuk commented on GROOVY-9505:
-

Paul what I should have in my build.gradle. I think that Spock Does not support 
Groovy 3.0.3

> 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
>
>   Original Estimate: 720h
>  Remaining Estimate: 720h
>
> 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)


[jira] [Commented] (GROOVY-9505) Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 on JDK 14 in Spock tests

2020-04-12 Thread Paul King (Jira)


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

Paul King commented on GROOVY-9505:
---

If you are using Groovy 3.0.0-beta-2 you should upgrade to 3.0.3.

> 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
>
>   Original Estimate: 720h
>  Remaining Estimate: 720h
>
> 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)