Skip to content

Commit

Permalink
simplifies build.gradle, builds locally
Browse files Browse the repository at this point in the history
  • Loading branch information
jkleiber committed Aug 21, 2024
1 parent 838565f commit 0399bba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 30 deletions.
4 changes: 2 additions & 2 deletions .wpilib/wpilib_preferences.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"enableCppIntellisense": true,
"currentLanguage": "cpp",
"projectYear": "intellisense",
"teamNumber": 9999
}
"teamNumber": 401
}
28 changes: 0 additions & 28 deletions wpi_interface/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ java {
targetCompatibility = JavaVersion.VERSION_17
}

def ROBOT_MAIN_CLASS = "frc.robot.Main"

def VISUALVM_PROFILE = false

// Define my targets (RoboRIO) and artifacts (deployable files)
Expand Down Expand Up @@ -107,7 +105,6 @@ wpi.sim.addDriverstation()
jar {
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
from sourceSets.main.allSource
manifest edu.wpi.first.gradlerio.GradleRIOPlugin.javaManifest(ROBOT_MAIN_CLASS)
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}

Expand Down Expand Up @@ -162,28 +159,3 @@ java {

// Automatically format code on build.
compileJava.dependsOn 'spotlessApply'

configurations.all {
exclude group: "edu.wpi.first.wpilibj"
}

task (commitOnDeploy, dependsOn: "spotlessApply") {
description = 'Commits when deployed.'
doLast {
if (true) {
def date = new Date()
def sdf = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss")
grgit.add(patterns: [
'src/',
'vendordeps/',
'build.gradle',
'logs',
'gradle',
'.wpilib'
])
grgit.commit(message: "Automated commit at " + sdf.format(date), all: true)
}
}
}

// compileJava.dependsOn commitOnDeploy

0 comments on commit 0399bba

Please sign in to comment.