Giuseppe Barbieri
02/20/2025, 9:04 AMcommon module, where the generation task is also registered
The problem is that I'd like to use some testFixtures from one of the modules, unit.. is there a way to have it this way?Alex Landau
02/21/2025, 7:24 AMJavaExec (passing code paths, etc. as arguments to a main method) instead of calling the methods directly.
I did something similar recently using roughly the following (in Groovy):
configurations {
codegen // creates a new configuration with this name
}
dependencies {
codegen project(':the-codegen-project')
}
tasks.register("writeTheStuff", JavaExec) {
classpath configurations.codegen
mainClass.set("com.example.TheMainClass")
args file("the/input/dir").absolutePath, file("the/output/dir").absolutePath
}