does anyone know why this example of convention pl...
# gradle
p
does anyone know why this example of convention plugins in the documentation doesn’t work or what’s needed to make it work? https://docs.gradle.org/current/userguide/declaring_dependencies_between_subprojects.html#sec:project_jar_dependencies
it fails with
Copy code
* What went wrong:
Plugin [id: 'myproject.java-conventions'] was not found in any of the following sources:
using gradle 7.3.3
i have the same problems if i use
build-logic
+
includeBuild()
instead of
buildSrc
j
with backticks the accessor is not being generated?
I don't see the gradle folder in the project tho
and buildSrc hasn't build.gradle.kts
you need that file, add the kotlin dsl plugin and maven central repo
p
there are no backticks
yea i cant run gradle to create the wrapper because it fails but you should be able to replicate if you have gradle installed elsewhere (eg with brew)
e
you need a
buildSrc/build.gradle
or
buildSrc/build.gradle.kts
2
p
thanks @ephemient
and thanks @Javier i think you were saying the same thing but i misunderstood first, thought you meant
/build.gradle.kts
🙂
👌 1