- Cloned FRC2021 code
- Followed Thomas's magic steps:
- get 2022_updates branch and pull the branch down
3 command line arguments: git init (to be able to do the other things) git submodule add https://github.com/robototes/2910Common.git common clones master branch git config -f .gitmodules submodule.common.branch 2022_update switches the branch to the 2022_update one may need to do a git fetch (?) git submodule update --remote common updates to 2022 branch
[include 'common'] in settings.gradle (at bottom of page)
[implementation project(':common')] inside dependencies{} in build.gradle
- we added version '2.0.2' where there previously was no version specification
- net.ltgt.errorprone is a github repo with version # 2.0.2. the com.google.errorprone stuff below in dependencies{} is different
this step may no longer be needed if 2910/robototes updates
- The main project is dependent on the smaller project's jar file
- If the main project tries to compile before 2910 it's a problem because it needs the jar file from the 2910 compilation
- following steps manually determine build order
To fix:
- Go to the VSCode Terminal window and run the following commands:
-
cd common
-
./gradlew build
-
cd ..
-
./gradlew build
Additional notes:
- there is probably a way to specify build order in gradle