Unable to load common library via Gradle

I have made a Kotlin MPP library with some common algorithms and datastructures. It has both a JVM and a JS target.

I publish it to Maven local but are unable to load anything into a new project (also a MPP with a common, JS and JVM module).

My library project is called: nl.rjcoding.common:1.0-SNAPSHOT.
I can see it in my .m2 directory.

When adding it to my build.gradle.kts like this:

val commonMain by getting {
            dependencies {
                implementation("nl.rjcoding:common:1.0-SNAPSHOT")
            }
        }

I don’t get anything in my project when refreshing. Not even a warning or an error.

This is in my .m2/repositories/nl/rjcoding directory:

drwxr-xr-x  4 avanwieringen  staff  128 Feb 16 12:56 common
drwxr-xr-x  4 avanwieringen  staff  128 Feb 16 12:56 common-js
drwxr-xr-x  4 avanwieringen  staff  128 Feb 16 12:56 common-jvm

This is in the common/1.0-SNAPSHOT dir:

-rw-r--r--  1 avanwieringen  staff  10054 Feb 16 13:10 common-1.0-SNAPSHOT-all.jar
-rw-r--r--  1 avanwieringen  staff  16869 Feb 16 13:10 common-1.0-SNAPSHOT-sources.jar
-rw-r--r--  1 avanwieringen  staff  18350 Feb 16 13:10 common-1.0-SNAPSHOT.jar
-rw-r--r--  1 avanwieringen  staff   3940 Feb 16 13:10 common-1.0-SNAPSHOT.module
-rw-r--r--  1 avanwieringen  staff    983 Feb 16 13:10 common-1.0-SNAPSHOT.pom
-rw-r--r--  1 avanwieringen  staff   1264 Feb 16 13:10 maven-metadata-local.xml

EDIT: Invalidate caches and adding mavenLocal did the trick. Still pretty annoying I don’t get any errors.