From af4cfc4d70212503ed1b066c859f2c59b387d78a Mon Sep 17 00:00:00 2001 From: Janne Valkealahti Date: Mon, 12 Jul 2021 10:28:02 +0100 Subject: [PATCH] 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 --- build.gradle | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 5616894d..62538399 100644 --- a/build.gradle +++ b/build.gradle @@ -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 @@ -555,6 +554,10 @@ configure(sampleProjects()) { testCompile("org.junit.jupiter:junit-jupiter-engine") } build.dependsOn bootJar + + artifacts { + archives bootJar + } } project('spring-statemachine-samples-common') {