This repository was archived by the owner on Jan 31, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -157,11 +157,11 @@ uploadArchives {
157
157
repository(url : " file://$buildDir /mvnrep" )
158
158
159
159
// Maven Central repository.
160
- // repository(url: PUBLISH_VERSION.endsWith("-SNAPSHOT") ? "https://oss.sonatype.org/content/repositories/snapshots/" : "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
161
- // authentication(
162
- // userName: project.hasProperty('nexusUsername') ? project['nexusUsername'] : 'FIXME',
163
- // password: project.hasProperty('nexusPassword') ? project['nexusPassword'] : 'FIXME'
164
- // )
165
- // }
160
+ repository(url : PUBLISH_VERSION . endsWith(" -SNAPSHOT" ) ? " https://oss.sonatype.org/content/repositories/snapshots/" : " https://oss.sonatype.org/service/local/staging/deploy/maven2/" ) {
161
+ authentication(
162
+ userName : project. hasProperty(' nexusUsername' ) ? project[' nexusUsername' ] : ' FIXME' ,
163
+ password : project. hasProperty(' nexusPassword' ) ? project[' nexusPassword' ] : ' FIXME'
164
+ )
165
+ }
166
166
}
167
167
}
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ dumpModule()
44
44
TMP_DIR=` mktemp -d`
45
45
46
46
# Retrieve version number from root Gradle script.
47
- VERSION=` cat " $SELF_ROOT /build .gradle" | grep -E " PUBLISH_VERSION\s*=\s*'[0-9.]+(-SNAPSHOT)?'" | cut -d " '" -f 2`
47
+ VERSION=` cat " $SELF_ROOT /algoliasearch/common .gradle" | grep -E " PUBLISH_VERSION\s*=\s*'[0-9.]+(-SNAPSHOT)?'" | cut -d " '" -f 2`
48
48
echo " Version: $VERSION "
49
49
50
50
# Dump online and offline flavors.
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ git add $FILE_BUILD_GRADLE $FILE_API_CLIENT && git commit -m "Release $VERSION_C
33
33
git --no-pager show --name-status --format=" short"
34
34
35
35
echo " Updating artifacts..."
36
- ./gradlew publish 1> /dev/null
36
+ ./gradlew uploadArchives 1> /dev/null
37
37
38
38
echo " Success! Closing and releasing new version..."
39
39
./gradlew closeAndPromoteRepository 1> /dev/null
You can’t perform that action at this time.
0 commit comments