Skip to content

Commit

Permalink
Add tool to upload package from prebuilts.
Browse files Browse the repository at this point in the history
  • Loading branch information
olonho committed May 25, 2021
1 parent 3232571 commit 619a0a4
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions tools/upload_package_from_prebuilts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/bin/bash

# Install Maven, i.e.
# brew install mvn
#
# Create $HOME/.m2/settings.xml like this
#<settings>
#<repositories>
# <repository>
# <id>SpaceDev</id>
# <url>https://maven.pkg.jetbrains.space/public/p/compose/dev</url>
# <snapshots>
# <enabled>false</enabled>
# </snapshots>
# </repository>
#</repositories>
#<servers>
# <server>
# <id>SpaceDev</id>
# <username>XXX</username>
# <password>XXX</password>
# </server>
#</servers>
#</settings>
#
# Correct ANDROIDX_MAIN environment variable to point to androidx-main checkout.
export ANDROIDX_MAIN=$HOME/compose/androidx-main

# Set those variables to the package and version you'd like to upload.
export GROUP=org/jetbrains/dokka
export PACKAGE_ID=dokka-fatjar
export VERSION=0.9.17-g013

# No user-serviceable parts below, just run the script.
export PREBUILTS=${ANDROIDX_MAIN}/prebuilts/androidx/external
export DIR=${PREBUILTS}/${GROUP}/${PACKAGE_ID}/${VERSION}
export PACKAGE=${PACKAGE_ID}-${VERSION}
export POM=${DIR}/${PACKAGE}.pom
export JAR=${DIR}/${PACKAGE}.jar
export SOURCES=${DIR}/${PACKAGE}-sources.jar
export REPO=https://maven.pkg.jetbrains.space/public/p/compose/dev

mvn deploy:deploy-file \
-Dfile=${JAR} \
-DpomFile=${POM} \
-Durl=${REPO} \
-DrepositoryId=SpaceDev

0 comments on commit 619a0a4

Please sign in to comment.