so, I'm playing with variants (for native librarie...
# community-support
g
so, I'm playing with variants (for native libraries) and I'm looking into re-publishing some libraries under new coordinates it works fine for a single artifact with multiple variants, but I'm wondering if I could combine multiple artifacts: ie:
org.jogamp.gluegen:gluegen-rt
,
org.jogamp.joal:joal
, etc code here, I can work around for the configurations and the publications, but the
javaComponent
is a problem, or does anyone see a way?
an idea could be to use craft programmatically the
build.gradle.kts
and use the
GradleRunner
, somehow similar to the functional tests
Copy code
settingsFile.writeText(..)
buildFile.writeText(..)

val runner = GradleRunner.create()
runner.forwardOutput()
runner.withPluginClasspath()
runner.withArguments("publish")
runner.withProjectDir(projectDir)
val result = runner.build()
v
Gradlerunner is testkit for testing. If you want to productively drive a separate build, use the tooling API. Not saying that you should at all, though. :-D
🙈 1
g
oh yeah, that's also an idea!
Gradle TestKit uses the Tooling API for functional testing of your Gradle plugins.
indeed