Commit 507486d
Bump jvm from 2.0.0 to 2.3.21 in /test-project-kotlin (#337)
* Bump jvm from 2.0.0 to 2.3.21 in /test-project-kotlin
Bumps [jvm](https://github.com/JetBrains/kotlin) from 2.0.0 to 2.3.21.
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](JetBrains/kotlin@v2.0.0...v2.3.21)
---
updated-dependencies:
- dependency-name: jvm
dependency-version: 2.3.21
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Fix TestEngine compatibility with Kotlin 2.3.x
In Kotlin 2.3.x, the Kotlin Gradle Plugin adds dependency constraints
to the runtimeClasspath configuration and marks it as non-declarable
(canBeDeclared=false). When TestEngine.copyRecursive() copies such a
configuration, Gradle throws:
GradleException: Dependency constraints can not be declared against
the runtimeClasspath configuration.
Fix by moving copyRecursive() inside the try block and catching
GradleException (which is the parent of ResolveException, so both
are handled). On failure the code falls back to using direct
dependencies only, as before.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: GitHub Copilot <copilot@github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent c62bf25 commit 507486d
2 files changed
Lines changed: 6 additions & 5 deletions
File tree
- src/main/java/org/javamodularity/moduleplugin
- test-project-kotlin
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
118 | | - | |
119 | | - | |
120 | 119 | | |
| 120 | + | |
| 121 | + | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
127 | | - | |
128 | | - | |
| 128 | + | |
| 129 | + | |
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments