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

Commit

Permalink
Creating a dummy project to make dependabot easier (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
pjreiniger authored Nov 14, 2020
1 parent b838d3a commit 1d72f52
Show file tree
Hide file tree
Showing 9 changed files with 116 additions and 52 deletions.
42 changes: 6 additions & 36 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ plugins {
id 'base'
id 'edu.wpi.first.wpilib.repositories.WPILibRepositoriesPlugin' version '2020.2'
id 'edu.wpi.first.NativeUtils' apply false
id 'edu.wpi.first.GradleJni' version '0.10.1'
id 'edu.wpi.first.GradleVsCode' version '0.10.0'
id 'edu.wpi.first.GradleJni' version '0.11.0'
id 'edu.wpi.first.GradleVsCode' version '0.12.0'
id 'idea'
id 'visual-studio'
id 'net.ltgt.errorprone' version '1.1.1' apply false
id "com.diffplug.spotless" version "5.1.0"
id "com.github.spotbugs" version "4.5.0"
id 'net.ltgt.errorprone' version '1.3.0' apply false
id "com.diffplug.spotless" version "5.7.0"
id "com.github.spotbugs" version "4.5.1"
}
apply plugin: 'nebula-aggregate-javadocs'

Expand All @@ -42,38 +42,8 @@ ext.use_simulator_java = true
/////////////////////////////////////////
// Specify WPI Versions

ext.allwpilibVersion = {
return '2020.3.2'
}

ext.getWpiUtilVersion = {
return allwpilibVersion()
}
ext.getNtCoreVersion = {
return allwpilibVersion()
}
ext.getCsCoreVersion = {
return allwpilibVersion()
}
apply from: "${rootDir}/common/shared_versions.gradle"

ext.getWpilibOpencvVersion = {
return '3.4.7-2'
}
ext.getCtreVersion = {
return '5.17.2'
}
ext.getCtreSimVersion = {
return getCtreVersion() + "_V0_RC"
}
ext.getRevRoboticsVersion = {
return '1.5.0'
}
ext.getRevRoboticsSimVersion = {
return getRevRoboticsVersion() + "_V1"
}
ext.getNavxVersion = {
return '3.1.403'
}
ext.getWpiRepo = {
return "https://frcmaven.wpi.edu/artifactory/release/"
// return "https://frcmaven.wpi.edu/artifactory/development/"
Expand Down
57 changes: 57 additions & 0 deletions common/shared_versions.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@



ext.allwpilibVersion = {
return '2020.3.2'
}

ext.getWpiUtilVersion = {
return allwpilibVersion()
}
ext.getNtCoreVersion = {
return allwpilibVersion()
}
ext.getCsCoreVersion = {
return allwpilibVersion()
}

ext.getWpilibOpencvVersion = {
return '3.4.7-2'
}
ext.getCtreVersion = {
return '5.17.2'
}
ext.getCtreSimVersion = {
return getCtreVersion() + "_V0_RC"
}
ext.getRevRoboticsVersion = {
return '1.5.0'
}
ext.getRevRoboticsSimVersion = {
return getRevRoboticsVersion() + "_V1"
}
ext.getNavxVersion = {
return '3.1.403'
}

////////////////////////////////
// Third Party
ext.getLog4jVersion = {
return "2.13.3"
}

ext.getSnakeYamlVersion = {
return "1.27"
}

ext.getJunitJupiterVersion = {
return "5.6.2"
}

ext.getJunitPlatformVersion = {
return "1.7.0"
}

ext.getJinputVersion = {
return "2.0.9"
}
25 changes: 25 additions & 0 deletions dependabot_helper/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

ext {
baseId = "dependabot_helper"
additional_external_libraries = []
}

apply from: "${rootDir}/common/base_java_script.gradle"

dependencies {
compile 'edu.wpi.first.ntcore:ntcore-java:2020.3.2'
compile 'org.apache.logging.log4j:log4j-api:2.13.3'
compile 'org.apache.logging.log4j:log4j-core:2.13.3'
compile 'org.yaml:snakeyaml:1.27'
compile 'net.java.jinput:jinput:2.0.9'
compile 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
compile 'org.junit.platform:junit-platform-launcher:1.6.2'
compile 'edu.wpi.first.thirdparty.frc2020.opencv:opencv-java:3.4.7-2'

compile "com.ctre.phoenix:api-java:5.17.2"
compile "com.kauailabs.navx.frc:navx-java:3.1.403"
compile "com.revrobotics.frc:SparkMax-java:1.5.0"

compile 'com.snobot.simulator:ctre_sim_override:5.17.2_V1:windowsx86-64'
compile 'com.snobot.simulator:rev_simulator:1.5.0_V1:windowsx86-64'
}
12 changes: 12 additions & 0 deletions dependabot_helper/src/main/java/Main.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
public final class Main
{
private Main()
{

}

public static void main(String[] aArgs)
{
System.out.println("Hello world"); // NOPMD
}
}
2 changes: 2 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ include 'snobot_sim_utilities'
include 'snobot_sim_gui'
include 'snobot_sim_joysticks'
include 'snobot_sim_example_robot'
include 'dependabot_helper'


rootProject.name = 'CppSimulator'

4 changes: 1 addition & 3 deletions snobot_sim_gui/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ dependencies {
native3rdPartyDeps 'net.java.jinput:jinput:2.0.9'
compile 'jfree:jcommon:1.0.16'
compile 'jfree:jfreechart:1.0.13'
compile 'org.apache.logging.log4j:log4j-api:2.13.3'
compile 'org.apache.logging.log4j:log4j-core:2.13.3'
compile 'org.yaml:snakeyaml:1.26'
compile 'org.yaml:snakeyaml:' + getSnakeYamlVersion()
compile 'com.miglayout:miglayout-swing:5.2'
//compile 'org.python:jython:2.7.1b3'

Expand Down
14 changes: 7 additions & 7 deletions snobot_sim_java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@ dependencies {
compile 'edu.wpi.first.cameraserver:cameraserver-java:' + allwpilibVersion()
compile 'edu.wpi.first.hal:hal-java:' + allwpilibVersion()
compile 'edu.wpi.first.wpilibj:wpilibj-java:' + allwpilibVersion()
compile 'org.apache.logging.log4j:log4j-api:2.13.3'
compile 'org.apache.logging.log4j:log4j-core:2.13.3'
compile 'org.yaml:snakeyaml:1.26'
compile 'org.apache.logging.log4j:log4j-api:' + getLog4jVersion()
compile 'org.apache.logging.log4j:log4j-core:' + getLog4jVersion()
compile 'org.yaml:snakeyaml:' + getSnakeYamlVersion()
compile project(":snobot_sim_utilities")
compile 'com.snobot.simulator:ctre_sim_override:' + getCtreSimVersion()
compile 'com.snobot.simulator:rev_simulator:' + getRevRoboticsSimVersion()
testRuntime 'com.snobot.simulator:ctre_sim_override:' + getCtreSimVersion() + ':' + getCurrentOsArch()
testRuntime 'com.snobot.simulator:rev_simulator:' + getRevRoboticsSimVersion() + ':' + getCurrentOsArch()

testCompile 'org.junit.jupiter:junit-jupiter-api:5.6.2'
testCompile 'org.junit.jupiter:junit-jupiter-params:5.6.2'
testRuntime 'org.junit.jupiter:junit-jupiter-engine:5.6.2'
testRuntime 'org.junit.platform:junit-platform-launcher:1.6.2'
testCompile 'org.junit.jupiter:junit-jupiter-api:' + getJunitJupiterVersion()
testCompile 'org.junit.jupiter:junit-jupiter-params:' + getJunitJupiterVersion()
testRuntime 'org.junit.jupiter:junit-jupiter-engine:' + getJunitJupiterVersion()
testRuntime 'org.junit.platform:junit-platform-launcher:' + getJunitPlatformVersion()
testRuntime 'edu.wpi.first.wpiutil:wpiutil-java:' + getWpiUtilVersion()
testRuntime 'edu.wpi.first.ntcore:ntcore-jni:' + getNtCoreVersion() + ':' + getCurrentOsArch()
testRuntime 'edu.wpi.first.cscore:cscore-jni:' + getCsCoreVersion() + ':' + getCurrentOsArch()
Expand Down
8 changes: 4 additions & 4 deletions snobot_sim_joysticks/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ dependencies {
compile 'edu.wpi.first.hal:hal-java:' + allwpilibVersion()

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

// Internal
compile project(":snobot_sim_utilities")

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

Expand Down
4 changes: 2 additions & 2 deletions snobot_sim_utilities/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ ext
apply from: "${rootDir}/common/base_java_script.gradle"

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

testImplementation 'org.junit.jupiter:junit-jupiter-params:5.5.2'
}
Expand Down

0 comments on commit 1d72f52

Please sign in to comment.