Remove secret from gradle.properties, moved it to ENV variables or local.properties
Some checks failed
/ build (17, ubuntu-latest) (push) Failing after 46s
Some checks failed
/ build (17, ubuntu-latest) (push) Failing after 46s
This commit is contained in:
parent
81d780f081
commit
cfb953e8dc
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,6 +3,7 @@ build/
|
||||
!gradle/wrapper/gradle-wrapper.jar
|
||||
!**/src/main/**/build/
|
||||
!**/src/test/**/build/
|
||||
local.properties
|
||||
|
||||
run/*
|
||||
**/run
|
||||
|
@ -2,6 +2,9 @@ plugins {
|
||||
id 'fabric-loom' version '1.2-SNAPSHOT' apply false
|
||||
}
|
||||
|
||||
Properties local = new Properties()
|
||||
local.load(project.rootProject.file('local.properties').newDataInputStream())
|
||||
|
||||
allprojects {
|
||||
apply plugin: 'maven-publish'
|
||||
apply plugin: 'fabric-loom'
|
||||
@ -39,8 +42,8 @@ allprojects {
|
||||
name 'altarik'
|
||||
url 'https://repo.altarik.fr/'.concat(project.version.endsWith('SNAPSHOT') ? 'snapshots/' : 'releases/')
|
||||
credentials {
|
||||
username = project.repo_username
|
||||
password = project.repo_password
|
||||
username = Objects.requireNonNull(System.getProperty("REPO_USERNAME", local.getProperty("repo_username")))
|
||||
password = Objects.requireNonNull(System.getProperty("REPO_PASSWORD", local.getProperty("repo_password")))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,4 +10,3 @@ fabric_version=0.75.1+1.19.3
|
||||
maven_group=fr.altarik.toolbox
|
||||
maven_version=4.1.0-SNAPSHOT
|
||||
repo_username=Altarik
|
||||
repo_password=REPO_PASSWORD
|
||||
|
Loading…
Reference in New Issue
Block a user