From 0f3ee8ba9452016ea9c8651028eec5d7a59a5416 Mon Sep 17 00:00:00 2001 From: Stephan Renatus Date: Mon, 18 Nov 2024 11:57:00 +0100 Subject: [PATCH] Release v0.0.8: remove classifier from jar build Signed-off-by: Stephan Renatus --- CHANGELOG.md | 6 +++++- build.gradle | 11 +++++++++-- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 80b570c..df5fbe3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # OPA Spring Boot SDK Changelog -## v0.0.8 (unreleased) +## v0.0.8 + +* Change `build.gradle` to omit the `plain` classifier from the jar file it builds. This should make the default + snippet show on https://central.sonatype.com/artifact/com.styra.opa/springboot _work as is_. Before, you would + have to add `plain`. ## v0.0.7 diff --git a/build.gradle b/build.gradle index 88f0fba..b1985c0 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ plugins { id 'java-library' id 'maven-publish' id 'signing' - id 'org.springframework.boot' version '3.3.2' + id 'org.springframework.boot' version '3.3.5' id 'io.spring.dependency-management' version '1.1.6' id("checkstyle") } @@ -14,7 +14,6 @@ version = '0.0.8' java { sourceCompatibility = '17' targetCompatibility = '17' - } configurations { @@ -23,6 +22,14 @@ configurations { } } +tasks.named("bootJar") { + archiveClassifier = 'boot' +} + +tasks.named("jar") { + archiveClassifier = '' +} + repositories { mavenCentral() }