Spring Boot 1.5.x Gradle Plugin executable jar

929 Views Asked by At

I have a spring boot project using Gradle that is Spring Boot 1.5.7, when I build the executable jar the packaged jar file contains all my resources, application classes and manifest information for pointing to the main class. BUT it doesn't seem to include any of the dependencies that I have declared as compiled classes inside the fat jar. I've not had this problem when running Spring Boot 2.x projects.

Here's a simplified version of the build.gradle

apply plugin: 'maven'

buildscript {
    ext {
        springBootVersion = '1.5.7.RELEASE'
    }

    repositories {
        maven {
            url "$ARTIFACTORY_URL/remote"
            credentials {
                username = "${artifactory_user}"
                password = "${artifactory_password}"
            }
        }
    }

    dependencies {
        classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
    }
}



apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'

dependencies {
    testImplementation('org.springframework.boot:spring-boot-starter-test')
    implementation('org.springframework.boot:spring-boot-starter-web')
}

What could be the issue?

0

There are 0 best solutions below