This script will create a new library project and associated Gradle module using a groupId
and artifactId
.
It will use the groupId
and artifactId
to guess which configuration is most appropriate for the project 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.
See go/androidx-api-guidelines#module-creation (internal-only) or the equivalent page on public Android Code Search for advanced usage and solutions to common issues.
If you make any changes to the script, please update this README
and make corresponding updates at go/androidx-api-guidelines#module-creation.
Generic project integration test
./create_project.py androidx.foo.bar bar-qux
Script test suite
./test_project_creator.py