Basically what I've got is a few steps involving a 3rd party compiler.
- Compile the Java classes.
- Transform some xls files to drl's.
- Call drools package builder and build the last file with all previously built files in the class path.
If I call this:
project.configurations.compile.add(...)
I get:
UnsupportedOperationException: Configuration ':rules:wnp-productmessagerules:compile'
does not allow modification.
Edit: I've just learned that I can use
artifacts {
someConfig someTask
}
...to add the output of a task to a configuration. Now I just need to pick the right task and then figure out how to relate the configuration to my custom task. Assumes that it's configurations that affect classpaths.