diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml new file mode 100644 index 0000000..cd9d3f0 --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,26 @@ +# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle + +name: Java CI with Gradle + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 8 + uses: actions/setup-java@v2 + with: + java-version: '8' + distribution: 'zulu' + cache: gradle + - name: Build with Gradle + run: ./gradlew build diff --git a/brouter-codec/build.gradle b/brouter-codec/build.gradle index a0be311..22faffe 100644 --- a/brouter-codec/build.gradle +++ b/brouter-codec/build.gradle @@ -1,27 +1,5 @@ plugins { id 'java-library' - id 'maven-publish' -} - -publishing { - repositories { - maven { - name = "Github" - url = uri("https://maven.pkg.github.com/afischerdev/brouter") - credentials { - username = findProperty("github.username") - password = findProperty("github.token") - } - } - } - publications { - register("jar", MavenPublication) { - from(components["java"]) - pom { - url.set("https://github.com/afischerdev/brouter.git") - } - } - } } dependencies { diff --git a/brouter-core/build.gradle b/brouter-core/build.gradle index 619bb0e..c96982f 100644 --- a/brouter-core/build.gradle +++ b/brouter-core/build.gradle @@ -1,27 +1,5 @@ plugins { id 'java-library' - id 'maven-publish' -} - -publishing { - repositories { - maven { - name = "Github" - url = uri("https://maven.pkg.github.com/afischerdev/brouter") - credentials { - username = findProperty("github.username") - password = findProperty("github.token") - } - } - } - publications { - register("jar", MavenPublication) { - from(components["java"]) - pom { - url.set("https://github.com/afischerdev/brouter.git") - } - } - } } dependencies {