mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Updates Gradle to 2.14 (#78)
This commit is contained in:
committed by
Peter Johnson
parent
4b516de183
commit
384ad57d21
@@ -27,18 +27,22 @@ jar {
|
||||
classifier = "$buildPlatform"
|
||||
|
||||
dependsOn { classes }
|
||||
binaries.withType(SharedLibraryBinary) { binary ->
|
||||
from(file(binary.sharedLibraryFile)) {
|
||||
into getPlatformPath(binary)
|
||||
model {
|
||||
binaries {
|
||||
withType(SharedLibraryBinarySpec) { binary ->
|
||||
from(file(binary.sharedLibraryFile)) {
|
||||
into getPlatformPath(binary)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
project.tasks.whenTaskAdded { task->
|
||||
project.tasks.whenTaskAdded { task ->
|
||||
if (isArm) {
|
||||
if (task.name == 'ntcoreSharedLibrary') jar.dependsOn task
|
||||
} else {
|
||||
if (task.name == 'x64NtcoreSharedLibrary' || task.name == 'x86NtcoreSharedLibrary')
|
||||
if (task.name == 'ntcoreX64SharedLibrary' || task.name == 'ntcoreX86SharedLibrary')
|
||||
jar.dependsOn task
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user