-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #87 from rwth-acis/releases/v1.1.1
Releases/v1.1.1 (Gradle & GitHub Actions)
- Loading branch information
Showing
42 changed files
with
1,351 additions
and
14,726 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# This workflow will build a Java project with Gradle | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | ||
|
||
name: Java CI with Gradle | ||
|
||
# Triggers the workflow on push or pull request events (on every branch) | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 14 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 14 | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Build with Gradle | ||
run: ./gradlew build | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: las2peer | ||
path: | | ||
core/export/jars/las2peer-*.jar | ||
restmapper/export/jars/las2peer-rest-mapper*.jar | ||
webconnector/export/jars/las2peer-web-connector*.jar | ||
bundle/export/jars/las2peer-bundle-*.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# This workflow runs the deployJavadoc gradle task and then deploys the javadoc files to GitHub pages. | ||
|
||
name: Deploy Javadoc | ||
|
||
# Triggers the workflow on push to master | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build-and-deploy-javadoc: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 14 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 14 | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Build with Gradle | ||
run: ./gradlew deployJavadoc | ||
- name: Deploy | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages # deploy javadoc on gh-pages branch | ||
folder: javadoc # folder that should be deployed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Publish artifacts as release to archiva | ||
|
||
# Only run the workflow if it is started manually. | ||
on: workflow_dispatch | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 14 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 14 | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Build with Gradle and publish as release to archiva | ||
env: | ||
# set environment variable for release | ||
LAS2PEER_RELEASE: "yes" | ||
ARCHIVA_USERNAME: ${{ secrets.ARCHIVA_USERNAME }} | ||
ARCHIVA_PASSWORD: ${{ secrets.ARCHIVA_PASSWORD }} | ||
run: ./gradlew publish | ||
- name: Upload artifacts on GitHub (attached to this workflow) | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: las2peer | ||
path: | | ||
core/export/jars/las2peer-*.jar | ||
restmapper/export/jars/las2peer-rest-mapper*.jar | ||
webconnector/export/jars/las2peer-web-connector*.jar | ||
bundle/export/jars/las2peer-bundle-*.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Publish artifacts as snapshot to archiva | ||
|
||
# Run workflow on publish to develop branch automatically. | ||
# Also allow to run the workflow manually on every other branch. | ||
on: | ||
push: | ||
branches: | ||
- develop | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 14 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 14 | ||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
- name: Build with Gradle and publish as snapshot to archiva | ||
env: | ||
ARCHIVA_USERNAME: ${{ secrets.ARCHIVA_USERNAME }} | ||
ARCHIVA_PASSWORD: ${{ secrets.ARCHIVA_PASSWORD }} | ||
run: ./gradlew publish | ||
- name: Upload artifacts on GitHub (attached to this workflow) | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: las2peer | ||
path: | | ||
core/export/jars/las2peer-*.jar | ||
restmapper/export/jars/las2peer-rest-mapper*.jar | ||
webconnector/export/jars/las2peer-web-connector*.jar | ||
bundle/export/jars/las2peer-bundle-*.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,7 @@ ivy.jar | |
*.secret | ||
archiva_credentials.xml | ||
/javadoc/ | ||
.gradle | ||
.classpath | ||
.project | ||
.settings |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// build all and publish locally | ||
task buildOnly { | ||
dependsOn ":core:publishCorePublicationToMavenLocal" | ||
dependsOn ":restmapper:publishRestmapperPublicationToMavenLocal" | ||
dependsOn ":webconnector:publishWebconnectorPublicationToMavenLocal" | ||
dependsOn ":bundle:publishBundlePublicationToMavenLocal" | ||
} | ||
|
||
// build all (without bundle) and publish locally | ||
task buildOnlyNoBundle { | ||
dependsOn ":core:publishCorePublicationToMavenLocal" | ||
dependsOn ":restmapper:publishRestmapperPublicationToMavenLocal" | ||
dependsOn ":webconnector:publishWebconnectorPublicationToMavenLocal" | ||
} | ||
|
||
// copy javadoc of all components into one single folder | ||
task deployJavadoc { | ||
dependsOn ":core:javadoc" | ||
dependsOn ":restmapper:javadoc" | ||
dependsOn ":webconnector:javadoc" | ||
dependsOn "copyCoreDocs" | ||
dependsOn "copyRestmapperDocs" | ||
dependsOn "copyWebconnectorDocs" | ||
} | ||
|
||
task copyCoreDocs(type: Copy) { | ||
dependsOn ":core:javadoc" | ||
from "core/export/javadoc/" | ||
into "javadoc/core" | ||
} | ||
|
||
task copyRestmapperDocs(type: Copy) { | ||
dependsOn ":restmapper:javadoc" | ||
from "restmapper/export/javadoc/" | ||
into "javadoc/restmapper" | ||
} | ||
|
||
task copyWebconnectorDocs(type: Copy) { | ||
dependsOn ":webconnector:javadoc" | ||
from "webconnector/export/javadoc/" | ||
into "javadoc/webconnector" | ||
} |
Oops, something went wrong.