File tree Expand file tree Collapse file tree 4 files changed +15
-3
lines changed Expand file tree Collapse file tree 4 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -232,6 +232,11 @@ configure(publishedProjects) {
232232 apply plugin : ' maven-publish'
233233
234234 publishing {
235+ repositories {
236+ maven {
237+ url = project. properties. getOrDefault(' publicationRepository' , " ${ System.getenv('HOME')} /.m2/repository" )
238+ }
239+ }
235240 publications {
236241 mavenJava(MavenPublication ) {
237242 suppressAllPomMetadataWarnings()
Original file line number Diff line number Diff line change 33set -euo pipefail
44
55readonly ONLY_SHOW_STANDARD_STREAMS_ON_TEST_FAILURE=" ${ONLY_SHOW_STANDARD_STREAMS_ON_TEST_FAILURE:- true} "
6+ readonly SKIP_TESTS=" ${SKIP_TESTS:- false} "
67
78# shellcheck source=common.sh
89source " $( dirname " $0 " ) /common.sh"
910repository=$( pwd) /distribution-repository
11+ if [ " $SKIP_TESTS " == " true" ]; then
12+ build_task=assemble
13+ else
14+ build_task=build
15+ fi
1016
1117pushd git-repo > /dev/null
12- ./gradlew --parallel clean build install \
18+ ./gradlew --parallel clean " $build_task " publish \
1319 -PonlyShowStandardStreamsOnTestFailure=" ${ONLY_SHOW_STANDARD_STREAMS_ON_TEST_FAILURE} " \
14- -Dmaven.repo.local =" ${repository} "
20+ -PpublicationRepository =" ${repository} "
1521popd > /dev/null
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ git commit -m "Release v$stageVersion"
3737git tag -a " v$stageVersion " -m " Release v$stageVersion "
3838echo
3939
40- ./gradlew --no-daemon clean install -Dmaven.repo.local =" ${repository} "
40+ ./gradlew clean publish -PpublicationRepository =" ${repository} "
4141echo
4242
4343echo " Setting next development version (v$nextVersion )"
Original file line number Diff line number Diff line change 1616 path : git-repo/ci/scripts/build-project.sh
1717params :
1818 ONLY_SHOW_STANDARD_STREAMS_ON_TEST_FAILURE : true
19+ SKIP_TESTS : false
You can’t perform that action at this time.
0 commit comments