mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
55 lines
1.2 KiB
Groovy
55 lines
1.2 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()
|
|
}
|
|
}
|
|
|
|
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.0'
|
|
}
|