Skip to content

Commit 4db435f

Browse files
committed
Merge branch 'gradle2'
2 parents 212198d + aa5d16a commit 4db435f

File tree

10 files changed

+272
-16
lines changed

10 files changed

+272
-16
lines changed

build.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ subprojects {
7575
apply plugin: "maven"
7676
apply plugin: "java"
7777

78+
sourceCompatibility = "1.7"
79+
7880
if (doSigning()) {
7981
apply plugin: "signing"
8082
signing {
@@ -149,3 +151,7 @@ subprojects {
149151
}
150152

151153
}
154+
155+
task wrapper(type: Wrapper) {
156+
gradleVersion = '2.0'
157+
}

core/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ dependencies {
99
testCompile dependencyJunit
1010
}
1111

12-
task javadoc(type: Javadoc, overwrite: true, dependsOn: "java8Javadoc") {
13-
}
12+
sourceCompatibility = "1.8"
1413

1514
retrolambda {
1615
jdk System.getenv("JAVA8_HOME")

demo/build.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ apply plugin: 'retrolambda'
44

55
mainClassName = "fj.demo.euler.Problem2"
66

7-
task javadoc(type: Javadoc, overwrite: true) {
8-
dependsOn(createDynamicJavadoc("$projectDir", ["core"]))
9-
}
7+
sourceCompatibility = "1.8"
108

119
retrolambda {
1210
jdk System.getenv("JAVA8_HOME")

demo/src/main/java/fj/demo/concurrent/WordCount.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
import fj.data.Iteratee.IterV;
3535

3636
/**
37-
* Reads words and their counts from files ({@link #getWordsAndCountsFromFiles(List)} in a single thread
38-
* and {@link #getWordsAndCountsFromFilesInParallel(List, int)} in multiple threads). The files are created
37+
* Reads words and their counts from files ({@link #getWordsAndCountsFromFiles} in a single thread
38+
* and {@link #getWordsAndCountsFromFilesInParallel} in multiple threads). The files are created
3939
* initially and populated with some sample content.
4040
*
4141
* @author Martin Grotzke

gradle/wrapper/gradle-wrapper.jar

49.9 KB
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#Tue Jun 10 12:02:45 EST 2014
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists
6+
#distributionUrl=http\://services.gradle.org/distributions/gradle-1.11-bin.zip
7+
distributionUrl=https\://services.gradle.org/distributions/gradle-2.0-bin.zip

gradlew

Lines changed: 164 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 90 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

java8/build.gradle

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,12 @@ jar {
33
baseName "${project.projectName}-${project.name}"
44
}
55

6-
task javadoc(type: Javadoc, overwrite: true) {
7-
dependsOn(createDynamicJavadoc("$projectDir", ["core"]))
8-
}
6+
sourceCompatibility = "1.8"
97

108
dependencies {
119
compile project(":core")
1210
testCompile dependencyJunit
1311
}
1412

15-
compileJava {
16-
options.fork = true
17-
options.forkOptions.executable = findJavaCommand("javac")
18-
}
1913

2014
uploadArchives.enabled = true

settings.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@
22
rootProject.name = "functionaljava"
33

44
include 'core', 'demo', "tests", "consume", "java8"
5-
// The final Java 8 release, (build 1.8.0-b132) does not work with Gradle and the Scala plugin
6-
// see http://issues.gradle.org/browse/GRADLE-3023
75

0 commit comments

Comments
 (0)