I appreciate the response. But since I was trying to solve the problem using Gradle, and wasn’t successful initially, I posted the question here. It turns out that neither running the application from a Run Configuration in IntelliJ, or starting it with ./gradlew bootRun creates the fat jar. They bo… Answer from hmartin on discuss.gradle.org
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 206406069-Gradle-Spring-Boot-classpath-issues
Gradle + Spring Boot classpath issues – IDEs Support (IntelliJ Platform) | JetBrains
If you just switched to IntelliJ 16, you have to refresh the project from gradle (using "Refresh" button on gradle tool window). Then you need to set right classpath of the Spring Boot application via combobox "Use classpath of module".
🌐
Spring
docs.spring.io › spring-boot › docs › 1.0.1.RELEASE › reference › htmlsingle
Spring Boot Reference Guide
Simply include the appropriate spring-boot-*.jar files on your classpath. Spring Boot does not require any special tools integration, so you can use any IDE or text editor; and there is nothing special about a Spring Boot application, so you can run and debug as you would any other Java program. Although you could just copy Spring Boot jars, we generally recommend that you use a build tool that supports dependency management (such as Maven or Gradle).
🌐
Spring
docs.spring.io › spring-boot › docs › 1.4.2.RELEASE › reference › html › build-tool-plugins-gradle-plugin.html
64. Spring Boot Gradle plugin
Making static classpath resources reloadable means that bootRun does not use the output of the processResources task, i.e., when invoked using bootRun, your application will use the resources in their unprocessed form. The gradle plugin automatically extends your build script DSL with a springBoot ...
🌐
Spring
docs.spring.io › spring-boot › docs › 1.0.1.RELEASE › reference › html › build-tool-plugins-gradle-plugin.html
50. Spring Boot Gradle plugin
To run a project in place without ... the live application, which can be helpful at development time. The gradle plugin automatically extends your build script DSL with a springBoot element for configuration....
🌐
Spring
docs.spring.io › spring-boot › docs › current › gradle-plugin › reference › htmlsingle
Spring Boot Gradle Plugin Reference Guide
When Gradle’s java plugin is ... jar will contain everything on the runtime classpath of the main source set; classes are packaged in BOOT-INF/classes and jars are packaged in BOOT-INF/lib...
🌐
Gradle
discuss.gradle.org › help/discuss
Adding a resource directory to the runtime class path and excluding it from the jar - Help/Discuss - Gradle Forums
December 12, 2024 - Greetings. I have a Java/Spring Boot project where I need to decrypt some sops encrypted .env files when the app starts up. The encrypted files are checked into the BitBucket repo, and I need to 1) use the Java class path to find the appropriate file, 2) decrypt it when the app starts using a fixed directory structure/naming convention, and 3) make sure that neither the encrypted or decrypted files are part of the Jar file that gets built in the project.
🌐
Gradle
discuss.gradle.org › help/discuss
Spring boot gradle plugin - bootJar with main & test sources and classpath - Help/Discuss - Gradle Forums
October 25, 2019 - Hi All, I am trying to build the bootJar with main source, test source, main runtime classpath and test runtime classpath using spring-boot-gradle-plugin:2.1.3.RELEASE. bootJar { baseName=project.repository launchScript() from sourceSets.main.output from sourceSets.test.output from("${proj...
🌐
Spring
docs.spring.io › spring-boot › gradle-plugin › running.html
Running your Application with Gradle :: Spring Boot
The bootRun task is an instance of BootRun which is a JavaExec subclass. As such, all of the usual configuration options for executing a Java process in Gradle are available to you. The task is automatically configured to use the runtime classpath of the main source set.
Find elsewhere
🌐
GitHub
github.com › gradle › gradle › issues › 20286
Deterministic ordering in classpath.idx based on Gradle dependencies order no longer works · Issue #20286 · gradle/gradle
March 25, 2022 - Expected Behavior Runtime classpath should match the order of declarations in the dependencies{} section in build.gradle: Gradle creates a runtime classpath. Spring Boot uses the runtime classpath ...
Author   gradle
🌐
Spring
docs.spring.io › spring-boot › docs › 1.5.2.RELEASE › reference › html › build-tool-plugins-gradle-plugin.html
67. Spring Boot Gradle plugin
Making static classpath resources reloadable means that bootRun does not use the output of the processResources task, i.e., when invoked using bootRun, your application will use the resources in their unprocessed form. The gradle plugin automatically extends your build script DSL with a springBoot ...
🌐
CodingTechRoom
codingtechroom.com › question › spring-boot-classpath-configuration
How to Configure the Classpath in Spring Boot Applications? - CodingTechRoom
Spring Boot simplifies classpath management by handling dependencies defined in your `pom.xml` (for Maven) or `build.gradle` (for Gradle).
🌐
Gradle
plugins.gradle.org › plugin › org.springframework.boot
Gradle - Plugin: org.springframework.boot
April 23, 2026 - plugins { id("org.springframework.boot") } The legacy method of plugin application. See the relevant documentation for more information. buildscript { repositories { gradlePluginPortal() } dependencies { classpath("org.springframework.boot:org.springframework.boot.gradle.plugin:4.1.0") } } apply(plugin = "org.springframework.boot") Applying plugins to all subprojects .
🌐
Spring
docs.spring.io › spring-boot › docs › 3.2.2 › reference › html › executable-jar.html
The Executable Jar Format
January 19, 2024 - The classpath index file can be provided in BOOT-INF/classpath.idx. Typically, it is generated automatically by Spring Boot’s Maven and Gradle build plugins. It provides a list of jar names (including the directory) in the order that they should be added to the classpath.
🌐
GitHub
gist.github.com › ahunigel › 0c6c3a6218a84ca477a2bb4b03df3293
spring gradle bootRun classpath too long · GitHub
spring gradle bootRun classpath too long · Raw · build.gradle · This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
🌐
JetBrains
intellij-support.jetbrains.com › hc › en-us › community › posts › 115000532584-Cannot-start-gradle-built-Spring-Boot-app-in-IDEA-due-to-classpath-configuration-limitation
Cannot start gradle built Spring Boot app in IDEA due to classpath configuration limitation – IDEs Support (IntelliJ Platform) | JetBrains
These are the default gradle build output directories. build/classes/kotlin/main for the main class files. build/classes/kotlin/test for the test class files. build/resources/main for the main resource files. This is where application.properties resides after a build. I configured my Spring Boot run configuration to use the main module for its classpath.
🌐
nexocode
nexocode.com › blog › posts › spring-dependencies-in-gradle
Spring Dependencies in Gradle Can Be Tricky - nexocode
January 13, 2020 - Spring is the most popular Java web framework for many years and Gradle has an established position as a build tool. You might expect it’s easy to find instructions on how to set up those two together — yet the Internet is filled with advice that will get you into trouble. The official Spring documentation does not make the situation any better in this case. Using Spring in your applications typically means your classpath contains not only Spring Framework itself, but also other Spring projects like Spring Security plus Spring dependencies that are independent libraries.
🌐
JetBrains
youtrack.jetbrains.com › issue › IDEA-276084
not found "build/resources/main" in the classpath when run ...
August 16, 2021 - {{ (>_<) }} This version of your browser is not supported. Try upgrading to the latest stable version. Something went seriously wrong