Hey all, I was using <this> work around for grabbi...
# kotlin-dsl
a
Hey all, I was using this work around for grabbing the libs instance in pre-compiled script plugins although with gradle 8.7 it seems the type
LibrariesForLibs
is gone and no such package as
org.gradle.accessors
, I saw that
versionCatalogs.named("libs")
work but lack type safety. Any ideias on how we can access libs now in pre-compiled scripts?
v
Are you sure? I cannot check as I'm on vacation, but as far as I know my hack-around should still work. The string-y alternative with the extension always was there already it just got an additional accessory in the meantime.
a
It's 100% works on Gradle 8.7, we use it
a
Hmm weird I'm getting an error saying the package
org.gradle.accessors
not found
Weird 😕
a
Maybe there is another error, check build logs, it happens with auto generated accessors
a
Just opened another project and its working there o.o
Clearing all caches and re trying, this is odd o.o
a
Is it a build issue or IDE issue for you?
a
java.io.FileNotFoundException: /Users/ams83/.gradle/caches/8.7/kotlin-dsl/accessors/5139f45ab728da8a408893ab717869a7/metadata.bin
Not using an IDE atm
Just tried
Copy code
gradle --stop
rm -rf ~/.gradle ~/.m2
gradlew tasks
And still getting the error
Ok finally it worked
👌 1
Very weird 😓
a
This error looks like a cache issue, yeah