Search in sources :

Example 1 with GradleUpdateResult

use of com.github.benmanes.gradle.versions.updates.gradle.GradleUpdateResult in project spring-security by spring-projects.

the class UpdateDependenciesPlugin method updateGradleVersion.

private void updateGradleVersion(Result result, Project project, UpdateDependenciesExtension updateDependenciesSettings) {
    if (!result.getGradle().isEnabled()) {
        return;
    }
    GradleUpdateResult current = result.getGradle().getCurrent();
    GradleUpdateResult running = result.getGradle().getRunning();
    if (current.compareTo(running) > 0) {
        String title = "Update Gradle to " + current.getVersion();
        System.out.println(title);
        runCommand(project.getRootDir(), "./gradlew", "wrapper", "--gradle-version", current.getVersion(), "--no-daemon");
        afterGroup(updateDependenciesSettings, project.getRootDir(), title, createIssueResultMono(updateDependenciesSettings));
    }
}
Also used : GradleUpdateResult(com.github.benmanes.gradle.versions.updates.gradle.GradleUpdateResult)

Aggregations

GradleUpdateResult (com.github.benmanes.gradle.versions.updates.gradle.GradleUpdateResult)1