Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle generates different Uber jar than Maven [SPR-14348] #18920

Closed
spring-projects-issues opened this issue Jun 9, 2016 · 2 comments
Closed

Gradle generates different Uber jar than Maven [SPR-14348] #18920

spring-projects-issues opened this issue Jun 9, 2016 · 2 comments
Assignees
Labels
status: invalid

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Jun 9, 2016

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

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Jun 9, 2016

Juergen Hoeller commented

This is just the issue tracker for Spring Framework, not for Spring Boot. Please report your issue over here: https://github.com/spring-projects/spring-boot/issues

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Jun 9, 2016

Tom Palarz commented

Ok. Created spring-projects/spring-boot#6135 .

@spring-projects-issues spring-projects-issues added type: bug status: invalid labels Jan 11, 2019
@spring-projects-issues spring-projects-issues removed the type: bug label Jan 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: invalid
Projects
None yet
Development

No branches or pull requests

2 participants