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") } } }