Skip to content

Commit

Permalink
move task from main gradle to config
Browse files Browse the repository at this point in the history
  • Loading branch information
srimanachanta committed Nov 19, 2023
1 parent f110459 commit e522dda
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
13 changes: 0 additions & 13 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
plugins {
id "java"
id "com.diffplug.spotless" version "6.22.0"
id "edu.wpi.first.NativeUtils" version "2024.2.0" apply false
id "edu.wpi.first.wpilib.repositories.WPILibRepositoriesPlugin" version "2020.2"
Expand Down Expand Up @@ -40,18 +39,6 @@ ext {
println("Building for platform " + jniPlatform)
}

def outputsFolder = file("$buildDir/allOutputs")

task copyAllOutputs(type: Copy) {
destinationDir outputsFolder
}

ext.addTaskToCopyAllOutputs = { task ->
copyAllOutputs.dependsOn task
copyAllOutputs.inputs.file task.archiveFile
copyAllOutputs.from task.archiveFile
}

wpilibTools.deps.wpilibVersion = wpilibVersion

// Tell gradlerio what version of things to use (that we care about)
Expand Down
12 changes: 12 additions & 0 deletions shared/config.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,18 @@ model {
}
}

def outputsFolder = file("$buildDir/allOutputs")

task copyAllOutputs(type: Copy) {
destinationDir outputsFolder
}

ext.addTaskToCopyAllOutputs = { task ->
copyAllOutputs.dependsOn task
copyAllOutputs.inputs.file task.archiveFile
copyAllOutputs.from task.archiveFile
}

// Add debug path to binaries.
ext.appendDebugPathToBinaries = { binaries ->
binaries.withType(StaticLibraryBinarySpec) {
Expand Down

0 comments on commit e522dda

Please sign in to comment.