mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Updated to gradle 3.2.1. This also moves all of the task graph listeners for dependency setup to use the gradle model, making it both safer and reducing line count.
67 lines
1.6 KiB
Groovy
67 lines
1.6 KiB
Groovy
plugins {
|
|
id 'net.ltgt.errorprone' version '0.0.8'
|
|
id 'edu.wpi.first.wpilib.versioning.WPILibVersioningPlugin' version '1.4'
|
|
}
|
|
|
|
def enableSimulation = hasProperty('enableSimulation')
|
|
|
|
if (!hasProperty('repo')) {
|
|
ext.repo = 'development'
|
|
}
|
|
|
|
ext.simulationInstallDir = "$rootDir/build/install/simulation"
|
|
|
|
allprojects {
|
|
ext.enableSimulation = enableSimulation
|
|
ext.repo = repo
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
ext.ntcoreDep = { lang, classifier, extension = null ->
|
|
return "edu.wpi.first.wpilib.networktables.$lang:NetworkTables:+:$classifier${extension == null ? '' : '@' + extension}"
|
|
}
|
|
|
|
ext.cscoreDep = { lang, classifier, extension = null ->
|
|
return "edu.wpi.cscore.$lang:cscore:+:$classifier${extension == null ? '' : '@' + extension}"
|
|
}
|
|
|
|
ext.wpiUtilDep = { classifier ->
|
|
return "edu.wpi.first.wpilib:wpiutil:+:$classifier@zip"
|
|
}
|
|
}
|
|
|
|
subprojects {
|
|
apply plugin: 'eclipse'
|
|
apply plugin: 'idea'
|
|
apply plugin: 'checkstyle'
|
|
|
|
checkstyle {
|
|
toolVersion = "6.18"
|
|
configFile = new File(rootDir, "styleguide/checkstyle.xml")
|
|
}
|
|
|
|
ext.armBuild = true
|
|
|
|
// Disables doclint in java 8.
|
|
if (JavaVersion.current().isJava8Compatible()) {
|
|
tasks.withType(Javadoc) {
|
|
options.addStringOption('Xdoclint:none', '-quiet')
|
|
}
|
|
}
|
|
ext.setupWpilibRepo = { publishing ->
|
|
publishing.repositories.maven {
|
|
url = WPILibVersion.mavenLocalUrl
|
|
}
|
|
}
|
|
}
|
|
|
|
apply from: 'cppSettings.gradle'
|
|
|
|
apply from: 'ni-libraries/ni-libraries.gradle'
|
|
|
|
task wrapper(type: Wrapper) {
|
|
gradleVersion = '3.2.1'
|
|
}
|