@@ -20,22 +20,30 @@ allprojects {
2020 }
2121}
2222
23+ def WPILIB_VER = ' 2019.1.1-beta-1'
24+ def OPENCV_VER = ' 3.4.3-15'
25+ def JUNIT_VER = ' 5.3.1'
26+
2327dependencies {
24- compile group : ' edu.wpi.first.wpilibj' , name : ' wpilibj-java' , version : ' 2018.+'
25- // We only need the desktop version right now, since this build file is only used for local testing.
26- compile group : ' edu.wpi.first.ntcore' , name : ' ntcore-java' , version : ' 4.+'
27- compile group : ' edu.wpi.first.wpiutil' , name : ' wpiutil-java' , version : ' 3.+'
28- compile group : ' org.opencv' , name : ' opencv-java' , version : ' 3.2.0'
29- compile group : ' edu.wpi.first.cscore' , name : ' cscore-java' , version : ' 1.3.+'
30-
31- runtime group : ' edu.wpi.first.wpilibj' , name : ' wpilibj-jni' , version : ' 2018.+' , classifier : ' all'
32- runtime group : ' edu.wpi.first.ntcore' , name : ' ntcore-jni' , version : ' 4.+' , classifier : ' all'
33- runtime group : ' org.opencv' , name : ' opencv-jni' , version : ' 3.2.0' , classifier : ' all'
34- runtime group : ' edu.wpi.first.cscore' , name : ' cscore-jni' , version : ' 1.3.+' , classifier : ' all'
28+ // We may or may not need to add the new HAL library which was split off
29+ // from wpilib. Ideally we don't have to touch it at all.
30+ compile " edu.wpi.first.wpilibj:wpilibj-java:$WPILIB_VER "
31+ compile " edu.wpi.first.ntcore:ntcore-java:$WPILIB_VER "
32+ compile " edu.wpi.first.wpiutil:wpiutil-java:$WPILIB_VER "
33+ compile " edu.wpi.first.cscore:cscore-java:$WPILIB_VER "
34+ compile " edu.wpi.first.cameraserver:cameraserver-java:$WPILIB_VER "
35+ compile " edu.wpi.first.thirdparty.frc2019.opencv:opencv-java:$OPENCV_VER "
36+
37+ // Do not require these as runtime dependencies, since WPILib doesn't.
38+ // The user can figure out what version they need (RIO vs. desktop).
39+ testRuntime " edu.wpi.first.ntcore:ntcore-jni:$WPILIB_VER :all"
40+ testRuntime " edu.wpi.first.cscore:cscore-jni:$WPILIB_VER :all"
41+ testRuntime " org.junit.jupiter:junit-jupiter-engine:$JUNIT_VER "
3542
36- testCompile group : ' junit' , name : ' junit' , version : ' 4.+'
37- testCompile group : ' org.hamcrest' , name : ' hamcrest-library' , version : ' 1.3'
38- testCompile group : ' com.google.guava' , name : ' guava' , version : ' 19.0'
43+ testCompile " org.junit.jupiter:junit-jupiter-api:$JUNIT_VER "
44+ testCompile " org.junit.jupiter:junit-jupiter-params:$JUNIT_VER "
45+ testCompile ' org.hamcrest:hamcrest-library:1.3'
46+ testCompile ' com.google.guava:guava:19.0'
3947}
4048
4149test {
@@ -64,34 +72,34 @@ artifacts {
6472
6573publishing {
6674 publications {
67- mavenPublication(MavenPublication ) {
68- from components. java
69- artifact sourcesJar {
70- classifier ' sources'
71- }
72- artifact javadocJar {
73- classifier ' javadoc'
74- }
75-
76- groupId ' org.hyperonline'
77- artifactId ' hyperlib'
78-
79- pom {
80- name = ' hyperLib'
81- description = ' Enhancements to WPILib'
82- url = ' https://teamhyper.github.io/hyperLib'
83- developers {
84- developer {
85- id = ' jhagborg '
86- name = ' James Hagborg'
87- 88- }
89- }
90- scm {
91- url = ' https://github.com/teamhyper/hyperLib'
92- }
93- }
94- }
75+ mavenPublication(MavenPublication ) {
76+ from components. java
77+ artifact sourcesJar {
78+ classifier ' sources'
79+ }
80+ artifact javadocJar {
81+ classifier ' javadoc'
82+ }
83+
84+ groupId ' org.hyperonline'
85+ artifactId ' hyperlib'
86+
87+ pom {
88+ name = ' hyperLib'
89+ description = ' Enhancements to WPILib'
90+ url = ' https://teamhyper.github.io/hyperLib'
91+ developers {
92+ developer {
93+ id = ' blucoat '
94+ name = ' James Hagborg'
95+ 96+ }
97+ }
98+ scm {
99+ url = ' https://github.com/teamhyper/hyperLib'
100+ }
101+ }
102+ }
95103 }
96104}
97105
@@ -104,5 +112,5 @@ checkstyle {
104112}
105113
106114wrapper {
107- gradleVersion = 4.9
115+ gradleVersion = ' 4.10.2 '
108116}
0 commit comments