Skip to content

Commit 316458a

Browse files
AustinShalitJLLeitschuh
authored andcommitted
Update to Gradle 4.0.2 (#859)
1 parent fb7ca6a commit 316458a

File tree

17 files changed

+52
-40
lines changed

17 files changed

+52
-40
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ script:
3838
# will not be able to run MainWindowTest.testDragOperationFromPaletteToPipeline
3939
- |
4040
if [[ "$TRAVIS_OS_NAME" == "osx" ]];
41-
then ./gradlew check jacocoTestReport jacocoRootReport --stacktrace -Pheadless=true -PlogTests -Dscan -Pgeneration -PjniLocation=$HOME/opencv/jni;
42-
else ./gradlew check jacocoTestReport jacocoRootReport --stacktrace -Pheadless=true -PlogTests -Dscan;
41+
then ./gradlew check jacocoTestReport jacocoRootReport --stacktrace -Pheadless=true -PlogTests --scan -Pgeneration -PjniLocation=$HOME/opencv/jni;
42+
else ./gradlew check jacocoTestReport jacocoRootReport --stacktrace -Pheadless=true -PlogTests --scan;
4343
fi
4444
4545
after_success:

build.gradle

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ buildscript {
1414
}
1515

1616
dependencies {
17-
classpath group: 'de.dynamicfiles.projects.gradle.plugins', name: 'javafx-gradle-plugin', version: '8.5.2'
18-
classpath 'com.netflix.nebula:gradle-aggregate-javadocs-plugin:2.2.+'
19-
classpath 'net.ltgt.gradle:gradle-errorprone-plugin:0.0.8'
17+
classpath group: 'de.dynamicfiles.projects.gradle.plugins', name: 'javafx-gradle-plugin', version: '8.8.0'
18+
classpath 'com.netflix.nebula:gradle-aggregate-javadocs-plugin:3.0.1'
19+
classpath 'net.ltgt.gradle:gradle-errorprone-plugin:0.0.11'
2020
classpath group: 'edu.wpi.first.wpilib.opencv', name: 'opencv-installer', version: '2.0.0'
2121
}
2222
}
@@ -25,15 +25,15 @@ import edu.wpi.first.wpilib.opencv.installer.Installer
2525
import edu.wpi.first.wpilib.opencv.installer.platform.Platform
2626

