From 29501af5a7f84bba7c02ec3e019af339bd6d6423 Mon Sep 17 00:00:00 2001 From: Isaac Turner Date: Tue, 7 May 2024 19:43:33 +0800 Subject: [PATCH] Send sources to roboRIO on deploy Requires https://github.com/wpilibsuite/GradleRIO/pull/739 --- vscode-wpilib/resources/gradle/c/build.gradle | 6 ++++++ vscode-wpilib/resources/gradle/cpp/build.gradle | 6 ++++++ vscode-wpilib/resources/gradle/java/build.gradle | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/vscode-wpilib/resources/gradle/c/build.gradle b/vscode-wpilib/resources/gradle/c/build.gradle index 2a1b8721..37d17084 100644 --- a/vscode-wpilib/resources/gradle/c/build.gradle +++ b/vscode-wpilib/resources/gradle/c/build.gradle @@ -29,6 +29,12 @@ deploy { files = project.fileTree('src/main/deploy') directory = '/home/lvuser/deploy' } + + // sources + frcStaticFileDeploy(getArtifactTypeClass('FileTreeArtifact')) { + files = project.fileTree('build/sources.zip') + directory = '/home/lvuser/' + } } } } diff --git a/vscode-wpilib/resources/gradle/cpp/build.gradle b/vscode-wpilib/resources/gradle/cpp/build.gradle index 5d3ca687..6c051ec4 100644 --- a/vscode-wpilib/resources/gradle/cpp/build.gradle +++ b/vscode-wpilib/resources/gradle/cpp/build.gradle @@ -28,6 +28,12 @@ deploy { files = project.fileTree('src/main/deploy') directory = '/home/lvuser/deploy' } + + // sources + frcStaticFileDeploy(getArtifactTypeClass('FileTreeArtifact')) { + files = project.fileTree('build/sources.zip') + directory = '/home/lvuser/' + } } } } diff --git a/vscode-wpilib/resources/gradle/java/build.gradle b/vscode-wpilib/resources/gradle/java/build.gradle index 4c153a21..123e5016 100644 --- a/vscode-wpilib/resources/gradle/java/build.gradle +++ b/vscode-wpilib/resources/gradle/java/build.gradle @@ -34,6 +34,12 @@ deploy { files = project.fileTree('src/main/deploy') directory = '/home/lvuser/deploy' } + + // sources + frcStaticFileDeploy(getArtifactTypeClass('FileTreeArtifact')) { + files = project.fileTree('build/sources.zip') + directory = '/home/lvuser/' + } } } }