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
|
!gradle/wrapper/gradle-wrapper.jar
|
||||||
!**/src/main/**/build/
|
!**/src/main/**/build/
|
||||||
!**/src/test/**/build/
|
!**/src/test/**/build/
|
||||||
|
local.properties
|
||||||
|
|
||||||
run/*
|
run/*
|
||||||
**/run
|
**/run
|
||||||
|
@ -2,6 +2,9 @@ plugins {
|
|||||||
id 'fabric-loom' version '1.2-SNAPSHOT' apply false
|
id 'fabric-loom' version '1.2-SNAPSHOT' apply false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Properties local = new Properties()
|
||||||
|
local.load(project.rootProject.file('local.properties').newDataInputStream())
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
apply plugin: 'maven-publish'
|
apply plugin: 'maven-publish'
|
||||||
apply plugin: 'fabric-loom'
|
apply plugin: 'fabric-loom'
|
||||||
@ -39,8 +42,8 @@ allprojects {
|
|||||||
name 'altarik'
|
name 'altarik'
|
||||||
url 'https://repo.altarik.fr/'.concat(project.version.endsWith('SNAPSHOT') ? 'snapshots/' : 'releases/')
|
url 'https://repo.altarik.fr/'.concat(project.version.endsWith('SNAPSHOT') ? 'snapshots/' : 'releases/')
|
||||||
credentials {
|
credentials {
|
||||||
username = project.repo_username
|
username = Objects.requireNonNull(System.getProperty("REPO_USERNAME", local.getProperty("repo_username")))
|
||||||
password = project.repo_password
|
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_group=fr.altarik.toolbox
|
||||||
maven_version=4.1.0-SNAPSHOT
|
maven_version=4.1.0-SNAPSHOT
|
||||||
repo_username=Altarik
|
repo_username=Altarik
|
||||||
repo_password=REPO_PASSWORD
|
|
||||||
|
Loading…
Reference in New Issue
Block a user