Skip to content

Templating project build beyond plugin-versions #35

Open
@nedtwigg

Description

Blowdryer 1.7.0 added a plugin-versions feature which has removed a lot of headache from maintaining our fleet of builds.

It would be nice to have similar templating available for e.g GitHub Actions files, maybe .gitattributes, stuff like that. No imminent plans to implement this, but open to PRs.

I lean towards an API along these lines:

// blowdryer-scripts
actions.template <- file whose content is a newline delimited list of paths to copy from scripts into the repository
.github/workflows/gradle-wrapper-validation.yml
.github/workflows/ci.yml

// settings.gradle
blowdryerSetup {
  applyTemplate 'actions.template', {
    omitFile '.github/workflows/ci.yml'
    modifyFile '.github/workflows/gradle-wrapper-validation.yml', {
      replace '8', '11'
    }
  }
}

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