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

spring-boot 1.4.2 causes deprecation warning with Gradle 3.3-rc-1 #7734

Closed
huxi opened this issue Dec 22, 2016 · 4 comments
Closed

spring-boot 1.4.2 causes deprecation warning with Gradle 3.3-rc-1 #7734

huxi opened this issue Dec 22, 2016 · 4 comments
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@huxi
Copy link

huxi commented Dec 22, 2016

The ProjectDependency.getProjectConfiguration() method has been deprecated and is scheduled to be removed in Gradle 4.0.

Relevant stack trace:

The ProjectDependency.getProjectConfiguration() method has been deprecated and is scheduled to be removed in Gradle 4.0.
        at org.gradle.api.internal.artifacts.dependencies.DefaultProjectDependency.getProjectConfiguration(DefaultProjectDependency.java:74)
        at org.gradle.api.internal.artifacts.dependencies.DefaultProjectDependency_Decorated.getProjectConfiguration(Unknown Source)
        at org.springframework.boot.gradle.repackage.ProjectLibraries.getLibrariesForFileDependencies(ProjectLibraries.java:131)
        at org.springframework.boot.gradle.repackage.ProjectLibraries.getLibraries(ProjectLibraries.java:113)
        at org.springframework.boot.gradle.repackage.ProjectLibraries.doWithLibraries(ProjectLibraries.java:90)
        at org.springframework.boot.gradle.repackage.RepackagePluginFeatures$RegisterInputsOutputsAction.addLibraryDependencies(RepackagePluginFeatures.java:158)
        at org.springframework.boot.gradle.repackage.RepackagePluginFeatures$RegisterInputsOutputsAction.setupInputOutputs(RepackagePluginFeatures.java:151)
        at org.springframework.boot.gradle.repackage.RepackagePluginFeatures$RegisterInputsOutputsAction.execute(RepackagePluginFeatures.java:136)
        at org.springframework.boot.gradle.repackage.RepackagePluginFeatures$RegisterInputsOutputsAction.execute(RepackagePluginFeatures.java:114)
        at org.gradle.internal.Actions$FilteredAction.execute(Actions.java:205)
        at org.gradle.api.internal.DefaultDomainObjectCollection.all(DefaultDomainObjectCollection.java:117)
        at org.gradle.api.internal.tasks.RealizableTaskCollection.all(RealizableTaskCollection.java:192)
        at org.gradle.api.internal.DefaultDomainObjectCollection.withType(DefaultDomainObjectCollection.java:127)
        at org.springframework.boot.gradle.repackage.RepackagePluginFeatures$1.execute(RepackagePluginFeatures.java:84)
        at org.springframework.boot.gradle.repackage.RepackagePluginFeatures$1.execute(RepackagePluginFeatures.java:81)

This is just meant as a quick holler to make you aware of the issue.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 22, 2016
@philwebb philwebb added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Dec 22, 2016
@philwebb
Copy link
Member

Thanks for the heads up.

@philwebb philwebb added this to the 1.5.0 RC1 milestone Dec 22, 2016
@snicoll snicoll self-assigned this Dec 29, 2016
@snicoll snicoll modified the milestone: 1.5.0 RC1 Jan 3, 2017
@snicoll snicoll removed their assignment Jan 3, 2017
@wilkinsona wilkinsona self-assigned this Jan 3, 2017
@patelkunal
Copy link

patelkunal commented Jan 13, 2017

+1 waiting for this to be in release version

@bamapookie
Copy link

bamapookie commented Jan 31, 2017

I am getting this with Spring Boot 1.5.1 and Gradle 3.3. Note there has to be a sub-module (even if it is empty) and a classifier in the springBoot task.

build.gradle

buildscript {
    ext {
        springBootVersion = '1.5.1.RELEASE'
    }
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath group: 'org.springframework.boot', name: 'spring-boot-gradle-plugin', version: springBootVersion
    }
}
apply plugin: 'org.springframework.boot'
repositories {
    mavenCentral()
}
dependencies {
    compile project(':sub') // Important!  Needed to reproduce the bug!
}
springBoot {
    classifier = 'boot' // Important!  Needed to reproduce the bug!
}
allprojects {
    apply plugin: 'java'
}
task wrapper(type: Wrapper) {
    gradleVersion = '3.3'
    distributionType = Wrapper.DistributionType.ALL
}

settings.gradle

include 'sub'

Empty sub/build.settings file.

Running ./gradlew clean will invoke the error.

@bamapookie
Copy link

Created new issue: #8154

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

7 participants