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

detectConstraints doesn't work if the dependency is transitive #278

Open
jroitgrund opened this issue May 10, 2018 · 1 comment
Open

detectConstraints doesn't work if the dependency is transitive #278

jroitgrund opened this issue May 10, 2018 · 1 comment

Comments

@jroitgrund
Copy link

Three projects, TransitiveDep, Dep, and Main.

Main depends on Dep.

Dep depends on TransitiveDep.

TransitiveDep publishes the following:

apply plugin: 'com.palantir.sls-recommended-dependencies'

recommendedProductDependencies {
    productDependency {
        productGroup = 'com.transitive.dep'
        productName = 'dep'
        minimumVersion = rootProject.version
        maximumVersion = "1.x.x"
        recommendedVersion = rootProject.version
    }
}

Main has the following:

   productDependency {
         productGroup = 'com.transitive.dep'
         productName = 'dep'
         productName = 'multipass'
        detectConstraints = true
    }

I would expect this to work, but I get

Product dependency 'com.transitive.dep:dep' has constraint detection enabled, but could not find any recommendations in assetBundle configuration
@markelliot
Copy link
Contributor

markelliot commented May 10, 2018 via email

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

2 participants