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

Not supported by gradle version 8.* #150

Open
janko-sokolovic opened this issue Aug 1, 2024 · 1 comment
Open

Not supported by gradle version 8.* #150

janko-sokolovic opened this issue Aug 1, 2024 · 1 comment

Comments

@janko-sokolovic
Copy link

After upgrading gradle wrapper to use 8.5 version, it is not allowing to use custom configuration in dependencies.

Is there a workaround?

Error:
> Adding a Configuration as a dependency is no longer allowed as of Gradle 8.0.

For:

dependencies {
    liquibaseRuntime "org.liquibase:liquibase-core:4.3.2"
    liquibaseRuntime "org.liquibase.ext:liquibase-hibernate5:4.3.2"
    liquibaseRuntime sourceSets.main.compileClasspath
    liquibaseRuntime "org.postgresql:postgresql"
    
}
@stevesaliman
Copy link
Collaborator

I have a Gradle 8.6 project that works fine. There is a small difference in the way I added sourceSets.main.compileClasspath though. In my project I have

 configurations {
    liquibaseRuntime.extendsFrom sourceSets.main.compileClasspath
}

That way I don't need to add it explicitly to the liquibaseRuntime configuration, because it will already include it. I only need to add the other dependencies. Does this help in your situation?

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