Open
Description
Hello - my students downloaded your depot to check it out and it fails to compile. I downloaded the code myself in a clean environment and they are correct. The failure is listed below. We're going to try to run gradlew.bat to fix the issues but you should take a look at it since this code branch is being prescribed as a solution for neos on an mk platform.
Task :spotlessGroovyGradleCheck FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':spotlessGroovyGradleCheck'.
The following files had format violations:
build.gradle
@@ -1,131 +1,131 @@
-plugins {\n
- id "java"\n
- id "edu.wpi.first.GradleRIO" version "2022.4.1"\n
- id "com.diffplug.spotless" version "6.1.0"\n
-}\n
-\n
-sourceCompatibility = JavaVersion.VERSION_11\n
-targetCompatibility = JavaVersion.VERSION_11\n
-\n
-def ROBOT_MAIN_CLASS = "frc.robot.Main"\n
-\n
-// Define my targets (RoboRIO) and artifacts (deployable files)\n
-// This is added by GradleRIO's backing project DeployUtils.\n
-deploy {\n - targets {\n
- roborio(getTargetTypeClass('RoboRIO')) {\n
- // Team number is loaded either from the .wpilib/wpilib_preferences.json\n
- // or from command line. If not found an exception will be thrown.\n
- // You can use getTeamOrDefault(team) instead of getTeamNumber if you\n
- // want to store a team number in this file.\n
- team = project.frc.getTeamOrDefault(3512)\n
- debug = project.frc.getDebugOrDefault(false)\n
-\n - artifacts {\n
- // First part is artifact name, 2nd is artifact type\n
- // getTargetTypeClass is a shortcut to get the class type using a string\n
-\n - frcJava(getArtifactTypeClass('FRCJavaArtifact')) {\n
- }\n
-\n - // Static files artifact\n
- frcStaticFileDeploy(getArtifactTypeClass('FileTreeArtifact')) {\n
- files = project.fileTree('src/main/deploy')\n
- directory = '/home/lvuser/deploy'\n
- }\n
- }\n
- }\n
- }\n
-}\n
-\n
-def deployArtifact = deploy.targets.roborio.artifacts.frcJava\n
-\n
-// Set to true to use debug for JNI.\n
-wpi.java.debugJni = false\n
-\n
-// Set this to true to enable desktop support.\n
-def includeDesktopSupport = false\n
-\n
... (214 more lines that didn't fit)
Violations also present in:
settings.gradle
Run 'gradlew.bat :spotlessApply' to fix these violations.
Metadata
Metadata
Assignees
Labels
No labels