From 74aa61e914ead4c471408b596a4d4e09a1662ed1 Mon Sep 17 00:00:00 2001 From: LMBishop <13875753+LMBishop@users.noreply.github.com> Date: Mon, 21 Jun 2021 12:27:45 +0100 Subject: [ci skip] Javadoc --- build.gradle | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'build.gradle') 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/" + } + } +} -- cgit v1.2.3-70-g09d2