Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for gradle 8 and extension object #8

Merged
merged 1 commit into from
Sep 28, 2023

Conversation

aVolpe
Copy link
Contributor

@aVolpe aVolpe commented Sep 28, 2023

The plugin can now be configured using a 'jpos' directive in the .gradle file:

jpos {
    target = "devel"
    addGitRevision = true
    addBuildTime = true
    archiveJarName = "${project_name}-${version}.jar"
    archiveWarName = "${project_name}-${version}.war"
    installDir = build/install/${project_name}
    distDir = src/dist
}

A non trivial refactor of the plugin was made to ensure that those properties
can be configured and used as described in the README.

This commit also makes this plugin compatible with gradle 8, so it fixes #3

The configurability of git revision data also fixes #5.

And it can be a workaround for #7 using a different distDir.

Signed-off-by: Arturo Volpe [email protected]

The plugin can now be configured using a 'jpos' directive in the .gradle file:

```groovy
jpos {
    target = "devel"
    addGitRevision = true
    addBuildTime = true
    archiveJarName = "${project_name}-${version}.jar"
    archiveWarName = "${project_name}-${version}.war"
    installDir = build/install/${project_name}
    distDir = src/dist
}
```

A non trivial refactor of the plugin was made to ensure that those properties
can be configured and used as described in the README.

This commit also makes this plugin compatible with gradle 8, so it fixes jpos#3

The configurability of git revision data also fixes jpos#5.

And it can be a workaround for jpos#7 using a different distDir.

Signed-off-by: Arturo Volpe <[email protected]>
@aVolpe aVolpe force-pushed the feature/plugin_extension branch from 3c0a18e to 6273bd4 Compare September 28, 2023 14:53
@ar ar merged commit f5bce6e into jpos:main Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plugin makes build fail in non git project Gradle warning with createBuildTimestamp task
2 participants