Skip to content

Commit

Permalink
Release v0.0.8: remove classifier from jar build (#14)
Browse files Browse the repository at this point in the history
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 <classifier>plain</classifier>.

* ci: build jar in PR workflow

Signed-off-by: Stephan Renatus <[email protected]>
  • Loading branch information
srenatus authored Nov 18, 2024
1 parent 8106d86 commit cee8c19
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/01_test_and_lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
distribution: "corretto"
cache: "gradle"
- uses: gradle/actions/setup-gradle@v4
- run: ./gradlew test lint checkstyleMain checkstyleTest
- run: ./gradlew test lint checkstyleMain checkstyleTest jar
- run: ls -al build/libs
- name: Publish Test Report
uses: mikepenz/action-junit-report@v4
if: success() || failure() # always run even if the previous step fails
Expand Down
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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 `<classifier>plain</classifier>`.

## v0.0.7

Expand Down
11 changes: 9 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand All @@ -14,7 +14,6 @@ version = '0.0.8'
java {
sourceCompatibility = '17'
targetCompatibility = '17'

}

configurations {
Expand All @@ -23,6 +22,14 @@ configurations {
}
}

tasks.named("bootJar") {
archiveClassifier = 'boot'
}

tasks.named("jar") {
archiveClassifier = ''
}

repositories {
mavenCentral()
}
Expand Down

0 comments on commit cee8c19

Please sign in to comment.