aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle16
1 files changed, 13 insertions, 3 deletions
diff --git a/build.gradle b/build.gradle
index 7064a38..9809906 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,5 +1,7 @@
-apply plugin: 'java'
-apply plugin: 'maven'
+plugins {
+ id 'java'
+ id 'maven-publish'
+}
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
@@ -16,5 +18,13 @@ dependencies {
}
jar {
- baseName 'remap'
+ archiveBaseName.set('remap')
+}
+
+publishing {
+ publications {
+ maven(MavenPublication) {
+ from components.java
+ }
+ }
}