From 731d41d80e4fcd9bdc024aafd154b7f343c47f49 Mon Sep 17 00:00:00 2001 From: weisj Date: Tue, 14 Jan 2020 15:12:43 +0100 Subject: [PATCH] Github actions support Signed-off-by: weisj --- .github/workflows/gradle.yml | 2 +- build.gradle | 17 ++++++++++++++--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 43072d6c..c306d6df 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -18,4 +18,4 @@ jobs: deployRepoUrl : ${{ secrets.deployRepoUrl }} deployRepoUsername : ${{ secrets.deployRepoUsername }} deployRepoPassword: ${{ secrets.deployRepoPassword }} - run: ./gradlew build + run: ./gradlew build -DdeployRepoUrl=$deployRepoUrl -DdeployRepoUsername=$deployRepoUsername -DdeployRepoPassword=$1deployRepoPassword diff --git a/build.gradle b/build.gradle index 26e1ee04..82c00421 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,7 @@ import org.gradle.internal.jvm.Jvm + + plugins { id 'com.github.johnrengelman.shadow' version '5.1.0' id 'java' @@ -79,12 +81,21 @@ publishing { } } } +// repositories { +// maven { +// url deployRepoUrl +// credentials { +// username = deployRepoUsername +// password = deployRepoPassword +// } +// } +// } repositories { maven { - url deployRepoUrl + url System.getProperty("deployRepoUrl") credentials { - username = deployRepoUsername - password = deployRepoPassword + username = System.getProperty("deployRepoUsername") + password = System.getProperty("deployRepoPassword") } } }