Composite Build: Missing compileJava source

Im using composite build, and getting error with compileJava. It says that the task not found.

Error Message: Cannot locate tasks that match ':companion-build:convention:compileJava' as project 'companion-build' not found in root project 'Companion Build'.

Build Logs: It seems to be the compileJava NO-SOURCE is it?

> Task :companion-build:convention:compileKotlin UP-TO-DATE
> Task :companion-build:convention:compileJava NO-SOURCE
> Task :companion-build:convention:pluginDescriptors UP-TO-DATE
> Task :companion-build:convention:processResources UP-TO-DATE
> Task :companion-build:convention:classes UP-TO-DATE
> Task :companion-build:convention:jar UP-TO-DATE
> Task :companion-build:convention:inspectClassesForKotlinIC UP-TO-DATE
> Task :prepareKotlinBuildScriptModel UP-TO-DATE

Gradle Configuration: Did I missed something?

plugins {
    `kotlin-dsl`
}

group = "com.storema.convention"

java {
    sourceCompatibility = JavaVersion.VERSION_17
    targetCompatibility = JavaVersion.VERSION_17
}

dependencies {
    implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.10")
    implementation("com.android.tools.build:gradle:8.1.0")
}

gradlePlugin {
    plugins {
        register("AppConventionV1") {
            id = "AppConventionV1"
            implementationClass = "com.storema.convention.AppConventionV1"
        }
        register("LibraryConventionV1") {
            id = "LibraryConventionV1"
            implementationClass = "com.storema.convention.LibraryConventionV1"
        }
        register("NavigationConventionV1") {
            id = "NavigationConventionV1"
            implementationClass = "com.storema.convention.NavigationConventionV1"
        }
        register("ScreenConventionV1") {
            id = "ScreenConventionV1"
            implementationClass = "com.storema.convention.ScreenConventionV1"
        }
        register("DataStoreConventionV1") {
            id = "DataStoreConventionV1"
            implementationClass = "com.storema.convention.DataStoreConventionV1"
        }
        register("RepositoryConventionV1") {
            id = "RepositoryConventionV1"
            implementationClass = "com.storema.convention.RepositoryConventionV1"
        }
    }
}

Directory Tree: This is the side project module for convention plugin.

companion-build/
├── convention
│   ├── build.gradle.kts
│   └── src
│       └── main
│           └── kotlin
│               └── com
│                   └── storema
│                       └── convention
│                           ├── AppConventionV1.kt
│                           ├── companion
│                           │   └── KotlinCompile.kt
│                           ├── DataStoreConventionV1.kt
│                           ├── LibraryConventionV1.kt
│                           ├── NavigationConventionV1.kt
│                           ├── RepositoryConventionV1.kt
│                           └── ScreenConventionV1.kt
├── gradle
│   └── wrapper
│       ├── gradle-wrapper.jar
│       └── gradle-wrapper.properties
├── gradle.properties
└── settings.gradle.kts

Im not very expert in gradle, is there a configuration i need to add?

It’s not complaining about :companion-build:convention:compileJava.
It is complaining about not finding :companion-build:compileJava because it is not finding the project :companion-build.
Can you provide the full project and the command you invoke?