During the 2018 offseason we moved our codebase from the old Ant build system to GradleRIO because we heard it’s becoming the new official build system. We use a two-project configuration (one for the main robot code and another one for utilities, configurations and other stuff), and after updating the build.gradle and settings.gradle files to the new plugin the vendor libraries won’t load. The installation works for new projects created with the wpilib project wizard, but not for our custom configuration.
The directory structure looks something like this:
<master> -> settings.gradle -> build.gradle -> robot-code/ ---> src/main/java/<...> ---> build.gradle -> robot-config/ ---> src/main/java/<...> ---> build.gradle
The settings.gradle file in the main folder matches the one in the wpilib template (with the addition of project definitions, aka
include ':robot-code', ':robot-config'), as is the build.gradle file in the robot-code directory. The main build.gradle file just includes some maven repositories (JitPack, maven central, maven local) and some plugins (java, idea, eclipse) that both of the projects share.
Is there a problem with multiple Gradle projects when using wpilib nowadays?