Skip to content

Commit 5775ad1

Browse files
authored
Syncronize project template files with vscode ext (#647)
1 parent 1ee300c commit 5775ad1

File tree

2 files changed

+38
-3
lines changed

2 files changed

+38
-3
lines changed

src/main/resources/export/java/build.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ deploy {
4343

4444
def deployArtifact = deploy.targets.roborio.artifacts.frcJava
4545

46-
// Set to true to use debug for JNI.
46+
// Set to true to use debug for all targets including JNI, which will drastically impact
47+
// performance
4748
wpi.java.debugJni = false
4849

4950
#@autogenerated_code("desktop", "")
@@ -89,7 +90,9 @@ wpi.sim.addDriverstation()
8990
// knows where to look for our Robot Class.
9091
jar {
9192
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
92-
from sourceSets.main.allSource
93+
from('src') { into 'backup/src' }
94+
from('vendordeps') { into 'backup/vendordeps' }
95+
from('build.gradle') { into 'backup' }
9396
manifest edu.wpi.first.gradlerio.GradleRIOPlugin.javaManifest(ROBOT_MAIN_CLASS)
9497
duplicatesStrategy = DuplicatesStrategy.INCLUDE
9598
}

src/main/resources/export/java/settings.json

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,37 @@
2525
}
2626
},
2727
],
28-
"java.test.defaultConfig": "WPIlibUnitTests"
28+
"java.test.defaultConfig": "WPIlibUnitTests",
29+
"java.import.gradle.annotationProcessing.enabled": false,
30+
"java.completion.favoriteStaticMembers": [
31+
"org.junit.Assert.*",
32+
"org.junit.Assume.*",
33+
"org.junit.jupiter.api.Assertions.*",
34+
"org.junit.jupiter.api.Assumptions.*",
35+
"org.junit.jupiter.api.DynamicContainer.*",
36+
"org.junit.jupiter.api.DynamicTest.*",
37+
"org.mockito.Mockito.*",
38+
"org.mockito.ArgumentMatchers.*",
39+
"org.mockito.Answers.*",
40+
"edu.wpi.first.units.Units.*"
41+
],
42+
"java.completion.filteredTypes": [
43+
"java.awt.*",
44+
"com.sun.*",
45+
"sun.*",
46+
"jdk.*",
47+
"org.graalvm.*",
48+
"io.micrometer.shaded.*",
49+
"java.beans.*",
50+
"java.util.Base64.*",
51+
"java.util.Timer",
52+
"java.sql.*",
53+
"javax.swing.*",
54+
"javax.management.*",
55+
"javax.smartcardio.*",
56+
"edu.wpi.first.math.proto.*",
57+
"edu.wpi.first.math.**.proto.*",
58+
"edu.wpi.first.math.**.struct.*",
59+
],
60+
"java.dependency.enableDependencyCheckup": false
2961
}

0 commit comments

Comments
 (0)