Confused about dependencies glm and uno-core
See original GitHub issueI am trying to port my project over to IntelliJ and modern gradle 6.4.1 but i cant seem to get the dependency resolution correct. I have been using:
["gl", "glfw", "core"].each {
implementation ("com.github.kotlin-graphics.imgui:imgui-$it:-SNAPSHOT") {
exclude group: 'org.lwjgl' // manually versioned elsewhere and i have also tried without the excludes
exclude group: 'org.jetbrains.kotlin'
exclude(group: 'com.github.kotlin-graphics.uno-sdk', module: "uno-awt")
exclude(group: 'com.github.kotlin-graphics.uno-sdk', module: "uno-vk")
}
}
which worked fine in eclipse and the older 4.10.3 gradle but in intellij the transitive dependencies end up as scope:runtime. But for things like setNextWindowSize i need the type glm_vec2.Vec2 which requires scope compile.
I can manually fix it by changing scope to compile in the UI but that only lasts until the next grade refresh or by replacing -SNAPSHOT with v1.76 and explicitly compiling against glm and uno-core
compileOnly "com.github.kotlin-graphics:glm:1b4ac18dd1a3c23440d3f33596688aac60bc0141"
compileOnly "com.github.kotlin-graphics.uno-sdk:uno-core:402f5f495429b7f2178a1d200c32bb5ed2f7e6fa"
but that must be the wrong way to use it.
From reading the gradle documentation i am led to believe that implementation in imgui-core should be api for glm and uno-core, but then i wonder how it has worked for everyone else so far without that?
What am i missing in either gradle or intellij to make this work sensibly?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top GitHub Comments
I added a section
Gradle composite builds
to https://github.com/kotlin-graphics/imgui/wiki/Install .this should be addressed