Skip to content

Upgrade build to Gradle 3.0 [SPR-14569] #19138

Closed

Description

@spring-projects-issues

Juergen Hoeller opened SPR-14569 and commented

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.


Issue Links:

Referenced from: commits c399b4b, e6353f0, c64cdcc, 669fd80, 9629afb

0 votes, 5 watchers

Activity

  1. spring-projects-issues commented on Aug 8, 2016

    @spring-projects-issues
    CollaboratorAuthor

    Juergen Hoeller commented

    Gradle 3.0 RC2 works for me so far after a local upgrade.

  2. spring-projects-issues commented on Aug 15, 2016

    @spring-projects-issues
    CollaboratorAuthor

    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?

  3. spring-projects-issues commented on Aug 15, 2016

    @spring-projects-issues
    CollaboratorAuthor

    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.

  4. spring-projects-issues commented on Aug 15, 2016

    @spring-projects-issues
    CollaboratorAuthor

    Sam Brannen commented

    Done! ;-)

  5. spring-projects-issues commented on Aug 18, 2016

    @spring-projects-issues
    CollaboratorAuthor

    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.

  6. spring-projects-issues commented on Aug 21, 2016

    @spring-projects-issues
    CollaboratorAuthor

    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-location is whatever path you desire under the current project's build directory.

    test {
    	reports.junitXml.destination = file("$buildDir/my-custom-location")
    }

    Does that work for you?

  7. spring-projects-issues commented on Aug 22, 2016

    @spring-projects-issues
    CollaboratorAuthor

    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.

  8. spring-projects-issues commented on Aug 23, 2016

    @spring-projects-issues
    CollaboratorAuthor

    Stéphane Nicoll commented

    The SonarQube build is broken as well

    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)
    
  9. spring-projects-issues commented on Aug 23, 2016

    @spring-projects-issues
    CollaboratorAuthor

    Brian Clozel commented

    We need to wait for the next release of the SonarQube Gradle plugin - see SONARGRADL-16.

  10. spring-projects-issues commented on Aug 23, 2016

    @spring-projects-issues
    CollaboratorAuthor

    Sam Brannen commented

    Brian Clozel, thanks for pointing us to the SonarQube issue. (y)

  11. spring-projects-issues commented on Aug 29, 2016

    @spring-projects-issues
    CollaboratorAuthor

    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.

  12. spring-projects-issues commented on Aug 30, 2016

    @spring-projects-issues
    CollaboratorAuthor

    Stéphane Nicoll commented

    Our build has been upgrade to the 2.1-rc1 version of the plugin that works with Gradle 3.

  13. spring-projects-issues commented on Aug 30, 2016

    @spring-projects-issues
    CollaboratorAuthor

    Sam Brannen commented

    (y)

  14. added this to the 5.0 M2 milestone on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type: task

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions