aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2021-02-07 01:25:46 +0800
committershedaniel <daniel@shedaniel.me>2021-02-07 01:26:05 +0800
commitc494ff655e585a07d11a79b64bb48bf652a97707 (patch)
tree906c8ea34046f48e591f4327a9e1aba1ada0c78c /build.gradle
parent5c01aa39a5f93790cdd0521028c9c05c5ba818b7 (diff)
downloadRoughlyEnoughItems-c494ff655e585a07d11a79b64bb48bf652a97707.tar.gz
RoughlyEnoughItems-c494ff655e585a07d11a79b64bb48bf652a97707.tar.bz2
RoughlyEnoughItems-c494ff655e585a07d11a79b64bb48bf652a97707.zip
Switch to my maven
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'build.gradle')
-rwxr-xr-xbuild.gradle13
1 files changed, 8 insertions, 5 deletions
diff --git a/build.gradle b/build.gradle
index 26389fadb..d5c26eaa3 100755
--- a/build.gradle
+++ b/build.gradle
@@ -29,7 +29,10 @@ import java.text.SimpleDateFormat
import java.util.function.Consumer
archivesBaseName = "RoughlyEnoughItems"
-version = project.mod_version
+
+def runNumber = (System.getenv("GITHUB_RUN_NUMBER") == null ? "9999" : System.getenv("GITHUB_RUN_NUMBER"))
+version = rootProject.base_version + "." + runNumber
+
group = "me.shedaniel"
allprojects {
@@ -173,12 +176,12 @@ subprojects {
}
repositories {
- if (project.hasProperty('danielshe_pass')) {
+ if (System.getenv("MAVEN_PASS") != null) {
maven {
- url = "http://deploy.modmuss50.me/"
+ url = "https://deploy.shedaniel.me/"
credentials {
- username = "danielshe"
- password = project.getProperty('danielshe_pass')
+ username = "shedaniel"
+ password = System.getenv("MAVEN_PASS")
}
}
}