diff options
-rw-r--r-- | build.gradle | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/build.gradle b/build.gradle index 2b3c16b..ce1dad4 100644 --- a/build.gradle +++ b/build.gradle @@ -4,11 +4,10 @@ plugins { } archivesBaseName = 'mapper' -version = gitVersion() +version = gitVersion().split('-').getAt(0).replace('dirty', '') java { - sourceCompatibility = JavaVersion.VERSION_1_8 - targetCompatibility = JavaVersion.VERSION_1_8 + sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8 withSourcesJar() withJavadocJar() } @@ -22,8 +21,4 @@ dependencies { implementation 'ftbsc:lll:0.4.2' implementation 'com.google.auto.service:auto-service-annotations:1.1.0' annotationProcessor 'com.google.auto.service:auto-service:1.1.0' -} - -jar { - archiveFileName = "${jar.archiveBaseName.get()}-${project.version.split('-')[0]}.${jar.archiveExtension.get()}" -} +}
\ No newline at end of file |