Modify move maven configs from .gradle to .maven directory and make it to json file

This commit is contained in:
2023-04-15 00:55:55 +08:00
parent eeacd4f7d0
commit 3ddd4b3c0d
4 changed files with 17 additions and 18 deletions

View File

@@ -70,8 +70,9 @@ publishing {
name = rootProject.ext.ossName
url = rootProject.ext.ossUrl
credentials {
username = getFileContent("OSSRH_USERNAME")
password = getFileContent("OSSRH_PASSWORD")
def configs = getMavenCredentials(projectDir)
username = configs.username
password = configs.password
}
}
}