-
Notifications
You must be signed in to change notification settings - Fork 59
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
Missing dependencies for Spring Boot project #33
Comments
Maven BOM artifacts are currently supported via the built-in Gradle I could add support for this if the plugin is popular enough. In the meantime, I suggest that you remove that plugin and import the BOM directly: repositories {
mavenCentral()
}
dependencies {
implementation(enforcedPlatform("org.springframework.boot:spring-boot-dependencies:2.4.2"))
implementation("org.springframework.boot:spring-boot-starter")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
testImplementation("org.springframework.boot:spring-boot-starter-test")
} |
For posterity, I ran into a similar issue. Was getting
and worked around by adding
Thanks for the hint 🙂 |
If I create a Gradle Java project using https://start.spring.io with recent Gradle (6.7.1) and Spring (2.4.1), gradle2nix seems to miss POM-only
*-bom
and*-parent
dependencies in the gradle-env.json it produces. It's a bit slow to go through and add them one by one, so I haven't got a complete list yet, but here are the missing deps so far:Edit: For what it's worth, this worked mostly fine with e0ebece, Gradle 5.4.1, and Gradle plugins
org.springframework.boot:2.2.0.RELEASE
andio.spring.dependency-management:1.0.10.RELEASE
, and I only had to add in a few missed deps, not this many. Updating to Gradle 6.7 and Spring Boot 2.3.4 seems to have caused the problem to grow in a way that updating gradle2nix didn't fix.The text was updated successfully, but these errors were encountered: