Nicholas Bilyk
11/25/2019, 9:53 PM// My library
kotlin.sourcesets.named("jvmMain") {
dependencies {
runtimeOnly("$lwjglGroup:$lwjglName:$lwjglVersion:natives-$os")
}
}
However, the consumer can't see this dependency unless it also specifies the runtimeOnly. Is there a way to make this apply without the consumer of my library needing to specify it explicitly?Dominaezzz
11/25/2019, 10:27 PMapi(...)
I think.Nicholas Bilyk
11/25/2019, 11:00 PM<dependency>
<groupId>org.lwjgl</groupId>
<artifactId>lwjgl-glfw</artifactId>
<version>3.2.2</version>
<classifier>natives-linux</classifier>
<scope>runtime</scope>
</dependency>
Which is about what I'd expect. However, the consumer of my library doesn't have the native jars in the classpath