Skip to content

Commit af4cfc4

Browse files
committed
Fix samples publish
- 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
1 parent 0e489a8 commit af4cfc4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build.gradle

+4-1
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,6 @@ project('spring-statemachine-starter') {
534534

535535
configure(sampleProjects()) {
536536
apply plugin: 'org.springframework.boot'
537-
// as samples are not published, we can use jdk8
538537
compileJava {
539538
sourceCompatibility = 1.8
540539
targetCompatibility = 1.8
@@ -555,6 +554,10 @@ configure(sampleProjects()) {
555554
testCompile("org.junit.jupiter:junit-jupiter-engine")
556555
}
557556
build.dependsOn bootJar
557+
558+
artifacts {
559+
archives bootJar
560+
}
558561
}
559562

560563
project('spring-statemachine-samples-common') {

0 commit comments

Comments
 (0)