Hello! `dependencyProject` is deprecated but on t...
# community-support
j
Hello!
dependencyProject
is deprecated but on the deprecation it is not shown any alternative šŸ¤”
v
Well, what you do is extremely bad practice and highly discouraged, so there is none, at least no "direct" one. Querying the project model of another project is almost as bad as cross-configuring it.
āž• 1
You must not directly depend on tasks of other projects
If you want to depend on those jars, expose them as variants if they are none yet and depend on those variants, then you also have the necessary task dependencies automatically.
j
In the compiler plugin tests I need to get the jars from other projects (mainly the annotations) I will recheck if the template has been updated but it was doing that
Looks like they have moved away from jars and they use a new
annotationsRuntimeClasspath
configuration https://github.com/Kotlin/compiler-plugin-template/blob/master/compiler-plugin/build.gradle.kts • PR: https://github.com/Kotlin/compiler-plugin-template/pull/12/files Before it was
Copy code
dependsOn(project(":plugin-annotations").tasks.getByName("jar"))
v
Well, probably they learned that this is very evil and thus changed it šŸ™‚
šŸ˜› 1
thank you 1