Reputation: 457
I am trying to set up a new Spring Boot gradle project, with Spring Initializr. This was giving issues, so to test, I have stripped down to the most basic possible starter – no dependencies.
I set a Gradle project (it sets gradle 7.0.2) and Java 16. Download and import. Set the build JDK appropriately. At this point, everything should be good. But a build fails with the error…
groovy.lang.MissingPropertyException: Could not get unknown property 'compileConfigurationName' for source set 'main' of type org.gradle.api.internal.tasks.DefaultSourceSet.
From what I've been able to find, it looks like compileConfigurationName
was deprecated in gradle 6 and removed in 7 (and that compileClasspathConfigurationName
should be used instead).
What more in the downloaded starter do I need to fiddle with to get this to work? (Yes, I could drop to JDK 11 and gradle 6.8.3, but I would rather start from the more up-to-date…)
Upvotes: 1
Views: 1290
Reputation: 829
If you are using NetBeans - see this ticket here: https://issues.apache.org/jira/browse/NETBEANS-5582
"Gradle 7.0 is not supported in NetBeans 12.3".
If I run this project in VS code no issues.
Upvotes: 3