korlibs / korge

KorGE Game Engine. Multiplatform Kotlin Game Engine
https://korge.org/
Other
2.57k stars 125 forks source link

Unable to build locally when using korlibs from mavenLocal 999.0.0.999 #2275

Open Kietyo opened 3 months ago

Kietyo commented 3 months ago
* What went wrong:
Could not determine the dependencies of task ':korge-core:jsPackageJson'.
> Could not resolve all dependencies for configuration ':korge-core:jsNpmAggregated'.
   > Could not find com.soywiz:korlibs-all:999.0.0.999.
     Searched in the following locations:
       - file:/C:/Users/kietm/.m2/repository/com/soywiz/korlibs-all/999.0.0.999/korlibs-all-999.0.0.999.pom
       - https://repo.maven.apache.org/maven2/com/soywiz/korlibs-all/999.0.0.999/korlibs-all-999.0.0.999.pom
       - https://dl.google.com/dl/android/maven2/com/soywiz/korlibs-all/999.0.0.999/korlibs-all-999.0.0.999.pom
       - https://plugins.gradle.org/m2/com/soywiz/korlibs-all/999.0.0.999/korlibs-all-999.0.0.999.pom
       - https://maven.pkg.jetbrains.space/kotlin/p/kotlin/bootstrap/com/soywiz/korlibs-all/999.0.0.999/korlibs-all-999.0.0.999.pom
       - https://maven.pkg.jetbrains.space/kotlin/p/kotlin/temporary/com/soywiz/korlibs-all/999.0.0.999/korlibs-all-999.0.0.999.pom
       - https://maven.pkg.jetbrains.space/kotlin/p/kotlin/dev/com/soywiz/korlibs-all/999.0.0.999/korlibs-all-999.0.0.999.pom
       - https://maven.pkg.jetbrains.space/public/p/kotlinx-coroutines/maven/com/soywiz/korlibs-all/999.0.0.999/korlibs-all-999.0.0.999.pom
       - https://oss.sonatype.org/content/repositories/snapshots/com/soywiz/korlibs-all/999.0.0.999/korlibs-all-999.0.0.999.pom
       - https://maven.pkg.jetbrains.space/kotlin/p/wasm/experimental/com/soywiz/korlibs-all/999.0.0.999/korlibs-all-999.0.0.999.pom
     Required by:
         project :korge-core

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 1m 46s
3 actionable tasks: 2 executed, 1 up-to-date
9:25:49 PM: Execution finished 'publishToMavenLocal'.

I see that you've added all in korlibs:

https://github.com/korlibs/korlibs

But running publishToMavenLocal does not publish korlibs-all.

It's not bolded in the IDE which tells me it's not included as a project:

image
soywiz commented 3 months ago

You have to:

cd korlibs
cd all
./gradlew publishToMavenLocal