Skip to content

Commit

Permalink
Release plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
HyCraftHD committed Mar 6, 2022
1 parent 1063fb8 commit 901dff3
Showing 1 changed file with 47 additions and 1 deletion.
48 changes: 47 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,60 @@ components.java.withVariantsFromConfiguration(configurations.shadowRuntimeElemen
publishing {
repositories {
maven {
url layout.buildDirectory.dir("mavenRepo")
url "https://repo.u-team.info"
credentials {
username = "maven"
password = getValue("maven.password")
}
}
}
publications {
mavenJava(MavenPublication) {
artifactId = project.archivesBaseName

from components.java

pom {
name = project.archivesBaseName
description = project.description
url = "https://github.com/MC-U-Team/CurseGradleUploader"
scm {
url = "https://github.com/MC-U-Team/CurseGradleUploader"
connection = "scm:git:git://github.com/MC-U-Team/CurseGradleUploader.git"
developerConnection = "scm:git:git@github.com:MC-U-Team/CurseGradleUploader.git"
}
issueManagement {
system = "github"
url = "https://github.com/MC-U-Team/CurseGradleUploader/issues"
}
licenses {
license {
name = "MIT"
url = "https://github.com/MC-U-Team/CurseGradleUploader/blob/master/LICENSE"
distribution = "repo"
}
}
developers {
developer {
name = "matthewprenger"
}
developer {
name = "HyCraftHD"
}
}
}
}
}
}

def getValue(name) {
def envVariable = System.getenv(name)
if(envVariable != null) {
return envVariable
} else {
if (project.hasProperty(name)) {
return project.getProperty(name)
}
}
return null;
}

0 comments on commit 901dff3

Please sign in to comment.