Remove secret from gradle.properties, moved it to ENV variables or local.properties
Some checks failed
/ build (17, ubuntu-latest) (push) Failing after 46s

This commit is contained in:
Quentin Legot 2023-06-13 21:02:46 +02:00
parent 81d780f081
commit cfb953e8dc
3 changed files with 6 additions and 3 deletions

1
.gitignore vendored
View File

@ -3,6 +3,7 @@ build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/
local.properties
run/*
**/run

View File

@ -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")))
}
}
}

View File

@ -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