Composite build error. Project not found

https://scans.gradle.com/s/swbpzxlm426gw

I have 3 projects (my-app, number-utils and string-utils). My-app depends on number-utils and string-utils.

I can build number-utils and string-utils however not my-app. For the number-utils dep I point to the jar - no problem. But it seems like implementation project(’:string-utils’) is not finding the project dependency when I build my-app.

├── my-app
│ ├── build
│ ├── build.gradle
│ ├── settings.gradle
│ └── src
├── number-utils
│ ├── build
│ ├── build.gradle
│ ├── settings.gradle
│ └── src
└── string-utils
├── build
├── build.gradle
├── settings.gradle
└── src

/my-app$ more settings.gradle
rootProject.name = 'my-app'
includeBuild '../string-utils'
includeBuild '../number-utils'


/my-app$ more build.gradle
plugins {
    id 'java'
    id 'application'
    id 'idea'
}
group "org.sample"
version "1.0"
application {
    mainClassName = "org.sample.myapp.Main"
}
dependencies {
  implementation files('../number-utils/build/libs/number-utils.jar')
  implementation project(':string-utils')
  implementation "org.apache.commons:commons-lang3:3.4"
}
repositories {
    jcenter()
}


/string-utils$ more settings.gradle
rootProject.name = 'string-utils'

/my-app$ gradle build --scan --info

Removing 0 daemon stop events from registry
Starting a Gradle Daemon (subsequent builds will be faster)
Starting process ‘Gradle build daemon’. Working directory: /home/andrew/.gradle/daemon/6.2.1 Command: /opt/jdk-13.0.2/bin/java --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED --add-opens java.prefs/java.util.prefs=ALL-UNNAMED -XX:MaxMetaspaceSize=256m -XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx512m -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -cp /opt/gradle-6.2.1/lib/gradle-launcher-6.2.1.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 6.2.1
Successfully started process ‘Gradle build daemon’
An attempt to start the daemon took 0.565 secs.
The client will now receive all logging from the daemon (pid: 226099). The daemon log file: /home/andrew/.gradle/daemon/6.2.1/daemon-226099.out.log
Starting build in new daemon [memory: 536.9 MB]
Using 128 worker leases.
Starting Build
Compiling settings file ‘/tmp/5/my-app/settings.gradle’ using SubsetScriptTransformer.
Compiling settings file ‘/tmp/5/my-app/settings.gradle’ using BuildScriptTransformer.
Settings evaluated using settings file ‘/tmp/5/my-app/settings.gradle’.
Compiling settings file ‘/tmp/5/string-utils/settings.gradle’ using SubsetScriptTransformer.
Compiling settings file ‘/tmp/5/string-utils/settings.gradle’ using BuildScriptTransformer.
Compiling settings file ‘/tmp/5/number-utils/settings.gradle’ using SubsetScriptTransformer.
Compiling settings file ‘/tmp/5/number-utils/settings.gradle’ using BuildScriptTransformer.
Projects loaded. Root project using build file ‘/tmp/5/my-app/build.gradle’.
Included projects: [root project ‘my-app’]
[composite-build] Configuring build: /tmp/5/string-utils

Configure project :string-utils
Evaluating project ‘:string-utils’ using build file ‘/tmp/5/string-utils/build.gradle’.
Compiling build file ‘/tmp/5/string-utils/build.gradle’ using SubsetScriptTransformer.
Compiling build file ‘/tmp/5/string-utils/build.gradle’ using BuildScriptTransformer.
Registering project ‘:string-utils’ in composite build. Will substitute for module ‘:string-utils’.
[composite-build] Configuring build: /tmp/5/number-utils

Configure project :number-utils
Evaluating project ‘:number-utils’ using build file ‘/tmp/5/number-utils/build.gradle’.
Compiling build file ‘/tmp/5/number-utils/build.gradle’ using SubsetScriptTransformer.
Compiling build file ‘/tmp/5/number-utils/build.gradle’ using BuildScriptTransformer.
Registering project ‘:number-utils’ in composite build. Will substitute for module ‘:number-utils’.

Configure project :
Evaluating root project ‘my-app’ using build file ‘/tmp/5/my-app/build.gradle’.
Compiling build file ‘/tmp/5/my-app/build.gradle’ using SubsetScriptTransformer.
Compiling build file ‘/tmp/5/my-app/build.gradle’ using BuildScriptTransformer.

FAILURE: Build failed with an exception.

  • Where:
    Build file ‘/tmp/5/my-app/build.gradle’ line: 19

  • What went wrong:
    A problem occurred evaluating root project ‘my-app’.

Project with path ‘:string-utils’ could not be found in root project ‘my-app’.

When using composite builds, the dependency should be declared as if it was a regular Maven dependency. e.g.,
implementation 'org.sample:string-utils:1.0'
implementation 'org.sample:number-utils:1.0'

Yes that was it.
Also I needed this in my other build.gradle file
group “org.sample”
Thanks!