Update to Gradle 4

Issue gh-520
This commit is contained in:
Josh Cummings
2021-12-07 15:18:55 -07:00
parent 50d9af5cb0
commit 133cd3e846
6 changed files with 11 additions and 14 deletions

1
.gitignore vendored
View File

@@ -10,3 +10,4 @@ build
*.ipr
.idea
*.iws
out

View File

@@ -5,5 +5,3 @@ dependencies {
compile gradleApi()
compile localGroovy()
}
configurations.archives.artifacts.clear()

View File

@@ -1,8 +1,10 @@
task checkDependencies << {
verifyNoDependenciesMatchingVersion(".*-SNAPSHOT")
if(releaseBuild) {
verifyNoDependenciesMatchingVersion(".*M.*")
verifyNoDependenciesMatchingVersion(".*RC.*")
task checkDependencies {
doLast {
verifyNoDependenciesMatchingVersion(".*-SNAPSHOT")
if (releaseBuild) {
verifyNoDependenciesMatchingVersion(".*M.*")
verifyNoDependenciesMatchingVersion(".*RC.*")
}
}
}

View File

@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.3-all.zip

View File

@@ -30,7 +30,7 @@ public class TestsWithJdepend {
@Before
public void setUp() throws IOException {
jdepend = new JDepend();
jdepend.addDirectory("build/classes/main");
jdepend.addDirectory("build/classes/java/main");
}
@Test

View File

@@ -30,8 +30,4 @@ rootProject.children.each { p->
}
findProject(":spring-ldap-test-support").name = "spring-ldap-test"
findProject(":spring-ldap-test-support-unboundid").name = "spring-ldap-test-unboundid"
// Exposes gradle buildSrc for IDE support
include "buildSrc"
rootProject.children.find{ it.name == "buildSrc" }.name = "spring-build-src"
findProject(":spring-ldap-test-support-unboundid").name = "spring-ldap-test-unboundid"