I have so far been able to get the project working on 6.9 with little fuss, but am getting hung up on moving to 7.0.2 due to breaking changes, have fixed a number of them with help of the scan site, but am stuck on a
A problem occurred evaluating root project ‘projectname’.
Failed to apply plugin ‘propdeps’.
No such property: COMPILE_CONFIGURATION_NAME for class: org.gradle.api.plugins.JavaPlugin
running with --scan just shows the stacktrace with basically the same information:
org.gradle.api.GradleScriptException: A problem occurred evaluating root project ‘projectname’.
Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin ‘propdeps’.
Caused by: groovy.lang.MissingPropertyException: No such property: COMPILE_CONFIGURATION_NAME for class: org.gradle.api.plugins.JavaPlugin
so it is true we have
apply plugin: ‘propdeps’
and
classpath “org.springframework.build.gradle:propdeps-plugin:0.0.7”
You have to replace the faulty version of the plugin with something compliant with Gradle 7 runtime. Since no newer version of the plugin exist, you can try to look for another candidate providing the same set of features. This plugin goal was to provide:
[…] additional optional and provided dependency configurations for Gradle along with Maven POM generation support.
These features were integrated in Gradle core features for Java projects in recent releases. So you can remove this plugin and use the Gradle core features:
The Maven provided scope: leverage the compileOnly and runtimeOnly configurations from The Java Library Plugin
A possible match for the Maven BOM support could be The Java Platform Plugin (it translates to Maven’s <dependencyManagement>, BOM providing <dependencies> can be created by publishing a set of dependencies from a project without sources and configuring the publication to be of pom type).
Could not find method optional() for arguments [org.springframework.boot:spring-boot-configuration-processor, build_exi3tvdd4n75jb5p79edd8nlj$_run_closure10$_closure19@9aaac1b] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.