diffplug / goomph

IDE as build artifact
Apache License 2.0
130 stars 30 forks source link

addAllProjects() causes an exception "Could not find method annotationProcessor()" #180

Closed ChrisTrenkamp closed 2 years ago

ChrisTrenkamp commented 2 years ago

One of the sub-projects in my Gradle setup is an annotation processor. The other projects depend on the annotation processor like this:

annotationProcessor project(":my-annotation-processor")

I added the following to the root Gradle project:

oomphIde {
    repoEclipseLatest()
    jdt {}
    eclipseIni {}
    style {}
    addAllProjects()
}

When ./gradlew ide is ran, the addAllProjects() call causes the following exception to be thrown:

Could not find method annotationProcessor() for arguments [project ':sub-project']  on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

Does anyone know if there's a way to fix this? The Gradle version my project is using is 7.4.

ChrisTrenkamp commented 2 years ago

I think I fundamentally misunderstood what that method does. PEBKAC.