mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Adds a `@NoDiscard` annotation that can be placed on methods to guarantee their return values are used and on types to guarantee that any method returning that type uses the return value.
Methods that call `@NoDiscard`-annotated functions can add a `@SuppressWarnings("NoDiscard")` or `@SuppressWarnings("all")` annotation (or annotation on the class declaring that method) to silence the compiler error warnings.
94 lines
2.4 KiB
Groovy
94 lines
2.4 KiB
Groovy
pluginManagement {
|
|
repositories {
|
|
mavenLocal()
|
|
maven {
|
|
url = 'https://frcmaven.wpi.edu/artifactory/ex-gradle'
|
|
}
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
id "com.gradle.develocity" version "4.2"
|
|
}
|
|
|
|
// Set the flag to tell gradle to ignore unresolved headers
|
|
// Libraries like eigen and opencv use macro includes, which
|
|
// Gradle doesn't properly ignore, and completely disables
|
|
// Incremental includes. This flag makes those includes be ignored.
|
|
Properties props = System.getProperties();
|
|
props.setProperty("org.gradle.internal.native.headers.unresolved.dependencies.ignore", "true");
|
|
|
|
include 'wpiutil'
|
|
include 'wpinet'
|
|
include 'ntcore'
|
|
include 'hal'
|
|
include 'cscore'
|
|
include 'wpigui'
|
|
include 'wpimath'
|
|
include 'wpilibc'
|
|
include 'wpilibcExamples'
|
|
include 'wpilibcIntegrationTests'
|
|
include 'wpilibjExamples'
|
|
include 'wpilibjIntegrationTests'
|
|
include 'wpilibj'
|
|
include 'javacPlugin'
|
|
include 'wpiannotations'
|
|
include 'wpiunits'
|
|
include 'crossConnIntegrationTests'
|
|
include 'fieldImages'
|
|
include 'glass'
|
|
include 'outlineviewer'
|
|
include 'roborioteamnumbersetter'
|
|
include 'datalogtool'
|
|
include 'sysid'
|
|
include 'simulation:halsim_ds_socket'
|
|
include 'simulation:halsim_gui'
|
|
include 'simulation:halsim_ws_core'
|
|
include 'simulation:halsim_ws_client'
|
|
include 'simulation:halsim_ws_server'
|
|
include 'simulation:halsim_xrp'
|
|
include 'cameraserver'
|
|
include 'cameraserver:multiCameraServer'
|
|
include 'wpilibNewCommands'
|
|
include 'romiVendordep'
|
|
include 'xrpVendordep'
|
|
include 'developerRobot'
|
|
include 'benchmark'
|
|
include 'docs'
|
|
include 'msvcruntime'
|
|
include 'ntcoreffi'
|
|
include 'apriltag'
|
|
include 'processstarter'
|
|
include 'epilogue-processor'
|
|
include 'epilogue-runtime'
|
|
include 'thirdparty:googletest'
|
|
include 'thirdparty:imgui_suite'
|
|
include 'wpical'
|
|
|
|
buildCache {
|
|
def cred = {
|
|
if (System.env[it] != null) {
|
|
return System.env[it]
|
|
} else {
|
|
return System.getProperty(it)
|
|
}
|
|
}
|
|
local {
|
|
enabled = !System.getenv().containsKey("CI")
|
|
}
|
|
remote(HttpBuildCache) {
|
|
url = "https://frcmaven.wpi.edu/artifactory/wpilib-generic-gradlecache/"
|
|
String user = cred('ARTIFACTORY_PUBLISH_USERNAME')
|
|
String pass = cred('ARTIFACTORY_PUBLISH_PASSWORD')
|
|
if (user && pass) {
|
|
push = true
|
|
credentials {
|
|
username = user
|
|
password = pass
|
|
}
|
|
}
|
|
}
|
|
}
|