Skip to content
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

Set groovy minVersion to 2.5.0 #905

Closed
wants to merge 1 commit into from

Conversation

henrik242
Copy link
Contributor

@henrik242 henrik242 commented Sep 12, 2018

@codecov
Copy link

codecov bot commented Sep 12, 2018

Codecov Report

Merging #905 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##             master    #905   +/-   ##
========================================
  Coverage        75%     75%           
  Complexity     3439    3439           
========================================
  Files           371     371           
  Lines         10580   10580           
  Branches       1337    1337           
========================================
  Hits           7936    7936           
  Misses         2174    2174           
  Partials        470     470

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b58e0f1...7a962a4. Read the comment docs.

@MartyIX
Copy link
Contributor

MartyIX commented Sep 12, 2018

@henrik242 You have changed minGroovyVersion but not groovyVersion. Shoudn't groovyVersion be changed too? The thing is that Travis tests with 2.5.2 as it did before.

@henrik242
Copy link
Contributor Author

henrik242 commented Sep 12, 2018

@MartyIX No, groovyVersion does not need to be be changed. That way https://issues.apache.org/jira/browse/GROOVY-8710 is handled properly, at the same time as people seeing https://issues.apache.org/jira/browse/GROOVY-8779 can use the latest spock. (It works perfectly for me in a project with Java 10.0.2 and Groovy 2.5.1.)

@MartyIX
Copy link
Contributor

MartyIX commented Sep 12, 2018

But all Spock tests were run on 2.5.2 in Travis so you can't guarantee that it really works with 2.5.1 or 2.5.0. That's what confuses me.

@henrik242
Copy link
Contributor Author

@MartyIX It really does work in my pretty large project with 800+ spock test files.

@MartyIX
Copy link
Contributor

MartyIX commented Sep 12, 2018

That's great. :)

@szpak
Copy link
Member

szpak commented Sep 12, 2018

@henrik242 I agree with @MartyIX that currently the Travis build doesn't check the codebase with Groovy 2.5.0. I know why changing it (groovyVersion) to 2.5.0 in general is a bad idea, but it would be good to test that case somehow.

Have you at least tried to build Spock with 2.5.0 (set as groovyVersion).

@henrik242
Copy link
Contributor Author

I haven't tried it, but I guess building Spock with 2.5.0 might fail? At least I have tested thoroughly that using Spock works well with minVersion = 2.5.0

@szpak
Copy link
Member

szpak commented Sep 12, 2018

AFAIR the build fails.
Regarding just running tests, there is a jaxb issue mentioned here. Tests using it might fail in runtime (while using Spock with older Groovy with Java 9+). However, I haven't follow that topic.

@MartyIX
Copy link
Contributor

MartyIX commented Sep 13, 2018

@henrik242 The other way to solve your issue is to use Groovy 2.5.3 snapshot (stable version to be released in a week or so). It works with the latest RC of Spock and with the latest EAP version of IDEA (I don't use stable IDEA so I can't say anything about that.)

@henrik242
Copy link
Contributor Author

@MartyIX Yeah, that's what I'm currently doing. No EAP is needed, though, the regular IDEA release works fine.

@leonard84
Copy link
Member

fixed in 0c3c553

@leonard84 leonard84 closed this Sep 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants