From 729bf6f2a752bf16724401eed5f470276fd38a39 Mon Sep 17 00:00:00 2001 From: zaaarf Date: Sat, 20 Jan 2024 19:55:50 +0100 Subject: chore: versioning and archive name --- build.gradle | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 18668a5..622dfbd 100644 --- a/build.gradle +++ b/build.gradle @@ -1,14 +1,28 @@ plugins { - id 'java' + id 'java' + id 'com.palantir.git-version' version '0.13.0' } group = 'foo.zaaarf' -version = '0.1' +archivesBaseName = 'rc' +version = gitVersion().split('-').getAt(0).replace('.dirty', '') + +java { + sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8 + withSourcesJar() + withJavadocJar() +} + +javadoc { + options { + links 'https://docs.spring.io/spring-framework/docs/5.3.31/javadoc-api/' + } +} repositories { - mavenCentral() + mavenCentral() } dependencies { - implementation 'org.springframework:spring-web:5.3.31' + implementation 'org.springframework:spring-web:5.3.31' } \ No newline at end of file -- cgit v1.2.3-56-ga3b1