Put the changelog in the same folder as the finished jar

This commit is contained in:
pahimar 2014-06-04 21:02:28 -04:00
parent 26c2c78603
commit 2a7cfdc997

View file

@ -75,7 +75,7 @@ task createChangelog(type: ChangelogTask) {
setAuthName(new DelayedString(project, project.jenkins_user))
setAuthPassword(new DelayedString(project, project.jenkins_password))
setTargetBuild({ buildNumber.toString() });
setOutput(new DelayedFile(project, 'build/distributions/' + project.getName() + '-' + project.version + '-changelog.txt'));
setOutput(new DelayedFile(project, 'build/libs/' + project.getName() + '-' + project.version + '-changelog.txt'));
onlyIf {
return (("${System.getenv().JOB_NAME}" != null) && project.hasProperty("jenkins_server") && project.hasProperty("jenkins_password"))