Skip to content

Commit

Permalink
Update to Gradle 4
Browse files Browse the repository at this point in the history
Issue gh-520
  • Loading branch information
jzheaux committed Dec 14, 2021
1 parent 50d9af5 commit 133cd3e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 14 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ build
*.ipr
.idea
*.iws
out
2 changes: 0 additions & 2 deletions buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,3 @@ dependencies {
compile gradleApi()
compile localGroovy()
}

configurations.archives.artifacts.clear()
12 changes: 7 additions & 5 deletions gradle/release-checks.gradle
Original file line number Diff line number Diff line change
@@ -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.*")
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 1 addition & 5 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 133cd3e

Please sign in to comment.