Skip to content

johnsonlee/buildprops-gradle-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8bdabbe · Jul 9, 2022

History

14 Commits
May 4, 2022
Jan 1, 2021
May 4, 2022
Jan 21, 2020
Jan 21, 2020
Jan 21, 2020
Jul 9, 2022
May 4, 2022
Jan 21, 2020
Jan 21, 2020
Jan 21, 2020
Jan 21, 2020

Repository files navigation

Introduction

buildprops-gradle-plugin is used to generate Build.java source file with following constant fields:

  • GROUP_ID
  • ARTIFACT_ID
  • VERSION
  • REVISION

It not only support Java project, but also support Kotlin and Groovy project or mixin language project.

Getting Started

Enable buildprops-gradle-plugin by configuring build.gradle

plugins {
    id("io.johnsonlee.buildprops") version "1.2.0"
}

Then build your porject to generate Build.java file, and then, the Build class will be accessible in your project