I've been building simple web services using Spring Boot with both the Maven and Gradle plugins and I'm seeing differences between the two. I am working with Spring Boot 1.3.5.RELEASE .
The primary difference is that the gradle plugin does not appear to create a jar in the format from the reference doc: http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#executable-jar . There is no BOOT-INF folder in the jar created and the META-INF/MANIFEST.MF doesn't have entries for "Spring-Boot-Classes" or "Spring-Boot-Libs" like the the file would if it were generated by the maven plugin.
Tom Palarz opened SPR-14348 and commented
Hi,
I've been building simple web services using Spring Boot with both the Maven and Gradle plugins and I'm seeing differences between the two. I am working with Spring Boot 1.3.5.RELEASE .
The primary difference is that the gradle plugin does not appear to create a jar in the format from the reference doc: http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#executable-jar . There is no BOOT-INF folder in the jar created and the META-INF/MANIFEST.MF doesn't have entries for "Spring-Boot-Classes" or "Spring-Boot-Libs" like the the file would if it were generated by the maven plugin.
I'm using gradle version 2.13 and Java jdk 8.
My build.gradle is as follows:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.3.5.RELEASE")
}
}
apply plugin: 'java'
apply plugin: 'spring-boot'
jar {
baseName = 'test-app'
version = '0.1.0'
}
repositories {
mavenCentral()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
compile("org.springframework.boot:spring-boot-starter-web")
}
task wrapper(type: Wrapper) {
gradleVersion = '2.3'
}
Reference URL: http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#executable-jar
The text was updated successfully, but these errors were encountered: