mfuerstenau / gradle-buildconfig-plugin

A BuildConfig plugin for Gradle java projects
MIT License
173 stars 20 forks source link

A possibility to rename BuildConfig #1

Closed arteme closed 8 years ago

arteme commented 9 years ago

It would be nice to be able to override the name of the generated class "BuildConfig" to something user-defined.

mfuerstenau commented 8 years ago

I will look into this.

mfuerstenau commented 8 years ago

Sorry for the long waiting time. I pushed 1.0.6 to the plugins portal, it's based on the groovy branch.There's the {{clsName}} property to the extension which can hold a custom name.

buildConfig {
    sourceSets {
        main {
            packageName = 'de.fuerstenau.buildconfig.sample'
            clsName = 'WowBuildConfigWithCustomName'
            buildConfigField "boolean", "IS_DEBUG", "true"
        }
    }
}
arteme commented 8 years ago

Great, thank you!

mfuerstenau commented 8 years ago

new version is up, more configuration options, better readme