Updating WPILib Project Version
Important
This process should be done at the start of each new build season when a new version of WPILib is released
Standard Project Conversion
- Open project in new WPILib
- When prompted with "This project is not compatible...", click
yes - At the next screen, leave all settings as is and click
Import Project - At the next prompt click
yes - At the next prompt "Project successfully created. Would you like to open?" click
no - Open file explorer
- Navigate to the new imported folder (same name but with "-imported")
- Enable seeing hidden files
- Select and drag all "-imported" contents into the original project folder and
replace all - Install new vendor libraries
- Revert
.gitignore - Revert
extension.jsonif there are changes to it - Partially revert
settings.json(revert things in custom section)
SuperCORE Projects ONLY
Warning
These additional steps are only for projects that use SuperCORE
- Revert
settings.gradle - In
build.gradlecopy the newid "edu.wpi.first.GradleRIO" version "xxxx.x.x" - Revert
build.gradle - Paste the copied
id "edu.wpi.first.GradleRIO" version "xxxx.x.x" - Update the year in
SuperCORE.jsonandLocalSuperCORE.json
See Also
- WPILib Install - Installing the new version of WPILib
- Vendor Libraries - Installing vendor libraries