Skip to content

Commit 8cee571

Browse files
committed
Use variable for JUnit dependency
1 parent ebba32c commit 8cee571

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ allprojects {
3030
sonatypeReleaseUrl = "$sonatypeBaseUrl/service/local/staging/deploy/maven2/"
3131
sonatypeUploadUrl = isSnapshot ? sonatypeSnapshotUrl : sonatypeReleaseUrl
3232
primaryEmail = "functionaljava@googlegroups.com"
33+
34+
dependencyJunit = "junit:junit:4.11"
3335
}
3436
version = fjVersion
3537
group = "org.functionaljava"

core/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jar {
1616

1717
dependencies {
1818
compile 'org.slf4j:slf4j-api:1.7.5'
19-
testCompile "junit:junit:4.11"
19+
testCompile dependencyJunit
2020
}
2121

2222
task javadocJar(type: Jar, dependsOn: javadoc) {

demo/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ archivesBaseName = "${project.projectName}-${project.name}"
99
dependencies {
1010
compile 'org.slf4j:slf4j-api:1.7.5'
1111
compile project(":core")
12-
testCompile "junit:junit:4.11"
12+
testCompile dependencyJunit
1313
}

tests/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ dependencies {
2626
testCompile "org.scala-lang:scala-library:$scalaVersion"
2727
testCompile "org.scalacheck:scalacheck_$scalacheckScalaVersion:$scalacheckVersion"
2828

29-
testCompile "junit:junit:4.11"
29+
testCompile dependencyJunit
3030
testCompile 'org.scalatest:scalatest_2.10:1.9.2'
3131
}

0 commit comments

Comments
 (0)