A Gradle plugin (based on SVNKit) that provides various Subversion-related tasks.
Here is a very short build script that prints out the SVN revision:
apply plugin: "at.bxm.svntools"
task info << {
println "Current revision is $svntools.info.revisionNumber"
}
The svntools-plugin can interact with existing SVN workspaces as well as create new workspaces (by performing a svn-checkout). It can interact with any SVN working copy format; no additional SVN client is required.
Please report bugs and feature requests at the Github issue page.
- Add the SVN revision to the version number when publishing artifacts
- Create a tag as part of an automated release process
- Commit files that have been changed during the build process (e.g. bumped version numbers)