Skip to content
This repository was archived by the owner on Jan 15, 2021. It is now read-only.

Commit 1d72f52

Browse files
authored
Creating a dummy project to make dependabot easier (#200)
1 parent b838d3a commit 1d72f52

File tree

9 files changed

+116
-52
lines changed

9 files changed

+116
-52
lines changed

build.gradle

Lines changed: 6 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ plugins {
2525
id 'base'
2626
id 'edu.wpi.first.wpilib.repositories.WPILibRepositoriesPlugin' version '2020.2'
2727
id 'edu.wpi.first.NativeUtils' apply false
28-
id 'edu.wpi.first.GradleJni' version '0.10.1'
29-
id 'edu.wpi.first.GradleVsCode' version '0.10.0'
28+
id 'edu.wpi.first.GradleJni' version '0.11.0'
29+
id 'edu.wpi.first.GradleVsCode' version '0.12.0'
3030
id 'idea'
3131
id 'visual-studio'
32-
id 'net.ltgt.errorprone' version '1.1.1' apply false
33-
id "com.diffplug.spotless" version "5.1.0"
34-
id "com.github.spotbugs" version "4.5.0"
32+
id 'net.ltgt.errorprone' version '1.3.0' apply false
33+
id "com.diffplug.spotless" version "5.7.0"
34+
id "com.github.spotbugs" version "4.5.1"
3535
}
3636
apply plugin: 'nebula-aggregate-javadocs'
3737

@@ -42,38 +42,8 @@ ext.use_simulator_java = true
4242
/////////////////////////////////////////
4343
// Specify WPI Versions
4444

45-
ext.allwpilibVersion = {
46-
return '2020.3.2'
47-
}
48-
49-
ext.getWpiUtilVersion = {
50-
return allwpilibVersion()
51-
}
52-
ext.getNtCoreVersion = {
53-
return allwpilibVersion()
54-
}
55-
ext.getCsCoreVersion = {
56-
return allwpilibVersion()
57-
}
45+
apply from: "${rootDir}/common/shared_versions.gradle"
5846

59-
ext.getWpilibOpencvVersion = {
60-
return '3.4.7-2'
61-
}
62-
ext.getCtreVersion = {
63-
return '5.17.2'
64-
}
65-
ext.getCtreSimVersion = {
66-
return getCtreVersion() + "_V0_RC"
67-
}
68-
ext.getRevRoboticsVersion = {
69-
return '1.5.0'
70-
}
71-
ext.getRevRoboticsSimVersion = {
72-
return getRevRoboticsVersion() + "_V1"
73-
}
74-
ext.getNavxVersion = {
75-
return '3.1.403'
76-
}
7747
ext.getWpiRepo = {
7848
return "https://frcmaven.wpi.edu/artifactory/release/"
7949
// return "https://frcmaven.wpi.edu/artifactory/development/"

common/shared_versions.gradle

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
2+
3+
4+
ext.allwpilibVersion = {
5+
return '2020.3.2'
6+
}
7+
8+
ext.getWpiUtilVersion = {
9+
return allwpilibVersion()
10+
}
11+
ext.getNtCoreVersion = {
12+
return allwpilibVersion()
13+
}
14+
ext.getCsCoreVersion = {
15+
return allwpilibVersion()
16+
}
17+
18+
ext.getWpilibOpencvVersion = {
19+
return '3.4.7-2'
20+
}
21+
ext.getCtreVersion = {
22+
return '5.17.2'
23+
}
24+
ext.getCtreSimVersion = {
25+
return getCtreVersion() + "_V0_RC"
26+
}
27+
ext.getRevRoboticsVersion = {
28+
return '1.5.0'
29+
}
30+
ext.getRevRoboticsSimVersion = {
31+
return getRevRoboticsVersion() + "_V1"
32+
}
33+
ext.getNavxVersion = {
34+
return '3.1.403'
35+
}
36+
37+
////////////////////////////////
38+
// Third Party
39+
ext.getLog4jVersion = {
40+
return "2.13.3"
41+
}
42+
43+
ext.getSnakeYamlVersion = {
44+
return "1.27"
45+
}
46+
47+
ext.getJunitJupiterVersion = {
48+
return "5.6.2"
49+
}
50+
51+
ext.getJunitPlatformVersion = {
52+
return "1.7.0"
53+
}
54+
55+
ext.getJinputVersion = {
56+
return "2.0.9"
57+
}

dependabot_helper/build.gradle

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
ext {
3+
baseId = "dependabot_helper"
4+
additional_external_libraries = []
5+
}
6+
7+
apply from: "${rootDir}/common/base_java_script.gradle"
8+
9+
dependencies {
10+
compile 'edu.wpi.first.ntcore:ntcore-java:2020.3.2'
11+
compile 'org.apache.logging.log4j:log4j-api:2.13.3'
12+
compile 'org.apache.logging.log4j:log4j-core:2.13.3'
13+
compile 'org.yaml:snakeyaml:1.27'
14+
compile 'net.java.jinput:jinput:2.0.9'
15+
compile 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
16+
compile 'org.junit.platform:junit-platform-launcher:1.6.2'
17+
compile 'edu.wpi.first.thirdparty.frc2020.opencv:opencv-java:3.4.7-2'
18+
19+
compile "com.ctre.phoenix:api-java:5.17.2"
20+
compile "com.kauailabs.navx.frc:navx-java:3.1.403"
21+
compile "com.revrobotics.frc:SparkMax-java:1.5.0"
22+
23+
compile 'com.snobot.simulator:ctre_sim_override:5.17.2_V1:windowsx86-64'
24+
compile 'com.snobot.simulator:rev_simulator:1.5.0_V1:windowsx86-64'
25+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
public final class Main
2+
{
3+
private Main()
4+
{
5+
6+
}
7+
8+
public static void main(String[] aArgs)
9+
{
10+
System.out.println("Hello world"); // NOPMD
11+
}
12+
}

settings.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ include 'snobot_sim_utilities'
1616
include 'snobot_sim_gui'
1717
include 'snobot_sim_joysticks'
1818
include 'snobot_sim_example_robot'
19+
include 'dependabot_helper'
1920

2021

2122
rootProject.name = 'CppSimulator'
23+

snobot_sim_gui/build.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ dependencies {
4141
native3rdPartyDeps 'net.java.jinput:jinput:2.0.9'
4242
compile 'jfree:jcommon:1.0.16'
4343
compile 'jfree:jfreechart:1.0.13'
44-
compile 'org.apache.logging.log4j:log4j-api:2.13.3'
45-
compile 'org.apache.logging.log4j:log4j-core:2.13.3'
46-
compile 'org.yaml:snakeyaml:1.26'
44+
compile 'org.yaml:snakeyaml:' + getSnakeYamlVersion()
4745
compile 'com.miglayout:miglayout-swing:5.2'
4846
//compile 'org.python:jython:2.7.1b3'
4947

snobot_sim_java/build.gradle

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ dependencies {
2323
compile 'edu.wpi.first.cameraserver:cameraserver-java:' + allwpilibVersion()
2424
compile 'edu.wpi.first.hal:hal-java:' + allwpilibVersion()
2525
compile 'edu.wpi.first.wpilibj:wpilibj-java:' + allwpilibVersion()
26-
compile 'org.apache.logging.log4j:log4j-api:2.13.3'
27-
compile 'org.apache.logging.log4j:log4j-core:2.13.3'
28-
compile 'org.yaml:snakeyaml:1.26'
26+
compile 'org.apache.logging.log4j:log4j-api:' + getLog4jVersion()
27+
compile 'org.apache.logging.log4j:log4j-core:' + getLog4jVersion()
28+
compile 'org.yaml:snakeyaml:' + getSnakeYamlVersion()
2929
compile project(":snobot_sim_utilities")
3030
compile 'com.snobot.simulator:ctre_sim_override:' + getCtreSimVersion()
3131
compile 'com.snobot.simulator:rev_simulator:' + getRevRoboticsSimVersion()
3232
testRuntime 'com.snobot.simulator:ctre_sim_override:' + getCtreSimVersion() + ':' + getCurrentOsArch()
3333
testRuntime 'com.snobot.simulator:rev_simulator:' + getRevRoboticsSimVersion() + ':' + getCurrentOsArch()
3434

35-
testCompile 'org.junit.jupiter:junit-jupiter-api:5.6.2'
36-
testCompile 'org.junit.jupiter:junit-jupiter-params:5.6.2'
37-
testRuntime 'org.junit.jupiter:junit-jupiter-engine:5.6.2'
38-
testRuntime 'org.junit.platform:junit-platform-launcher:1.6.2'
35+
testCompile 'org.junit.jupiter:junit-jupiter-api:' + getJunitJupiterVersion()
36+
testCompile 'org.junit.jupiter:junit-jupiter-params:' + getJunitJupiterVersion()
37+
testRuntime 'org.junit.jupiter:junit-jupiter-engine:' + getJunitJupiterVersion()
38+
testRuntime 'org.junit.platform:junit-platform-launcher:' + getJunitPlatformVersion()
3939
testRuntime 'edu.wpi.first.wpiutil:wpiutil-java:' + getWpiUtilVersion()
4040
testRuntime 'edu.wpi.first.ntcore:ntcore-jni:' + getNtCoreVersion() + ':' + getCurrentOsArch()
4141
testRuntime 'edu.wpi.first.cscore:cscore-jni:' + getCsCoreVersion() + ':' + getCurrentOsArch()

snobot_sim_joysticks/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ dependencies {
1919
compile 'edu.wpi.first.hal:hal-java:' + allwpilibVersion()
2020

2121
// 3rd Party
22-
compile 'net.java.jinput:jinput:2.0.9'
22+
compile 'net.java.jinput:jinput:' + getJinputVersion()
2323

2424
// Internal
2525
compile project(":snobot_sim_utilities")
2626

2727
// Test
28-
testCompile 'org.junit.jupiter:junit-jupiter-api:5.6.2'
29-
testRuntime 'org.junit.jupiter:junit-jupiter-engine:5.6.2'
30-
testRuntime 'org.junit.platform:junit-platform-launcher:1.6.2'
28+
testCompile 'org.junit.jupiter:junit-jupiter-api:' + getJunitJupiterVersion()
29+
testRuntime 'org.junit.jupiter:junit-jupiter-engine:' + getJunitJupiterVersion()
30+
testRuntime 'org.junit.platform:junit-platform-launcher:' + getJunitPlatformVersion()
3131
testRuntime 'edu.wpi.first.ntcore:ntcore-jni:' + getNtCoreVersion() + ':' + getCurrentOsArch()
3232
}
3333

snobot_sim_utilities/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ ext
77
apply from: "${rootDir}/common/base_java_script.gradle"
88

99
dependencies {
10-
compile 'org.apache.logging.log4j:log4j-api:2.13.3'
11-
compile 'org.apache.logging.log4j:log4j-core:2.12.1'
10+
compile 'org.apache.logging.log4j:log4j-api:' + getLog4jVersion()
11+
compile 'org.apache.logging.log4j:log4j-core:' + getLog4jVersion()
1212

1313
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.5.2'
1414
}

0 commit comments

Comments
 (0)