Commit 342716d
authored
Fix Gradle 10 issue in
Fix the Gradle 10 deprecation warning in `DefaultNmcpSettings` by using `DependencyHandler.project()` instead of `DependencyHandler.create()`.
Using the other recommended way via `DependencyFactory.createProjectDependency()` isn't available in NMCP's min Gradle-API version 8.8.
Warning message and location:
```
Using a Project object as a dependency notation has been deprecated. This will fail with an error in Gradle 10. Please use the project(String) method on DependencyHandler or the createProjectDependency(String) method on DependencyFactory instead. Consult the upgrading guide for further information: https://docs.gradle.org/9.6.1/userguide/upgrading_version_9.html#dependency_project_notation
at nmcp.internal.DefaultNmcpSettings.lambda$0$1(DefaultNmcpSettings.kt:37)
at nmcp.internal.DefaultNmcpSettings.lambda$0$2(DefaultNmcpSettings.kt:36)
```DefaultNmcpSettings (#270)1 parent 5af3aa6 commit 342716d
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
0 commit comments