Skip to content

Commit fe34e8a

Browse files
committed
Initial Default Project Creation
0 parents  commit fe34e8a

17 files changed

+969
-0
lines changed

.gitignore

+209
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,209 @@
1+
# Dynamically generated by IntelliJ IDEA FRC Plugin on Sunday January 5, 2020 12:09:46 AM EST using https://gitignore.io
2+
3+
# Created by https://www.gitignore.io/api/java,gradle,intellij+iml,visualstudiocode,linux,macos,windows
4+
# Edit at https://www.gitignore.io/?templates=java,gradle,intellij+iml,visualstudiocode,linux,macos,windows
5+
6+
### Intellij+iml ###
7+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
8+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
9+
10+
# User-specific stuff
11+
.idea/**/workspace.xml
12+
.idea/**/tasks.xml
13+
.idea/**/usage.statistics.xml
14+
.idea/**/dictionaries
15+
.idea/**/shelf
16+
17+
# Generated files
18+
.idea/**/contentModel.xml
19+
20+
# Sensitive or high-churn files
21+
.idea/**/dataSources/
22+
.idea/**/dataSources.ids
23+
.idea/**/dataSources.local.xml
24+
.idea/**/sqlDataSources.xml
25+
.idea/**/dynamic.xml
26+
.idea/**/uiDesigner.xml
27+
.idea/**/dbnavigator.xml
28+
29+
# Gradle
30+
.idea/**/gradle.xml
31+
.idea/**/libraries
32+
33+
# Gradle and Maven with auto-import
34+
# When using Gradle or Maven with auto-import, you should exclude module files,
35+
# since they will be recreated, and may cause churn. Uncomment if using
36+
# auto-import.
37+
# .idea/modules.xml
38+
# .idea/*.iml
39+
# .idea/modules
40+
# *.iml
41+
# *.ipr
42+
43+
# CMake
44+
cmake-build-*/
45+
46+
# Mongo Explorer plugin
47+
.idea/**/mongoSettings.xml
48+
49+
# File-based project format
50+
*.iws
51+
52+
# IntelliJ
53+
out/
54+
55+
# mpeltonen/sbt-idea plugin
56+
.idea_modules/
57+
58+
# JIRA plugin
59+
atlassian-ide-plugin.xml
60+
61+
# Cursive Clojure plugin
62+
.idea/replstate.xml
63+
64+
# Crashlytics plugin (for Android Studio and IntelliJ)
65+
com_crashlytics_export_strings.xml
66+
crashlytics.properties
67+
crashlytics-build.properties
68+
fabric.properties
69+
70+
# Editor-based Rest Client
71+
.idea/httpRequests
72+
73+
# Android studio 3.1+ serialized cache file
74+
.idea/caches/build_file_checksums.ser
75+
76+
### Intellij+iml Patch ###
77+
# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023
78+
79+
*.iml
80+
modules.xml
81+
.idea/misc.xml
82+
*.ipr
83+
84+
### Java ###
85+
# Compiled class file
86+
*.class
87+
88+
# Log file
89+
*.log
90+
91+
# BlueJ files
92+
*.ctxt
93+
94+
# Mobile Tools for Java (J2ME)
95+
.mtj.tmp/
96+
97+
# Package Files #
98+
*.jar
99+
*.war
100+
*.nar
101+
*.ear
102+
*.zip
103+
*.tar.gz
104+
*.rar
105+
106+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
107+
hs_err_pid*
108+
109+
### Linux ###
110+
*~
111+
112+
# temporary files which can be created if a process still has a handle open of a deleted file
113+
.fuse_hidden*
114+
115+
# KDE directory preferences
116+
.directory
117+
118+
# Linux trash folder which might appear on any partition or disk
119+
.Trash-*
120+
121+
# .nfs files are created when an open file is removed but is still being accessed
122+
.nfs*
123+
124+
### macOS ###
125+
# General
126+
.DS_Store
127+
.AppleDouble
128+
.LSOverride
129+
130+
# Icon must end with two \r
131+
Icon
132+
133+
# Thumbnails
134+
._*
135+
136+
# Files that might appear in the root of a volume
137+
.DocumentRevisions-V100
138+
.fseventsd
139+
.Spotlight-V100
140+
.TemporaryItems
141+
.Trashes
142+
.VolumeIcon.icns
143+
.com.apple.timemachine.donotpresent
144+
145+
# Directories potentially created on remote AFP share
146+
.AppleDB
147+
.AppleDesktop
148+
Network Trash Folder
149+
Temporary Items
150+
.apdisk
151+
152+
### VisualStudioCode ###
153+
.vscode/*
154+
!.vscode/settings.json
155+
!.vscode/tasks.json
156+
!.vscode/launch.json
157+
!.vscode/extensions.json
158+
159+
### VisualStudioCode Patch ###
160+
# Ignore all local history of files
161+
.history
162+
163+
### Windows ###
164+
# Windows thumbnail cache files
165+
Thumbs.db
166+
Thumbs.db:encryptable
167+
ehthumbs.db
168+
ehthumbs_vista.db
169+
170+
# Dump file
171+
*.stackdump
172+
173+
# Folder config file
174+
[Dd]esktop.ini
175+
176+
# Recycle Bin used on file shares
177+
$RECYCLE.BIN/
178+
179+
# Windows Installer files
180+
*.cab
181+
*.msi
182+
*.msix
183+
*.msm
184+
*.msp
185+
186+
# Windows shortcuts
187+
*.lnk
188+
189+
### Gradle ###
190+
.gradle
191+
build/
192+
193+
# Ignore Gradle GUI config
194+
gradle-app.setting
195+
196+
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
197+
!gradle-wrapper.jar
198+
199+
# Cache of project
200+
.gradletasknamecache
201+
202+
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
203+
# gradle/wrapper/gradle-wrapper.properties
204+
205+
### Gradle Patch ###
206+
**/build/
207+
208+
# End of https://www.gitignore.io/api/java,gradle,intellij+iml,visualstudiocode,linux,macos,windows
209+

