Skip to content

Commit

Permalink
Update build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
ThadHouse authored May 20, 2018
1 parent 857fdf9 commit 1163b20
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,31 @@
plugins {
id 'java-gradle-plugin'
id 'maven-publish'
id "edu.wpi.first.wpilib.versioning.WPILibVersioningPlugin" version "2.0"
id "com.gradle.plugin-publish" version "0.9.10"
}

// Ensure that the WPILibVersioningPlugin is setup by setting the release type, if releaseType wasn't
// already specified on the command line
if (!hasProperty('releaseType')) {
WPILibVersion {
releaseType = 'dev'
}
}

ext.pubVersion = ''
if (project.hasProperty("publishVersion")) {
pubVersion = project.publishVersion
} else {
pubVersion = WPILibVersion.version
}

if (pubVersion == '') {
pubVersion = '0.0.1-unknown'
}

group 'edu.wpi.first'
version '0.1.6'
version pubVersion

compileJava {
sourceCompatibility = 1.8
Expand Down

0 comments on commit 1163b20

Please sign in to comment.