Skip to content

Commit 232d296

Browse files
committed
Moved back to Gradle 6.8.3. Moved from the library java to java-library, upgrading the compile, runtime, testRuntime and testCompile configurations as per https://docs.gradle.org/current/userguide/upgrading_version_6.html
1 parent 1ea455f commit 232d296

10 files changed

Lines changed: 30 additions & 30 deletions

File tree

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ buildscript {
1616
}
1717

1818
wrapper {
19-
gradleVersion = "7.4"
19+
gradleVersion = "6.8.3"
2020
distributionType = Wrapper.DistributionType.ALL
2121
}
2222
}
@@ -94,7 +94,7 @@ subprojects {
9494
}
9595

9696
apply from: "$rootDir/lib.gradle"
97-
apply plugin: "java"
97+
apply plugin: "java-library"
9898
apply plugin: "eclipse"
9999

100100
repositories {

consume/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
archivesBaseName = "${project.projectName}-${project.name}"
33

44
dependencies {
5-
compile("$group:$projectName:$fjConsumeVersion")
5+
api "$group:$projectName:$fjConsumeVersion"
66

7-
testCompile junitCompile
8-
testRuntime junitRuntime
7+
testImplementation junitCompile
8+
testRuntimeOnly junitRuntime
99
}

core/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ ext {
66
archivesBaseName = project.projectName
77

88
dependencies {
9-
testCompile junitCompile
10-
testRuntime junitRuntime
11-
testCompile 'com.h2database:h2:2.1.210'
12-
testCompile 'commons-dbutils:commons-dbutils:1.7'
9+
testImplementation junitCompile
10+
testRuntimeOnly junitRuntime
11+
testImplementation 'com.h2database:h2:2.1.210'
12+
testImplementation 'commons-dbutils:commons-dbutils:1.7'
1313
}
1414

1515
performSigning(signingEnabled, signModule)

demo/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ mainClassName = "fj.demo.euler.Problem2"
66
archivesBaseName = "${project.projectName}-${project.name}"
77

88
dependencies {
9-
compile project(":core")
10-
compile project(":quickcheck")
11-
testCompile junitCompile
12-
testRuntime junitRuntime
9+
api project(":core")
10+
api project(":quickcheck")
11+
api junitCompile
12+
testImplementation junitRuntime
1313
}
1414

1515
test {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

java-core/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ ext {
66
}
77

88
dependencies {
9-
compile project(":core")
10-
testCompile junitCompile
11-
testRuntime junitRuntime
9+
api project(":core")
10+
testImplementation junitCompile
11+
testRuntimeOnly junitRuntime
1212
}
1313

1414
performSigning(signingEnabled, signModule)

performance/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
dependencies {
3-
compile project(":core")
4-
testCompile junitCompile
5-
testRuntime junitRuntime
3+
api project(":core")
4+
testImplementation junitCompile
5+
testRuntimeOnly junitRuntime
66
}

props-core-scalacheck/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ ext {
1111
}
1212

1313
dependencies {
14-
compile project(":core")
15-
compile "org.scala-lang:scala-library:$scalaVersion"
16-
compile "org.scalacheck:scalacheck_$scalacheckScalaVersion:$scalacheckVersion"
14+
api project(":core")
15+
api "org.scala-lang:scala-library:$scalaVersion"
16+
api "org.scalacheck:scalacheck_$scalacheckScalaVersion:$scalacheckVersion"
1717

18-
testCompile junitCompile
19-
testRuntime junitRuntime
18+
testImplementation junitCompile
19+
testRuntimeOnly junitRuntime
2020
}
2121

2222
tasks.withType(ScalaCompile) {

props-core/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
archivesBaseName = "${project.projectName}-${project.name}"
33

44
dependencies {
5-
compile project(":quickcheck")
6-
testCompile junitCompile
7-
testRuntime junitRuntime
5+
api project(":quickcheck")
6+
testImplementation junitCompile
7+
testRuntimeOnly junitRuntime
88
}

quickcheck/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ ext {
66
archivesBaseName = "${project.projectName}-${project.name}"
77

88
dependencies {
9-
compile project(":core")
10-
compile junitCompile
9+
api project(":core")
10+
api junitCompile
1111
}
1212

1313
performSigning(signingEnabled, signModule)

0 commit comments

Comments
 (0)