Skip to content

Commit

Permalink
Fix samples publish
Browse files Browse the repository at this point in the history
- When going from boot 2.4.x to 2.5.x build didn't get
  fatjar anymore, instead only "plain" jar were published.
- This same thing happened with local install and
  artifactory publish.
- Define bootJar as artifact in sample projects.
- Fixes #994
  • Loading branch information
jvalkeal committed Jul 12, 2021
1 parent 0e489a8 commit af4cfc4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,6 @@ project('spring-statemachine-starter') {

configure(sampleProjects()) {
apply plugin: 'org.springframework.boot'
// as samples are not published, we can use jdk8
compileJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
Expand All @@ -555,6 +554,10 @@ configure(sampleProjects()) {
testCompile("org.junit.jupiter:junit-jupiter-engine")
}
build.dependsOn bootJar

artifacts {
archives bootJar
}
}

project('spring-statemachine-samples-common') {
Expand Down

0 comments on commit af4cfc4

Please sign in to comment.