Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/daggerok/publish-to-github-example

This repository contains example how to publish and depends on maven artifacts using github.
https://github.com/daggerok/publish-to-github-example

github-maven-repository github-releases github-repository publish publishing

Last synced: 1 day ago
JSON representation

This repository contains example how to publish and depends on maven artifacts using github.

Awesome Lists containing this project

README

        

= publish-to-github-example image:https://travis-ci.org/daggerok/publish-to-github-example.svg?branch=0.0.3["Build Status", link="https://travis-ci.org/daggerok/publish-to-github-example"]

=== gradle flow

.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 Github
----
bash ./gradlew clean build -b gradle-consumer/build.gradle
java -jar ./gradle-consumer/build/libs/*-all.jar
----

=== maven flow

.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 Github
----
bash ./mvnw clean package -U -f maven-consumer/pom.xml
java -jar maven-consumer/target/*-all.jar
----