Skip to content

Commit

Permalink
Merge branch 'kitbot-swerve' into trajopt-native
Browse files Browse the repository at this point in the history
  • Loading branch information
camearle20 committed Jan 28, 2024
2 parents b65ca0e + 08a893a commit 36d6d2d
Show file tree
Hide file tree
Showing 75 changed files with 13,783 additions and 11,137 deletions.
12 changes: 12 additions & 0 deletions .pathplanner/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"robotWidth": 0.762,
"robotLength": 0.762,
"holonomicMode": true,
"pathFolders": [],
"autoFolders": [],
"defaultMaxVel": 3.0,
"defaultMaxAccel": 3.0,
"defaultMaxAngVel": 540.0,
"defaultMaxAngAccel": 720.0,
"maxModuleSpeed": 4.5
}
25 changes: 24 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
plugins {
id "java"
id "edu.wpi.first.GradleRIO" version "2024.1.1"
id "edu.wpi.first.GradleRIO" version "2024.2.1"
id "com.peterabeles.gversion" version "1.10"
id "com.diffplug.spotless" version "6.24.0"
id "io.freefair.lombok" version "8.4"
}

java {
Expand Down Expand Up @@ -144,6 +145,28 @@ gversion {
indent = " "
}

tasks.register('eventDeploy') {
dependsOn('deploy')
doFirst {
def branchPrefix = "event"

def branch = 'git branch --show-current'.execute().text.trim()
if (!branch.startsWith(branchPrefix)) {
throw new GradleException("Current branch '$branch' is not a valid event branch.")
}

def commitMessage = "Update at '${new Date().toString()}'"

exec {
commandLine 'git', 'add', '-A'
commandLine 'git', 'commit', '-m', commitMessage
}

println "Deployed to branch: '$branch'"
println "Commit message: '$commitMessage'"
}
}

// Spotless formatting
project.compileJava.dependsOn(spotlessApply)
spotless {
Expand Down
Loading

0 comments on commit 36d6d2d

Please sign in to comment.