Skip to content

Commit 2334a95

Browse files
author
Mark Perry
committed
Simplify build scripts
1 parent cc2b403 commit 2334a95

File tree

4 files changed

+1
-47
lines changed

4 files changed

+1
-47
lines changed

consume/build.gradle

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11

2-
apply plugin: 'java'
3-
4-
defaultTasks 'build'
5-
62
repositories {
7-
mavenCentral()
83
maven {
94
url sonatypeRepositoryUrl
105
}

core/build.gradle

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ dependencies {
1212
testCompile "junit:junit:4.11"
1313
}
1414

15-
//tasks["javadoc"].dependsOn("java8Javadoc")
1615
task javadoc(type: Javadoc, overwrite: true, dependsOn: "java8Javadoc") {
1716
}
1817

@@ -22,24 +21,5 @@ retrolambda {
2221
javaVersion JavaVersion.VERSION_1_7
2322
}
2423

25-
//project.tasks['javadocJar'].dependsOn(javadoc)
26-
27-
//task javadocJar(type: Jar, dependsOn: java8Javadoc) {
28-
// classifier = 'javadoc'
29-
// from "build/docs/javadoc"
30-
//}
31-
32-
33-
//Boolean doSigning() {
34-
// signingEnabled.trim() == "true"
35-
//}
36-
//
37-
//if (doSigning()) {
38-
// apply plugin: "signing"
39-
// signing {
40-
// sign configurations.archives
41-
// }
42-
//}
43-
4424
uploadArchives.enabled = true
4525

demo/build.gradle

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,8 @@
11

2-
3-
buildscript {
4-
repositories {
5-
mavenCentral()
6-
}
7-
8-
dependencies {
9-
classpath 'me.tatarka:gradle-retrolambda:1.3.1'
10-
}
11-
}
12-
13-
apply plugin: 'java'
142
apply plugin: 'application'
153
apply plugin: 'retrolambda'
16-
apply from: "$rootDir/lib.gradle"
174

18-
defaultTasks 'build'
5+
apply from: "$rootDir/lib.gradle"
196

207
mainClassName = "fj.demo.euler.Problem2"
218

java8/build.gradle

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
11

22
import org.apache.tools.ant.taskdefs.condition.Os
33

4-
apply plugin: 'java'
5-
64
apply from: "$rootDir/lib.gradle"
75

8-
defaultTasks 'build'
9-
10-
repositories {
11-
mavenCentral()
12-
}
13-
146
jar {
157
baseName "${project.projectName}-${project.name}"
168
}

0 commit comments

Comments
 (0)