summaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle28
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/"
+ }
+ }
+}