Skip to content

Commit

Permalink
Synchronize projects build.gradle with vscode (#629)
Browse files Browse the repository at this point in the history
  • Loading branch information
sciencewhiz authored Dec 14, 2024
1 parent b8e50c2 commit 2e99e0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
11 changes: 1 addition & 10 deletions src/main/resources/export/cpp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

// Define my targets (RoboRIO) and artifacts (deployable files)
// This is added by GradleRIO's backing project DeployTools.
// This is added by GradleRIO's backing project DeployUtils.
deploy {
targets {
roborio(getTargetTypeClass('RoboRIO')) {
Expand Down Expand Up @@ -35,12 +35,6 @@ deploy {

def deployArtifact = deploy.targets.roborio.artifacts.frcCpp

// Set this to true to include the src folder in the include directories passed
// to the compiler. Some eclipse project imports depend on this behavior.
// We recommend leaving this disabled if possible. Note for eclipse project
// imports this is enabled by default. For new projects, its disabled
def includeSrcInIncludeRoot = false

#@autogenerated_code("desktop", "")
#parse("${exporter_path}build-desktop.gradle")
#end
Expand Down Expand Up @@ -68,9 +62,6 @@ model {
}
exportedHeaders {
srcDir 'src/main/include'
if (includeSrcInIncludeRoot) {
srcDir 'src/main/cpp'
}
}
}

Expand Down
7 changes: 4 additions & 3 deletions src/main/resources/export/java/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import edu.wpi.first.gradlerio.deploy.roborio.RoboRIO

plugins {
id "java"
id "edu.wpi.first.GradleRIO" version "${wpilib_version}"
Expand All @@ -13,7 +11,7 @@ java {
def ROBOT_MAIN_CLASS = "${package}.Main"

// Define my targets (RoboRIO) and artifacts (deployable files)
// This is added by GradleRIO's backing project DeployTools.
// This is added by GradleRIO's backing project DeployUtils.
deploy {
targets {
roborio(getTargetTypeClass('RoboRIO')) {
Expand All @@ -35,6 +33,8 @@ deploy {
frcStaticFileDeploy(getArtifactTypeClass('FileTreeArtifact')) {
files = project.fileTree('src/main/deploy')
directory = '/home/lvuser/deploy'
deleteOldFiles = false // Change to true to delete files on roboRIO that no
// longer exist in deploy directory of this project
}
}
}
Expand Down Expand Up @@ -80,6 +80,7 @@ test {
systemProperty 'junit.jupiter.extensions.autodetection.enabled', 'true'
}

// Simulation configuration (e.g. environment variables).
wpi.sim.addGui().defaultEnabled = true
wpi.sim.addDriverstation()

Expand Down

0 comments on commit 2e99e0c

Please sign in to comment.