Skip to content

Commit

Permalink
[BUILD] add gatherArtifacts task to automate release process
Browse files Browse the repository at this point in the history
  • Loading branch information
remkop committed Jan 27, 2023
1 parent 8583385 commit 16bba53
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion gradle/release-tasks.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,36 @@ task extractReleaseNotesNext {
}
}
}
task gatherArtifacts(type: Copy) {
from('build/libs/') {
include '*.jar', '*.asc'
exclude '*test*', '*sources*'
}
from('picocli-codegen/build/libs/') {
include '*.jar', '*.asc'
exclude '*test*', '*sources*', '*javadoc*'
}
from('picocli-groovy/build/libs/') {
include '*.jar', '*.asc'
exclude '*test*', '*sources*', '*javadoc*'
}
from('picocli-shell-jline2/build/libs/') {
include '*.jar', '*.asc'
exclude '*test*', '*sources*', '*javadoc*'
}
from('picocli-shell-jline3/build/libs/') {
include '*.jar', '*.asc'
exclude '*test*', '*sources*', '*javadoc*'
}
from('picocli-spring-boot-starter/build/libs/') {
include '*.jar', '*.asc'
exclude '*test*', '*sources*', '*javadoc*'
}
from('build/distributions/') {
include '*.zip'
}
into 'build/artifacts'
}

/*
Release procedure:
Expand Down Expand Up @@ -171,7 +201,9 @@ Release procedure:
18. Log in to GitHub, go to https://github.com/remkop/picocli/releases
19. Click the new tag, click Edit button, update title and release notes (copy from RELEASE-NOTES.md)
20. Upload picocli-$version.jar and picocli-all$version.zip to GitHub
20. ./gradlew gatherArtifacts
21. explorer C:\Users\remko\IdeaProjects\picocli3\build\artifacts
22. Upload all files in build/artifacts to GitHub
(When releasing from branch)
Expand Down

0 comments on commit 16bba53

Please sign in to comment.