This script will create a new project/module using a groupId and artifactId.
It will use the groupId and artifactId to best guess which configuration is most appropriate for the project/module you are creating.
./create_project.py androidx.foo foo-bar
The script leverages buildSrc/public/src/main/kotlin/androidx/build/LibraryType.kt to create the recommended defaults for your project. However, you can override the options to best fit your requirements.
Generic project integration test
./create_project.py androidx.foo.bar bar-qux
Script test suite
./test_project_creator.py
If you see an error message No module named 'toml'
try the following steps.
sudo apt-get install virtualenv python3-venv
pip3 install virtualenv
virtualenv androidx_project_creator
(you can choose another name for your virtualenv if you wish).toml
library in your virtual env with androidx_project_creator/bin/pip3 install toml
androidx_project_creator/bin/python3 ./development/project-creator/create_project.py androidx.foo foo-bar
rm -rf ./androidx-project_creator