Skip to content

Instantly share code, notes, and snippets.

@fomkin
Last active October 17, 2016 14:19
Show Gist options
  • Save fomkin/26525f660a28ab8b77be35973425f684 to your computer and use it in GitHub Desktop.
Save fomkin/26525f660a28ab8b77be35973425f684 to your computer and use it in GitHub Desktop.
REPOSITORY="-DrepositoryId=haxemojos-nexus-releases -Durl=http://repo.haxemojos.org/content/repositories/releases"
OPTS="-DgeneratePom=false"
NAME="-DgroupId=org.haxe.compiler -DartifactId=haxe-compiler -Dversion=$1"
mvn deploy:deploy-file $NAME -Dclassifier=win -Dpackaging=zip -Dfile=haxe-$1-win.zip $REPOSITORY $OPTS
mvn deploy:deploy-file $NAME -Dclassifier=osx -Dpackaging=tgz -Dfile=haxe-$1-osx.tar.gz $REPOSITORY $OPTS
mvn deploy:deploy-file $NAME -Dclassifier=linux32 -Dpackaging=tgz -Dfile=haxe-$1-linux32.tar.gz $REPOSITORY $OPTS
mvn deploy:deploy-file $NAME -Dclassifier=linux64 -Dpackaging=tgz -Dfile=haxe-$1-linux64.tar.gz $REPOSITORY $OPTS
mvn deploy:deploy-file $NAME -Dpackaging=pom -Dfile=pom.xml $REPOSITORY $OPTS
NAME="-DgroupId=org.nekovm -DartifactId=nekovm -Dversion=$1"
mvn deploy:deploy-file $NAME -Dclassifier=win -Dpackaging=zip -Dfile=neko-$1-win.zip $REPOSITORY $OPTS
mvn deploy:deploy-file $NAME -Dclassifier=osx -Dpackaging=tgz -Dfile=neko-$1-osx.tar.gz $REPOSITORY $OPTS
mvn deploy:deploy-file $NAME -Dclassifier=linux32 -Dpackaging=tgz -Dfile=neko-$1-linux32.tar.gz $REPOSITORY $OPTS
mvn deploy:deploy-file $NAME -Dclassifier=linux64 -Dpackaging=tgz -Dfile=neko-$1-linux64.tar.gz $REPOSITORY $OPTS
mvn deploy:deploy-file $NAME -Dpackaging=pom -Dfile=pom.xml $REPOSITORY $OPTS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment