gradle-git-properties icon indicating copy to clipboard operation
gradle-git-properties copied to clipboard

Gradle plugin for `git.properties` file generation

Results 36 gradle-git-properties issues
Sort by recently updated
recently updated
newest added

Apply the plugin on its own build. Same purpose as #92 but without depending on a previous version.

- Upgrade Gradle from 7.0 to 7.5 - Update the existing unit test to test Gradle 7.5 - Also add GitHub Gradle Wrapper binary checking to avoid tampering

My application is implemented using SpringBoot. configured custom property in build.gradle like gitProperties { customProperty 'sample.version', { System.getenv("SAMPLE_VERSION") } keys = ['git.branch','git.build.time','git.commit.id','git.commit.id.abbrev','git.commit.message.full','git.commit.message.short','git.commit.time','git.commit.user.email','git.commit.user.name', 'sample.version'] } can see sample.version property populated in...

question

I added 2.4.1 of the plugin to a grails 5.1 project and got the following bizarre error: ``` `FAILURE: Build failed with an exception. * What went wrong: Execution failed...

question

While working on #209 to make use of [inferred task dependencies](https://docs.gradle.org/7.5/userguide/more_about_tasks.html#sec:inferred_task_dependencies) on the `processResources` task (instead of depending on the dependent `classes` task), it seems there is an issue with...

Windows uses the \ backslash character as the directory separator, which interferes with the standard Groovy escaping.

# Context Gradle 7.5 ``` ------------------------------------------------------------ Gradle 7.5 ------------------------------------------------------------ Build time: 2022-07-14 12:48:15 UTC Revision: c7db7b958189ad2b0c1472b6fe663e6d654a5103 Kotlin: 1.6.21 Groovy: 3.0.10 Ant: Apache Ant(TM) version 1.10.11 compiled on July 10 2021...

It currently doesn't seem to be possible as the plugin does not allow overriding the configuration on a per-task basis. https://github.com/n0mer/gradle-git-properties/blob/master/src/main/groovy/com/gorylenko/GenerateGitPropertiesTask.groovy#L35

Looks like the issue GH-14 can be re-opened with latest information on the JGit bug report (see comment on the GH-14 issue)

I just got and error trying to set a custom resources dir using `gitPropertiesResourceDir` config: ``` org.gradle.api.GradleScriptException: A problem occurred evaluating root project. Caused by: java.lang.IllegalArgumentException: Cannot set the value...