I'm trying to fix a deprecation error to make sure...
# gradle
l
I'm trying to fix a deprecation error to make sure it still works in gradle 10. However, I have no idea where this comes from. This is the error:
Copy code
The archives configuration has been deprecated for artifact declaration. This will fail with an error in Gradle 10. Add artifacts as direct task dependencies of the 'assemble' task instead of declaring them in the archives configuration. Consult the upgrading guide for further information: <https://docs.gradle.org/9.2.0/userguide/upgrading_version_9.html#sec:archives-configuration>
        at build_1i0wfhmjqf4vbrs7fnkm6eki1$_run_closure2.doCall$original(/home/elias/prog/array/array/build.gradle:80)
The code in question should work fine, it's just a
jvm() { ... }
block. The gradle file is here: https://codeberg.org/loke/array/src/branch/master/array/build.gradle Any suggestions as to what I should fix?
v
I have no idea where this comes from.
To figure out, you can use
--stacktrace
to see exactly where it comes from, but also, if it comes from the
jvm
call, chances are high it comes from KMP plugin.
Any suggestions as to what I should fix?
https://youtrack.jetbrains.com/issue/KT-78620
l
Thanks for the link. This appears to be what I'm seeing
👌 1
145 Views