Integrate-angular-spring-boot-gradle

Once you have Angular application and if you need to integrate that with spring boot application, you could do two ways.

First

Trigger the ng build -prod files and convert that to war file using Gradle build like below.

apply plugin: 'java'
apply plugin: 'war'


group 'ae.betterway.com'
version '1.0-SNAPSHOT'

repositories {
mavenCentral()
}

war {

from('dist/WebApp') {
into('/')
}
}

The above require manual deploying prod files which are not good when during CI CD pipeline