2727
plugins {
28-
id 'com.gradle.build-scan' version '1.3'
28+
id 'com.gradle.build-scan' version '1.8'
2929
id 'java'
3030
id 'idea'
3131
id 'eclipse'
3232
id 'jacoco'
3333
id 'com.google.osdetector' version '1.4.0'
34-
id 'com.github.johnrengelman.shadow' version '1.2.3'
35-
id "com.dorongold.task-tree" version "1.2.2"
36-
id 'org.ajoberstar.grgit' version '1.6.0' apply false
34+
id 'com.github.johnrengelman.shadow' version '1.2.4'
35+
id 'com.dorongold.task-tree' version '1.3'
36+
id 'org.ajoberstar.grgit' version '1.7.1' apply false
3737
}
3838
apply plugin: 'nebula-aggregate-javadocs'
3939
apply from: 'git.gradle'
@@ -89,7 +89,7 @@ configure(subprojects - project(':ui:linuxLauncher')) {
8989
apply plugin: 'findbugs'
9090

9191
configurations.errorprone {
92-
resolutionStrategy.force 'com.google.errorprone:error_prone_core:2.0.15'
92+
resolutionStrategy.force 'com.google.errorprone:error_prone_core:2.0.21'
9393
}
9494

9595
checkstyle {
@@ -127,12 +127,16 @@ configure(subprojects - project(':ui:linuxLauncher')) {
127127
}
128128
}
129129

130-
task findbugsMainReport << {
131-
printReportSafe(findbugsMain.reports.getXml().destination)
130+
task findbugsMainReport {
131+
doLast {
132+
printReportSafe(findbugsMain.reports.getXml().destination)
133+
}
132134
}
133135

134-
task findbugsTestReport << {
135-
printReportSafe(findbugsTest.reports.getXml().destination)
136+
task findbugsTestReport {
137+
doLast {
138+
printReportSafe(findbugsTest.reports.getXml().destination)
139+
}
136140
}
137141

138142
findbugsMain.finalizedBy findbugsMainReport
@@ -142,18 +146,14 @@ configure(subprojects - project(':ui:linuxLauncher')) {
142146
mavenCentral()
143147
jcenter()
144148
}
145-
jacoco {
146-
toolVersion = "0.7.5.201505241946"
147-
}
148-
149149

150150
dependencies {
151151
compile group: 'com.google.code.findbugs', name: 'annotations', version: '3.0.1'
152152
testCompile group: 'net.jodah', name: 'concurrentunit', version: '0.4.2'
153153
testCompile group: 'org.hamcrest', name: 'hamcrest-all', version: '1.3'
154154
testCompile group: 'junit', name: 'junit', version: '4.12'
155-
testCompile group: 'com.google.truth', name: 'truth', version: '0.30'
156-
testCompile group: 'com.google.guava', name: 'guava-testlib', version: '20.0'
155+
testCompile group: 'com.google.truth', name: 'truth', version: '0.34'
156+
testCompile group: 'com.google.guava', name: 'guava-testlib', version: '22.0'
157157
}
158158

159159
version = getVersionName()
@@ -582,7 +582,7 @@ task jacocoRootReport(type: JacocoReport, group: 'Coverage reports') {
582582
}
583583

584584
task wrapper(type: Wrapper) {
585-
gradleVersion = '3.2.1'
585+
gradleVersion = '4.0.2'
586586
// We want the sources with the wrapper.
587587
distributionType = DistributionType.ALL
588588
}

core/src/main/java/edu/wpi/grip/core/operations/composite/SaveImageOperation.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import java.time.LocalDateTime;
1919
import java.time.format.DateTimeFormatter;
2020
import java.util.List;
21+
import java.util.Locale;
2122
import java.util.concurrent.TimeUnit;
2223

2324
import static org.bytedeco.javacpp.opencv_core.Mat;
@@ -69,7 +70,7 @@ private enum FileTypes {
6970

7071
@Override
7172
public String toString() {
72-
return super.toString().toLowerCase();
73+
return super.toString().toLowerCase(Locale.ENGLISH);
7374
}
7475
}
7576

core/src/main/java/edu/wpi/grip/core/sources/CameraSource.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
import java.net.MalformedURLException;
3232
import java.net.URL;
3333
import java.util.List;
34+
import java.util.Locale;
3435
import java.util.Optional;
3536
import java.util.Properties;
3637
import java.util.concurrent.Executor;
@@ -352,7 +353,7 @@ public void onSourceRemovedEvent(SourceRemovedEvent event) throws InterruptedExc
352353
// a new camera source is added. For webcam sources, this means that the video stream
353354
// won't be freed and new sources won't be able to connect to the webcam until the
354355
// application is closed.
355-
if (StandardSystemProperty.OS_NAME.value().toLowerCase().contains("mac")) {
356+
if (StandardSystemProperty.OS_NAME.value().toLowerCase(Locale.ENGLISH).contains("mac")) {
356357
// Workaround for #716. This affects webcams as well as IP camera sources.
357358
// Use only stopAsync() to avoid blocking. Since we have no way of knowing when
358359
// the capture has actually been freed, we use a dumb delay to try to make sure it's

core/src/main/java/edu/wpi/grip/core/sources/NetworkTableEntrySource.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import com.thoughtworks.xstream.annotations.XStreamAlias;
2121

2222
import java.util.List;
23+
import java.util.Locale;
2324
import java.util.Properties;
2425

2526
/**
@@ -75,7 +76,7 @@ public String toString() {
7576
}
7677

7778
public String toProperty() {
78-
return toString().toUpperCase();
79+
return toString().toUpperCase(Locale.ENGLISH);
7980
}
8081
}
8182

core/src/test/java/edu/wpi/grip/core/CoreSanityTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,6 @@ public CoreSanityTest() {
4242
() -> null));
4343
setDefault(OperationDescription.class, OperationDescription.builder().name("").summary("")
4444
.build());
45+
setDefault(Step.class, new MockStep());
4546
}
4647
}

core/src/test/java/edu/wpi/grip/core/operations/OperationsUtil.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ public ImmutableList<OperationMetaData> operations() {
2020

2121
public OperationMetaData getMetaData(String opName) {
2222
Locale locOpName = new Locale(opName);
23-
String newOpName = locOpName.toString().toLowerCase().replaceAll("[^a-zA-Z]", "");
23+
String newOpName
24+
= locOpName.toString().toLowerCase(Locale.ENGLISH).replaceAll("[^a-zA-Z]", "");
2425
for (OperationMetaData data : operations()) {
25-
String dataName = data.getDescription().name().toLowerCase().replaceAll("[^a-zA-Z]", "");
26+
String dataName
27+
= data.getDescription().name().toLowerCase(Locale.ENGLISH).replaceAll("[^a-zA-Z]", "");
2628
if (dataName.equals(newOpName)) {
2729
return data;
2830
}

gradle.properties

Lines changed: 0 additions & 3 deletions
This file was deleted.

gradle/wrapper/gradle-wrapper.jar

485 Bytes
Binary file not shown.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Fri Dec 09 22:08:14 EST 2016
1+
#Wed Aug 02 23:12:11 PDT 2017
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-3.2.1-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.0.2-all.zip

0 commit comments

Comments
 (0)