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