.wpilib/wpilib_preferences.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"enableCppIntellisense": false,
3+
"currentLanguage": "java",
4+
"projectYear": "2020",
5+
"teamNumber": 5881
6+
}

build.gradle

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
plugins {
2+
id "java"
3+
id "edu.wpi.first.GradleRIO" version "2020.1.2"
4+
}
5+
6+
sourceCompatibility = JavaVersion.VERSION_11
7+
targetCompatibility = JavaVersion.VERSION_11
8+
9+
def ROBOT_MAIN_CLASS = "org.tvhsfrc.frc2020.robot.Main"
10+
11+
// Define my targets (RoboRIO) and artifacts (deployable files)
12+
// This is added by GradleRIO's backing project EmbeddedTools.
13+
deploy {
14+
targets {
15+
roboRIO("roborio") {
16+
// Team number is loaded either from the .wpilib/wpilib_preferences.json
17+
// or from command line. If not found an exception will be thrown.
18+
// You can use getTeamOrDefault(team) instead of getTeamNumber if you
19+
// want to store a team number in this file.
20+
team = frc.getTeamNumber()
21+
}
22+
}
23+
artifacts {
24+
frcJavaArtifact('frcJava') {
25+
targets << "roborio"
26+
// Debug can be overridden by command line, for use with VSCode
27+
debug = frc.getDebugOrDefault(false)
28+
}
29+
// Built in artifact to deploy arbitrary files to the roboRIO.
30+
fileTreeArtifact('frcStaticFileDeploy') {
31+
// The directory below is the local directory to deploy
32+
files = fileTree(dir: 'src/main/deploy')
33+
// Deploy to RoboRIO target, into /home/lvuser/deploy
34+
targets << "roborio"
35+
directory = '/home/lvuser/deploy'
36+
}
37+
}
38+
}
39+
40+
// Set this to true to enable desktop support.
41+
def includeDesktopSupport = false
42+
43+
44+
test {
45+
useJUnitPlatform()
46+
}
47+
48+
dependencies {
49+
def junit5Version = '5.5.2'
50+
implementation wpi.deps.wpilib()
51+
nativeZip wpi.deps.wpilibJni(wpi.platforms.roborio)
52+
nativeDesktopZip wpi.deps.wpilibJni(wpi.platforms.desktop)
53+
54+
55+
implementation wpi.deps.vendor.java()
56+
nativeZip wpi.deps.vendor.jni(wpi.platforms.roborio)
57+
nativeDesktopZip wpi.deps.vendor.jni(wpi.platforms.desktop)
58+
59+
testImplementation "org.junit.jupiter:junit-jupiter-api:$junit5Version"
60+
testImplementation "org.junit.jupiter:junit-jupiter-params:$junit5Version"
61+
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit5Version"
62+
63+
// Enable simulation gui support. Must check the box in vscode to enable support
64+
// upon debugging
65+
simulation wpi.deps.sim.gui(wpi.platforms.desktop, false)
66+
}
67+
68+
// Setting up my Jar File. In this case, adding all libraries into the main jar ('fat jar')
69+
// in order to make them all available at runtime. Also adding the manifest so WPILib
70+
// knows where to look for our Robot Class.
71+
jar {
72+
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
73+
manifest edu.wpi.first.gradlerio.GradleRIOPlugin.javaManifest(ROBOT_MAIN_CLASS)
74+
}

first-bsd-license.txt

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Copyright (c) 2009-2020 FIRST-->
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
* Redistributions of source code must retain the above copyright
7+
notice, this list of conditions and the following disclaimer.
8+
* Redistributions in binary form must reproduce the above copyright
9+
notice, this list of conditions and the following disclaimer in the
10+
documentation and/or other materials provided with the distribution.
11+
* Neither the name of the FIRST nor the
12+
names of its contributors may be used to endorse or promote products
13+
derived from this software without specific prior written permission.
14+
15+
THIS SOFTWARE IS PROVIDED BY FIRST AND CONTRIBUTORS ''AS IS'' AND ANY
16+
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17+
WARRANTIES OF MERCHANTABILITY NONINFRINGEMENT AND FITNESS FOR A PARTICULAR
18+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL FIRST OR CONTRIBUTORS BE LIABLE FOR
19+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

gradle/wrapper/gradle-wrapper.jar

57.3 KB
Binary file not shown.
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=permwrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.0.1-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=permwrapper/dists

0 commit comments

Comments
 (0)