Installing Development Builds¶
This article contains instructions on building projects using a development build and a local WPILib build.
Note
This only applies to Java/C++ teams.
Development Build¶
Development builds are the per-commit build hosted everytime a commit is pushed to the allwpilib repository. These builds are then hosted on artifactory.
In order to build a project using a development build, find the build.gradle file and open it. Then, add the following code below the plugin section and replace YEAR with the year of the development version.
wpi.maven.useDevelopment = true
wpi.wpilibVersion = 'YEAR.+'
The top of your build.gradle file should now look similar to the code below. Ignore any differences in versions.
plugins {
id "java"
id "edu.wpi.first.GradleRIO" version "2020.3.2"
}
wpi.maven.useDevelopment = true
wpi.wpilibVersion = '2020.+'
plugins {
id "cpp"
id "google-test-test-suite"
id "edu.wpi.first.GradleRIO" version "2020.3.2"
}
wpi.maven.useDevelopment = true
wpi.wpilibVersion = '2020.+'
Local Build¶
Building with a local build is very similar to building with a development build. Ensure you have built and published WPILib by following the instructions attached here. Next, find the build.gradle file in your robot project and open it. Then, add the following code below the plugin section and replace YEAR with the year of the local version.
wpi.maven.useFrcMavenLocalDevelopment = true
wpi.wpilibVersion = 'YEAR.424242.+'
The top of your build.gradle file should now look similar to the code below. Ignore any differences in versions.
plugins {
id "java"
id "edu.wpi.first.GradleRIO" version "2020.3.2"
}
wpi.maven.useFrcMavenLocalDevelopment = true
wpi.wpilibVersion = '2020.424242.+'
plugins {
id "cpp"
id "google-test-test-suite"
id "edu.wpi.first.GradleRIO" version "2020.3.2"
}
wpi.maven.useFrcMavenLocalDevelopment = true
wpi.wpilibVersion = '2020.424242.+'