Skip to content

KyoriPowered/blossom

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

blossom Build Status License Gradle Plugin

blossom is a Gradle plugin for performing source code token replacements in Java, Kotlin, Scala, and Groovy based projects. It is licensed under the LGPL v2.1 license.

Usage

Apply the plugin to your project.

plugins {
  id("net.kyori.blossom") version "1.2.0"
}

Replacements can be configured through the BlossomExtension.

Global Replacement (all files)

Replacing all instances of the string APPLE (case-sensitive) with the string BANANA, in all files.

blossom {
  replaceToken("APPLE", "BANANA")
}

Local Replacement (per-file)

Replacing all instances of the string APPLE (case-sensitive) with the string BANANA in the specified file(s).

blossom {
  val constants = "src/main/java/org/example/application/Constants.java"
  replaceToken("APPLE", "BANANA", constants)
}

About

A Gradle plugin to perform source code token replacements in Java-based projects

Resources

License

Stars

Watchers

Forks

Packages

No packages published