1 build and deploy (publish)
gradle-producer
library to github (user: daggerok, repo: publish-to-github-example, branch: mvn-repo)bash ./gradlew clean deploy -b gradle-producer/build.gradle
2 build dependant project using
gradle-consumer
from Githubbash ./gradlew clean build -b gradle-consumer/build.gradle java -jar ./gradle-consumer/build/libs/*-all.jar
1 build and deploy (publish)
maven-producer
library to github (user: daggerok, repo: publish-to-github-example, branch: mvn-repo)# using custom settings.xml bash mvnw clean deploy -U -f maven-producer/pom.xml -s maven-producer/settings.xml # or after modifiyng ~/.m2/settings.xml cp maven-producer/settings.xml ~/.m2/ bash mvnw clean deploy -f maven-producer/pom.xml -P publish-to-github-example-deployment-profile
2 build dependant project using
maven-producer
as a dependency from Githubbash ./mvnw clean package -U -f maven-consumer/pom.xml java -jar maven-consumer/target/*-all.jar