Skip to content
This repository was archived by the owner on Jan 31, 2022. It is now read-only.

Commit 942dd6b

Browse files
author
Clément Le Provost
committed
Fix Maven publication
- Version number has changed place (again) - Task to publish is now `uploadArchives` (again) - Enable remote repositories
1 parent 1207c89 commit 942dd6b

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

algoliasearch/common.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,11 @@ uploadArchives {
157157
repository(url: "file://$buildDir/mvnrep")
158158

159159
// 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+
}
166166
}
167167
}

dump-local-mvnrep.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ dumpModule()
4444
TMP_DIR=`mktemp -d`
4545

4646
# 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`
4848
echo "Version: $VERSION"
4949

5050
# Dump online and offline flavors.

release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ git add $FILE_BUILD_GRADLE $FILE_API_CLIENT && git commit -m "Release $VERSION_C
3333
git --no-pager show --name-status --format="short"
3434

3535
echo "Updating artifacts..."
36-
./gradlew publish 1>/dev/null
36+
./gradlew uploadArchives 1>/dev/null
3737

3838
echo "Success! Closing and releasing new version..."
3939
./gradlew closeAndPromoteRepository 1>/dev/null

0 commit comments

Comments
 (0)