chore: fixed gitversion name mangling and added javadoc linking

This commit is contained in:
zaaarf 2023-09-09 00:56:13 +02:00
parent 773880f323
commit 0540858af5
No known key found for this signature in database
GPG key ID: 102E445F4C3F829B

View file

@ -4,7 +4,7 @@ plugins {
}
archivesBaseName = 'processor'
version = gitVersion()
version = gitVersion().split('-').getAt(0).replace('dirty', '')
java {
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
@ -12,6 +12,13 @@ java {
withJavadocJar()
}
javadoc {
options {
links 'https://geb.fantabos.co/javadoc/geb/'
links 'https://square.github.io/javapoet/javadoc/javapoet/'
}
}
repositories {
mavenCentral()
maven { url 'https://maven.fantabos.co' }
@ -21,8 +28,3 @@ dependencies {
implementation 'ftbsc:geb:0.2.0'
implementation 'com.squareup:javapoet:1.13.0'
}
jar {
from sourceSets.main.output
archiveFileName = "${jar.archiveBaseName.get()}-${project.version.split('-')[0]}.${jar.archiveExtension.get()}"
}