Skip to content

Commit 627d9df

Browse files
committed
functionaljava#119: Added gradle uptodate plugin
1 parent c77c065 commit 627d9df

File tree

1 file changed

+21
-10
lines changed

1 file changed

+21
-10
lines changed

build.gradle

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,24 @@ defaultTasks 'build'
44
ext {
55
}
66

7+
buildscript {
8+
ext {
9+
uptodateVersion = "1.3.1"
10+
retrolambdaVersion = "2.5.0"
11+
}
12+
13+
repositories {
14+
mavenLocal()
15+
jcenter()
16+
mavenCentral()
17+
}
18+
19+
dependencies {
20+
classpath "com.ofg:uptodate-gradle-plugin:$uptodateVersion"
21+
classpath "me.tatarka:gradle-retrolambda:$retrolambdaVersion"
22+
}
23+
}
24+
725
if (JavaVersion.current().isJava8Compatible()) {
826
allprojects {
927
tasks.withType(Javadoc) {
@@ -52,21 +70,14 @@ allprojects {
5270

5371
subprojects {
5472

55-
buildscript {
56-
repositories {
57-
mavenCentral()
58-
}
59-
60-
dependencies {
61-
classpath 'me.tatarka:gradle-retrolambda:2.5.0'
62-
}
63-
}
64-
6573
apply from: "$rootDir/lib.gradle"
6674
apply plugin: "java"
6775
apply plugin: "eclipse"
76+
apply plugin: "com.ofg.uptodate"
6877

6978
repositories {
79+
mavenLocal()
80+
jcenter()
7081
mavenCentral()
7182
maven {
7283
url sonatypeRepositoryUrl

0 commit comments

Comments
 (0)