diff options
| author | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2021-06-21 12:27:45 +0100 |
|---|---|---|
| committer | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2021-06-21 12:27:45 +0100 |
| commit | 74aa61e914ead4c471408b596a4d4e09a1662ed1 (patch) | |
| tree | 8ca813fe56255e6189aca4266de427cc2117ca35 /build.gradle | |
| parent | d51d016813b33ad4b807788978a1d21b0a5ae638 (diff) | |
[ci skip] Javadoc
Diffstat (limited to 'build.gradle')
| -rw-r--r-- | build.gradle | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle index 85c24169..9ff25a9b 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,7 @@ plugins { id 'java' id 'com.github.johnrengelman.shadow' version '7.0.0' + id 'maven-publish' } defaultTasks 'allJar' @@ -26,3 +27,30 @@ task allJar( type: Jar, dependsOn: subprojects.tasks['build'] ) { artifacts { archives allJar } + +publishing { + publications { + maven(MavenPublication) { + groupId = 'com.leonardobishop' + artifactId = 'quests' + version = project.version + + artifact allJar + pom.withXml { + asNode().dependencies.dependency.each { dep -> + dep.parent().remove(dep) + } + } + } + } + + repositories { + maven { + credentials { + username = project.findProperty('mavenUser') ?: System.getenv('MAVEN_USER') + password = project.findProperty('mavenPassword') ?: System.getenv('MAVEN_PASSWORD') + } + url = "https://repo.leonardobishop.com/releases/" + } + } +} |
