GeezerVison is showing github.com — Unifiy library versions · cloudbank/functionaljava@55b0197
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: build.gradle +5Lines changed: 5 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -46,6 +46,11 @@ allprojects { |
46 | 46 | sonatypeReleaseUrl = "$sonatypeBaseUrl/service/local/staging/deploy/maven2/" |
47 | 47 | sonatypeUploadUrl = isSnapshot ? sonatypeSnapshotUrl : sonatypeReleaseUrl |
48 | 48 | |
| 49 | + |
| 50 | + dependencySlf4jApi = "org.slf4j:slf4j-api:1.7.5" |
| 51 | + dependencyJunit = "junit:junit:4.11" |
| 52 | + |
| 53 | + |
49 | 54 | } |
50 | 55 | version = fjVersion |
51 | 56 | group = "org.functionaljava" |
|
Collapse file
Copy file name to clipboardExpand all lines: core/build.gradle +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
8 | 8 | } |
9 | 9 |
|
10 | 10 | dependencies { |
11 | | - compile 'org.slf4j:slf4j-api:1.7.5' |
12 | | - testCompile "junit:junit:4.11" |
| 11 | + compile dependencySlf4jApi |
| 12 | + testCompile dependencyJunit |
13 | 13 | } |
14 | 14 |
|
15 | 15 | task javadoc(type: Javadoc, overwrite: true, dependsOn: "java8Javadoc") { |
|
Collapse file
Copy file name to clipboardExpand all lines: demo/build.gradle +2-6Lines changed: 2 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -6,10 +6,6 @@ apply from: "$rootDir/lib.gradle" |
6 | 6 |
|
7 | 7 | mainClassName = "fj.demo.euler.Problem2" |
8 | 8 |
|
9 | | -repositories { |
10 | | - mavenCentral() |
11 | | -} |
12 | | - |
13 | 9 | task javadoc(type: Javadoc, overwrite: true) { |
14 | 10 | def t = createDynamicJavadoc("$projectDir", ["core"]) |
15 | 11 | dependsOn(t) |
@@ -22,7 +18,7 @@ retrolambda { |
22 | 18 | } |
23 | 19 |
|
24 | 20 | dependencies { |
25 | | - compile 'org.slf4j:slf4j-api:1.7.5' |
| 21 | + compile dependencySlf4jApi |
26 | 22 | compile project(":core") |
27 | | - testCompile "junit:junit:4.11" |
| 23 | + testCompile dependencyJunit |
28 | 24 | } |
Collapse file
Copy file name to clipboardExpand all lines: java8/build.gradle +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -14,7 +14,7 @@ task javadoc(type: Javadoc, overwrite: true) { |
14 | 14 |
|
15 | 15 | dependencies { |
16 | 16 | compile project(":core") |
17 | | - testCompile "junit:junit:4.11" |
| 17 | + testCompile dependencyJunit |
18 | 18 | } |
19 | 19 |
|
20 | 20 | compileJava { |
|
Collapse file
Copy file name to clipboardExpand all lines: tests/build.gradle +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -15,10 +15,10 @@ tasks.withType(ScalaCompile) { |
15 | 15 |
|
16 | 16 | dependencies { |
17 | 17 | compile project(":core") |
18 | | - compile "org.slf4j:slf4j-api:1.7.5" |
| 18 | + compile dependencySlf4jApi |
19 | 19 | compile "org.scala-lang:scala-library:$scalaVersion" |
20 | 20 |
|
21 | 21 | testCompile "org.scala-lang:scala-library:$scalaVersion" |
22 | 22 | testCompile "org.scalacheck:scalacheck_$scalacheckScalaVersion:$scalacheckVersion" |
23 | | - testCompile "junit:junit:4.11" |
| 23 | + testCompile dependencyJunit |
24 | 24 | } |