question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Confused about dependencies glm and uno-core

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
exuvocommented, Aug 29, 2020

I added a section Gradle composite builds to https://github.com/kotlin-graphics/imgui/wiki/Install .

0reactions
elect86commented, Sep 17, 2020

this should be addressed

Read more comments on GitHub >

github_iconTop Results From Across the Web

Generalized linear model - confused by definition [duplicate]
GLM's are generalizations of regression to distributions other then normal and link ... GLM is defined in terms of linear predictor.
Read more >
Generalized linear model - Wikipedia
In statistics, a generalized linear model (GLM) is a flexible generalization of ordinary ... Not to be confused with general linear model or...
Read more >
GLM Documentation - JuliaStats
To fit a Generalized Linear Model (GLM), use the function, glm(formula, data, family, link) , where,. formula : uses column symbols from the...
Read more >
Generalized Linear Models - Statsmodels
Generalized Linear Models¶ · GLM: Binomial response data¶ · GLM: Gamma for proportional count response¶ · GLM: Gaussian distribution with a noncanonical link¶....
Read more >
Confusing Statistical Term #7: GLM - The Analysis Factor
General Linear Model and Generalized Linear Model. It's extra confusing because their names are so similar on top of having the same abbreviation....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found