diff options
| author | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2021-06-10 14:01:52 +0100 |
|---|---|---|
| committer | LMBishop <13875753+LMBishop@users.noreply.github.com> | 2021-06-10 14:01:52 +0100 |
| commit | fa7693528fd5fdafa81ffd17841353109d24a63f (patch) | |
| tree | d655d081b2079a537a3c3d74644b1593dbdb2167 /build.gradle | |
| parent | 55c618a2c5ec1be5e9cbfa2d885b970734fb320d (diff) | |
Add publishing
Diffstat (limited to 'build.gradle')
| -rw-r--r-- | build.gradle | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/build.gradle b/build.gradle index fa087695..a4cf2ad9 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,7 @@ plugins { id 'java' id 'com.github.johnrengelman.shadow' version '6.1.0' + id 'maven-publish' } group = 'com.leonardobishop' @@ -98,7 +99,29 @@ shadowJar { archiveClassifier.set('') } -jar.enabled = false +publishing { + publications { + maven(MavenPublication) { + groupId = 'com.leonardobishop' + artifactId = 'quests' + version = project.version + + from components.java + } + } + + 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/" + } + } +} + +jar.enabled = true tasks.build { dependsOn(tasks.shadowJar) |
