mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
Fixed version generation when no - is present (#156)
This commit is contained in:
committed by
Peter Johnson
parent
0b1e876dcf
commit
5caf75237b
@@ -3,7 +3,14 @@ import org.gradle.internal.os.OperatingSystem
|
||||
apply plugin: 'maven-publish'
|
||||
apply plugin: 'edu.wpi.first.wpilib.versioning.WPILibVersioningPlugin'
|
||||
|
||||
def utilVersion = "1.0.2${-> WPILibVersion.version.substring(WPILibVersion.version.indexOf('-'))}"
|
||||
def getVersion = {
|
||||
if (WPILibVersion.version.contains('-'))
|
||||
return WPILibVersion.version.substring(WPILibVersion.version.indexOf('-'))
|
||||
else
|
||||
return WPIlibVersion.version
|
||||
}
|
||||
|
||||
def utilVersion = "1.0.2${-> getVersion()}"
|
||||
def utilFile = file("$buildDir/wpiutil.txt")
|
||||
def ntcoreFile = file("$buildDir/ntcore.txt")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user