Skip to content

Implement Gradle plugin #27

Description

@Alex009

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions