Spring boot application as dependency in another gradle project - spring-boot

How can i add a spring boot built using gradle as a dependecy to another spring boot application ?

Related

IntelliJ ultimate edition- spring boot plug-in missing

I have IntelliJ ultimate edition. I don’t see spring boot plug-in . When I search for spring boot I see spring boot assistant. Is Spring boot assistant plug-in same as spring boot plug-in?
The Spring Boot plugin:
Integrates the wizard found at https://start.spring.io/ (to generate Spring projects) into the IDE.
Spring Boot Assistant:
Adds auto-completion support for Spring Boot configuration files (application.yml, etc.).

How does Spring Boot 2.3.X Maven Project use Parent POM?

I got to know that Spring Boot 2.3.X is using Gradle.
If so, how does a Maven-based Spring Boot 2.3.X project uses a parent pom?
Spring Boot 2.3 uses Gradle for its own build but applications using Spring Boot can continue to use Maven (or any other build system they were using before). Spring Boot 2.3 publishes the same artifacts (jar files, pom files, etc) as Spring Boot 2.2 so a Maven-based project can continue to use spring-boot-starter-parent as its parent pom.
When you use spring initialiser, you can find the option to build with gradle. All the parent dependencies will be automatically added by the initialiser into the build.gradle file.
Maven based pom.xml shall also be created using same spring initializer by choosing appropriate properties in the initializer page.

Spring Boot version of embedded H2 database

Where can I find versions of embedded components in versions of Spring Boot e.g. embedded H2 database in Spring Boot 1.5.9-RELEASE.
You can see all versions of sub components of Spring Boot in Spring Boot Dependecies module :
spring-boot-dependencies module pom.xml version 1.5.X
H2 version is <h2.version>1.4.196</h2.version>

Spring Boot with maven war dependancy

I have Spring Boot web project with dependency to maven overlay war file which is also Spring web project. War is included in pom.xml.
How can I deploy that war along with Spring Boot application so I can use rest endpoints that belong to war file. I'm trying to start application from STS simply by running it as Java application. While application is starting, I can see only URLs that belong to Spring Boot project, but URLs that belong to war file are missing.
I believe Spring boot does not support that. See issue here
Try building a war and deploying it into a container.

Liquibase Not Updating Spring Boot Web Application

I recently deployed a spring boot 1.4.0 web application and I noticed that liquibase did not perform an update. I have no problem with my spring boot 1.3.2 web application.
Was something introduced to Spring Boot 1.4.0 that would cause liquibase to not execute?
Tracked down the issue to liquibase-core package was not included in order to the Spring Boot autoconfigurations to execute.
It's not entirely clear why the liquibase-gradle-plugin did not include the required package.

Resources