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 MANIFEST file 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)
- Applying the plugin
- General Configuration
- SvnInfo: information about a workspace file
- SvnVersion: summarize the local revision(s) of a working copy.
- SvnCheckout: creates a local workspace of an SVN repository
- SvnUpdate: updates an SVN workspace
- SvnCommit: commits workspace modifications
- SvnBranch: creates an SVN branch
- SvnTag: creates an SVN tag
- SvnExport: exports parts of an SVN repository to a local directory