diff --git a/common/build.gradle b/common/build.gradle index f7f1100c9..76c07ae8d 100644 --- a/common/build.gradle +++ b/common/build.gradle @@ -1,3 +1,8 @@ +// Configure bootRun to disable it or point to a main class +bootRun { + enabled = false +} + dependencies { api 'org.springframework.boot:spring-boot-starter-web' api 'org.springframework.boot:spring-boot-starter-thymeleaf' diff --git a/proprietary/build.gradle b/proprietary/build.gradle index aff6559e9..7fdc4bb6c 100644 --- a/proprietary/build.gradle +++ b/proprietary/build.gradle @@ -1,7 +1,9 @@ repositories { maven { url = "https://build.shibboleth.net/maven/releases" } } - +bootRun { + enabled = false +} dependencies { implementation project(':common') diff --git a/stirling-pdf/build.gradle b/stirling-pdf/build.gradle index fe1c351df..18125c49e 100644 --- a/stirling-pdf/build.gradle +++ b/stirling-pdf/build.gradle @@ -103,7 +103,9 @@ sourceSets { } +// Configure regular jar (remove -plain classifier) jar { + archiveClassifier.set("") // Remove the -plain classifier duplicatesStrategy = DuplicatesStrategy.EXCLUDE zip64 = true @@ -126,5 +128,10 @@ jar { } } +// Enable bootJar for this project +bootJar { + enabled = true +} + jar.dependsOn ':common:jar' jar.dependsOn ':proprietary:jar' \ No newline at end of file