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 }}
deployRepoUsername : ${{ secrets.deployRepoUsername }}
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
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")
}
}
}

Loading…
Cancel
Save