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 4.10.2 and new IMPROVED_POM_SUPPORT and gradle lint #85

Open
remy-tiitre opened this issue Oct 30, 2018 · 0 comments
Open

Gradle 4.10.2 and new IMPROVED_POM_SUPPORT and gradle lint #85

remy-tiitre opened this issue Oct 30, 2018 · 0 comments

Comments

@remy-tiitre
Copy link
Contributor

remy-tiitre commented Oct 30, 2018

Any idea, what might be causing these kind of errors when I run autoLintGradle on a project where I use bom imports and gradle resolution rules plugin:

Resolution rules could not resolve all dependencies to align configuration ':lintExcludes':
 - org.springframework.boot:spring-boot-starter-data-jpa:null -> org.springframework.boot:spring-boot-starter-data-jpa:null - Could not find org.springframework.boot:spring-boot-starter-data-jpa:null.
Resolution rules could not resolve all dependencies to align configuration ':lintExcludes':
 - com.jayway.jsonpath:json-path:null -> com.jayway.jsonpath:json-path:null - Could not find com.jayway.jsonpath:json-path:null.

I have added enableFeaturePreview('IMPROVED_POM_SUPPORT') to settings.gradle

And to give some context I have outline some configuration from my build.gradle file. Its a lot more complicated offcouse as we are using init scripts and theres a lot more going on. And its multi project setup as well.

plugins {
    id 'java'
    id 'nebula.resolution-rules' version '7.0.4'
    id 'nebula.lint' version '9.3.2'
    id 'org.springframework.boot' version '2.0.6.RELEASE'
}

gradleLint {
    rules = ['unused-exclude-by-dep']
}

dependencies {
    resolutionRules 'com.netflix.nebula:gradle-resolution-rules:latest.release'
    compile org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES
    implementation('org.springframework.boot:spring-boot-starter-data-jpa') {
        exclude group: 'org.hibernate', module: 'hibernate-entitymanager'
    }
}

Unfortunately I'm not able to pin it down to java source code or some transitive dependency that causes this. Using just this clean setup I provided here works fine. Maybe you have had similar issues or have suggestions how to debug it

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

No branches or pull requests

1 participant