aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmadornes <amadornes@gmail.com>2018-08-19 02:07:46 +0200
committerAmadornes <amadornes@gmail.com>2018-08-19 02:07:46 +0200
commit044eb3ac8a7b7625de6876f1b3409f6516fad53d (patch)
tree5ded804a4ccb1c6088f2a309a3582dd3b81df4e8
parent1afed3418a0d14854f037f42bab3f57a93439ba8 (diff)
downloadArtifactural-044eb3ac8a7b7625de6876f1b3409f6516fad53d.tar.gz
Artifactural-044eb3ac8a7b7625de6876f1b3409f6516fad53d.tar.bz2
Artifactural-044eb3ac8a7b7625de6876f1b3409f6516fad53d.zip
Attempt at publishing to the Forge maven
-rw-r--r--build.gradle49
1 files changed, 49 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index 3f6f986..7e0b44a 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,4 +1,5 @@
apply plugin: 'java'
+apply plugin: 'maven-publish'
group = 'com.amadornes.artifactural'
version = '1.0.0'
@@ -40,3 +41,51 @@ jar {
from sourceSets.shared.output
from sourceSets.gradlecomp.output
}
+
+publishing {
+ publications {
+ mavenJava(MavenPublication) {
+ from components.java
+ pom {
+ groupId = project.group
+ version = project.version
+ artifactId = project.archivesBaseName
+ name = project.archivesBaseName
+ packaging = 'jar'
+ description = 'A Gradle artifact processing and management tool'
+ url = 'https://github.com/amadornes/Artifactural/'
+
+ scm {
+ url = 'https://github.com/amadornes/Artifactural/'
+ connection = 'scm:git:git://github.com/amadornes/Artifactural.git'
+ developerConnection = 'scm:git:git@github.com:amadornes/Artifactural.git'
+ }
+ issueManagement {
+ system = 'github'
+ url = 'https://github.com/amadornes/Artifactural/issues'
+ }
+
+ licenses {
+ license {
+ name = 'LGPL-2.1'
+ url = 'https://www.gnu.org/licenses/lgpl-2.1.txt'
+ distribution = 'repo'
+ }
+ }
+ }
+ }
+ }
+ repositories {
+ maven {
+ if (project.hasProperty('mavenPassword')) {
+ credentials {
+ username = project.properties.mavenUser
+ password = project.properties.mavenPassword
+ }
+ url 'http://files.minecraftforge.net/maven/manage/upload'
+ } else {
+ url 'file://' + rootProject.file('repo').getAbsolutePath()
+ }
+ }
+ }
+}