diff options
author | Juuz <6596629+Juuxel@users.noreply.github.com> | 2023-09-25 20:58:47 +0300 |
---|---|---|
committer | Juuz <6596629+Juuxel@users.noreply.github.com> | 2023-09-25 20:58:47 +0300 |
commit | 2ed586c2a8e9d1e0df1ff5d65ba7da6f626cb048 (patch) | |
tree | 9da302dacc411b8d0d0f8dcd4b91f37165503718 | |
parent | 074dda85e3a9fc000764492c07f77d54603d84f9 (diff) | |
download | LibGui-2ed586c2a8e9d1e0df1ff5d65ba7da6f626cb048.tar.gz LibGui-2ed586c2a8e9d1e0df1ff5d65ba7da6f626cb048.tar.bz2 LibGui-2ed586c2a8e9d1e0df1ff5d65ba7da6f626cb048.zip |
Update publishing details to be more generic
-rw-r--r-- | build.gradle | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/build.gradle b/build.gradle index 0234a4d..24bc15c 100644 --- a/build.gradle +++ b/build.gradle @@ -5,10 +5,6 @@ plugins { id 'checkstyle' } -if(rootProject.file('private.gradle').exists()) { //Publishing details - apply from: 'private.gradle' -} - archivesBaseName = project.archives_base_name version = "$project.mod_version+$project.minecraft_version" group = project.maven_group @@ -187,16 +183,15 @@ publishing { // select the repositories you want to publish to repositories { - if (project.hasProperty("artifactoryUsername")) { + def env = System.getenv() + if (env.MAVEN_URL) { maven { - url = "https://server.bbkr.space/artifactory/libs-release/" + url = env.MAVEN_URL credentials { - username = artifactoryUsername - password = artifactoryPassword + username = env.MAVEN_USERNAME + password = env.MAVEN_PASSWORD } } - } else { - println "Cannot configure artifactory; please define ext.artifactoryUsername and ext.artifactoryPassword before running publish" } } } |