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
Gradle 3.0 is in RC2 now and very likely generally available in time for our 5.0 M2. Let's upgrade to it for a smoother JDK 9 experience, literally just requiring a JAVA_HOME change then.
This broke our build because test reports aren't in the same location anymore. It seems that Bamboo is not able to change the location on a branch-by-branch basis so we should find a way to put test reports at the same location as Gradle 2.x does.
You should be able to set the destination in which Gradle generates XML test reports as follows, where my-custom-location is whatever path you desire under the current project's build directory.
test {
reports.junitXml.destination = file("$buildDir/my-custom-location")
}
java.lang.NoSuchMethodError: org.gradle.internal.jvm.Jvm.getRuntimeJar()Ljava/io/File;
at org.sonarqube.gradle.SonarQubePlugin.getLibraries(SonarQubePlugin.java:362)
at org.sonarqube.gradle.SonarQubePlugin.configureSourceDirsAndJavaClasspath(SonarQubePlugin.java:308)
at org.sonarqube.gradle.SonarQubePlugin.access$200(SonarQubePlugin.java:63)
at org.sonarqube.gradle.SonarQubePlugin$9.execute(SonarQubePlugin.java:229)
at org.sonarqube.gradle.SonarQubePlugin$9.execute(SonarQubePlugin.java:226)
at org.gradle.internal.Actions$FilteredAction.execute(Actions.java:205)
at org.gradle.api.internal.DefaultDomainObjectCollection.all(DefaultDomainObjectCollection.java:117)
at org.gradle.api.internal.DefaultDomainObjectCollection.withType(DefaultDomainObjectCollection.java:127)
Activity
spring-projects-issues commentedon Aug 8, 2016
Juergen Hoeller commented
Gradle 3.0 RC2 works for me so far after a local upgrade.
spring-projects-issues commentedon Aug 15, 2016
Sam Brannen commented
Juergen Hoeller, sorry about raising #19157 as a duplicate. I somehow overlooked this issue when searching.
In any case, Gradle 3.0 is out, and I've already upgraded the build locally (with a clean test run).
So, do you want me to push my changes to
master, or are you in the process of performing the upgrade yourself?spring-projects-issues commentedon Aug 15, 2016
Juergen Hoeller commented
No worries, I'm on Gradle 3.0 RC2 still. Please push the upgrade to GA and I'll grab it right away.
spring-projects-issues commentedon Aug 15, 2016
Sam Brannen commented
Done! ;-)
spring-projects-issues commentedon Aug 18, 2016
Stéphane Nicoll commented
This broke our build because test reports aren't in the same location anymore. It seems that Bamboo is not able to change the location on a branch-by-branch basis so we should find a way to put test reports at the same location as Gradle 2.x does.
spring-projects-issues commentedon Aug 21, 2016
Sam Brannen commented
Stéphane Nicoll,
You should be able to set the destination in which Gradle generates XML test reports as follows, where
my-custom-locationis whatever path you desire under the current project'sbuilddirectory.Does that work for you?
spring-projects-issues commentedon Aug 22, 2016
Sam Brannen commented
Re-resolving this issue as Complete since the build is now passing again with the latest changes to the location of generated JUnit XML files.
spring-projects-issues commentedon Aug 23, 2016
Stéphane Nicoll commented
The SonarQube build is broken as well
spring-projects-issues commentedon Aug 23, 2016
Brian Clozel commented
We need to wait for the next release of the SonarQube Gradle plugin - see SONARGRADL-16.
spring-projects-issues commentedon Aug 23, 2016
Sam Brannen commented
Brian Clozel, thanks for pointing us to the SonarQube issue. (y)
spring-projects-issues commentedon Aug 29, 2016
Dejan Stojadinović commented
I'm already using sonarqube gradle plugin version 2.1-rc1 for my projects (in parallel with gradle 3.0): https://plugins.gradle.org/plugin/org.sonarqube/2.1-rc1; I guess that SonarSource will release version 2.1 in a few days.
spring-projects-issues commentedon Aug 30, 2016
Stéphane Nicoll commented
Our build has been upgrade to the
2.1-rc1version of the plugin that works with Gradle 3.spring-projects-issues commentedon Aug 30, 2016
Sam Brannen commented
(y)