https://github.com/hacktons/tpl
Create project/module from template, such as buildSrc plugin for Android Project
https://github.com/hacktons/tpl
buildsrc gradle-plugin
Last synced: 11 months ago
JSON representation
Create project/module from template, such as buildSrc plugin for Android Project
- Host: GitHub
- URL: https://github.com/hacktons/tpl
- Owner: hacktons
- License: apache-2.0
- Created: 2019-11-12T08:47:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-13T02:03:56.000Z (over 6 years ago)
- Last Synced: 2025-02-16T02:43:22.841Z (about 1 year ago)
- Topics: buildsrc, gradle-plugin
- Language: Shell
- Homepage:
- Size: 315 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tpl
Create project form template, such buildSrc plugin
## 1. Install the buildSrc
Install the buildSrc into current folder, copy and past the commands into your terminal.
```bash
echo "$(curl -fsSL https://raw.githubusercontent.com/hacktons/tpl/master/install-buildsrc)" | bash
```
**PS**: *Inspired by the [homebrew](https://brew.sh/) installation way*
Now you will have some generated files:

## 2. Apply the plugin
Apply the plugin into your project.
```groovy
apply plugin: 'com.android.application'
apply plugin: 'hi' // 'hi' is our plugin name
```
## 3. Happy coding
Now your can build/sync within Android Studio, the buildSrc should just work fine.
