Skip to content

Commit babc574

Browse files
authored
Merge pull request #428 from ZacSweers/z/modernizeBuild
Modernize build
2 parents ff5ae55 + 47192ad commit babc574

File tree

15 files changed

+48
-55
lines changed

15 files changed

+48
-55
lines changed

_ext/eclipse-base/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dependencies {
1515
}
1616
compile("org.slf4j:slf4j-api:${VER_SLF4J}")
1717

18-
testCompile("org.slf4j:slf4j-simple:${VER_SLF4J}")
18+
testImplementation("org.slf4j:slf4j-simple:${VER_SLF4J}")
1919
}
2020

2121
jar {

_ext/eclipse-cdt/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dependencies {
2626
// Required to by CCorePlugin calling PositionTrackerManager
2727
compile "org.eclipse.platform:org.eclipse.core.filebuffers:${VER_ECLISPE_PLATFORM}"
2828

29-
testCompile("org.slf4j:slf4j-simple:${VER_SLF4J}")
29+
testImplementation("org.slf4j:slf4j-simple:${VER_SLF4J}")
3030
}
3131

3232

_ext/eclipse-groovy/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ dependencies {
3737
compile ("org.eclipse.platform:org.eclipse.jface.text:${VER_ECLISPE_JFACE}") {
3838
exclude group: 'org.eclipse.platform', module: 'org.eclipse.swt'
3939
}
40-
testCompile("org.slf4j:slf4j-simple:${VER_SLF4J}")
40+
testImplementation("org.slf4j:slf4j-simple:${VER_SLF4J}")
4141
}
4242

4343
//////////

_ext/eclipse-wtp/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ dependencies {
7373
// Required by org.eclipse.wst.xsd.core
7474
compile "org.eclipse.xsd:org.eclipse.xsd:${VER_ECLISPE_XSD}"
7575

76-
testCompile("org.slf4j:slf4j-simple:${VER_SLF4J}")
76+
testImplementation("org.slf4j:slf4j-simple:${VER_SLF4J}")
7777
}
7878

7979
jar {

_ext/gradle/java-setup.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,6 @@ dependencies {
7373
compileOnly 'com.google.code.findbugs:annotations:3.0.0'
7474
compileOnly 'com.google.code.findbugs:jsr305:3.0.0'
7575

76-
testCompile 'junit:junit:4.12'
77-
testCompile 'org.assertj:assertj-core:3.5.2'
76+
testImplementation 'junit:junit:4.12'
77+
testImplementation 'org.assertj:assertj-core:3.5.2'
7878
}

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ buildscript {
88
classpath "com.diffplug.gradle:goomph:${VER_GOOMPH}"
99
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:${VER_BINTRAY}"
1010
classpath "com.gradle.publish:plugin-publish-plugin:${VER_PLUGIN_PUBLISH}"
11-
classpath "org.ajoberstar:gradle-git:${VER_GRADLE_GIT}"
11+
classpath "org.ajoberstar:gradle-git-publish:${VER_GRADLE_GIT}"
1212
classpath "ch.raffael.pegdown-doclet:pegdown-doclet:${VER_PEGDOWN_DOCLET}"
1313
classpath "gradle.plugin.com.github.spotbugs:spotbugs-gradle-plugin:${VER_SPOTBUGS_PLUGIN}"
14+
classpath "com.google.guava:guava:27.1-jre" // Force newer version for spotbugs
1415
classpath "com.gradle:build-scan-plugin:${VER_BUILDSCAN_PLUGIN}"
1516
}
1617
}

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ artifactIdGradle=spotless-plugin-gradle
2222
# Build requirements
2323
VER_JAVA=1.8
2424
VER_SPOTBUGS=3.1.6
25-
VER_SPOTBUGS_PLUGIN=1.6.2
25+
VER_SPOTBUGS_PLUGIN=2.0.0
2626
VER_BINTRAY=1.7.3
2727
VER_PLUGIN_PUBLISH=0.9.7
2828
VER_GOOMPH=3.17.4
29-
VER_GRADLE_GIT=1.7.2
29+
VER_GRADLE_GIT=2.1.1
3030
VER_PEGDOWN_DOCLET=1.3
31-
VER_BUILDSCAN_PLUGIN=1.16
31+
VER_BUILDSCAN_PLUGIN=2.0.2
3232

3333
# Used in multiple places
3434
VER_DURIAN=1.2.0

gradle/wrapper/gradle-wrapper.jar

-4 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.5.1-all.zip
34
zipStoreBase=GRADLE_USER_HOME
45
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-bin.zip

javadoc-publish/build.gradle

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,18 @@
1-
def cred = {
2-
if (System.env[it] != null) {
3-
return System.env[it]
4-
} else if (project.hasProperty(it)) {
5-
return project[it]
6-
} else {
7-
return 'unknown_' + it
8-
}
9-
}
10-
11-
apply plugin: 'org.ajoberstar.github-pages'
12-
githubPages {
1+
// https://github.com/ajoberstar/gradle-git-publish
2+
apply plugin: 'org.ajoberstar.git-publish'
3+
gitPublish {
134
repoUri = 'https://github.com/diffplug/spotless'
14-
deleteExistingFiles = false
15-
pages {
5+
branch = 'gh-pages'
6+
preserve { include '**/*' }
7+
contents {
168
from 'build/javadoc/'
179
into 'javadoc/'
1810
}
19-
credentials {
20-
username = cred('gh_token')
21-
password = ''
22-
}
11+
12+
// Credentials
13+
// GRGIT_USER environment variable or org.ajoberstar.grgit.auth.username system property.
2314
}
24-
tasks.prepareGhPages.dependsOn(":lib:javadoc")
25-
tasks.prepareGhPages.dependsOn(":lib-extra:javadoc")
26-
tasks.prepareGhPages.dependsOn(":plugin-gradle:javadoc")
27-
tasks.prepareGhPages.dependsOn(":plugin-maven:javadoc")
15+
tasks.gitPublishCopy.dependsOn(":lib:javadoc")
16+
tasks.gitPublishCopy.dependsOn(":lib-extra:javadoc")
17+
tasks.gitPublishCopy.dependsOn(":plugin-gradle:javadoc")
18+
tasks.gitPublishCopy.dependsOn(":plugin-maven:javadoc")

0 commit comments

Comments
 (0)