gradle started complaining about this line: ```imp...
# refreshversions
n
gradle started complaining about this line:
Copy code
implementation(Testing.junit.api)
Copy code
e: ...\build.gradle.kts:90:46: Function invocation 'api(...)' expected
i am using gradle 7.3.3 (7.3 also has this behaviour)
j
n
yeah i think idea had the 0.30.0 thing cached and i was already on 0.40.0
l
So, solved?
n
yes
l
@Nikky Are you using a custom build of refreshVersions?
n
no i am using 0.40.0 and i think the issue was that it had the broken api loaded into idea for a moment and that showed me autocompletion, but gradle complained about it..
l
Were you using a custom build?
n
no?
l
It's weird, refreshVersions should have automatically replaced the old dependency notation
n
i'd prefer if it did not, deprecation notices with replacement options are better and the code was fine, but idea marked it in red.. so i looked into it and replaced it with what i thought was correct.. but turned out to be old api
l
It's unmaintainable for me to have to manage the deprecation cycle of so many dependencies, that's why I worked hard on making a reliable replacement mechanism. I think I understand now, you weren't using that dependency notation in the affected file yet, but after updating refreshVersions, you didn't perform a Gradle sync/reload, and the IDE suggested the old dependency notation because it was what it knew to be true as a result, is that correct?