Browse Source

Github actions support

Signed-off-by: weisj <weisj@arcor.de>
pull/15/head
weisj 5 years ago
parent
commit
731d41d80e
  1. 2
      .github/workflows/gradle.yml
  2. 17
      build.gradle

2
.github/workflows/gradle.yml

@ -18,4 +18,4 @@ jobs:
deployRepoUrl : ${{ secrets.deployRepoUrl }} deployRepoUrl : ${{ secrets.deployRepoUrl }}
deployRepoUsername : ${{ secrets.deployRepoUsername }} deployRepoUsername : ${{ secrets.deployRepoUsername }}
deployRepoPassword: ${{ secrets.deployRepoPassword }} deployRepoPassword: ${{ secrets.deployRepoPassword }}
run: ./gradlew build run: ./gradlew build -DdeployRepoUrl=$deployRepoUrl -DdeployRepoUsername=$deployRepoUsername -DdeployRepoPassword=$1deployRepoPassword

17
build.gradle

@ -1,5 +1,7 @@
import org.gradle.internal.jvm.Jvm import org.gradle.internal.jvm.Jvm
plugins { plugins {
id 'com.github.johnrengelman.shadow' version '5.1.0' id 'com.github.johnrengelman.shadow' version '5.1.0'
id 'java' id 'java'
@ -79,12 +81,21 @@ publishing {
} }
} }
} }
// repositories {
// maven {
// url deployRepoUrl
// credentials {
// username = deployRepoUsername
// password = deployRepoPassword
// }
// }
// }
repositories { repositories {
maven { maven {
url deployRepoUrl url System.getProperty("deployRepoUrl")
credentials { credentials {
username = deployRepoUsername username = System.getProperty("deployRepoUsername")
password = deployRepoPassword password = System.getProperty("deployRepoPassword")
} }
} }
} }

Loading…
Cancel
Save