Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/daggerok/publish-to-github-example
- Owner: daggerok
- Created: 2018-01-04T16:11:05.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-07T22:35:24.000Z (about 7 years ago)
- Last Synced: 2024-11-11T15:38:30.625Z (2 months ago)
- Topics: github-maven-repository, github-releases, github-repository, publish, publishing
- Language: Shell
- Size: 155 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
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
----