Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Gradle plugin #27

Open
Alex009 opened this issue May 3, 2021 · 1 comment
Open

Implement Gradle plugin #27

Alex009 opened this issue May 3, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@Alex009
Copy link
Member

Alex009 commented May 3, 2021

Need to implement gradle plugin, which will be available from gradlePluginPortal - https://plugins.gradle.org/
plugin id dev.icerock.gradle.shaper

plugin should support adding local list of template directories by git or local paths, also should support overriding of any params.
plugin should create gradle task shaper. when we run this task gradle should read 2 args of cli - first is template name, second is output directory. also all interactive logic should be used too (filling of params)

configuration sample:

plugins {
    id("dev.icerock.gradle.shaper") version("0.4.0")
}

shaper {
    templates {
        git("https://github.com/icerockdev/shaper-templates.git")
        directory(file("templates"))
    }
    params {
        set("packageName", "dev.icerock.sample")
    }
}

usage sample:

./gradlew shaper kmm-template mpp-library/feature
@Alex009 Alex009 added the enhancement New feature or request label May 3, 2021
@Alex009
Copy link
Member Author

Alex009 commented May 26, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant