Closed joshsh closed 5 years ago
I think you're looking for this?
sourceSets {
main {
eta {
srcDir 'src/main/haskell'
}
}
}
Doing srcDirs =
will invoke the underlying set function and override the default as well. Calling srcDir
will add the specified directory to the existing list of source directories (which defaults to src/main/eta
). This is nothing specific to the gradle-eta plugin - this is default Gradle source set configuration behavior.
Thanks; this is all that was required. Closing.
It would be helpful if gradle-eta were to support multiple source directories at a time. For example, I have a pure Haskell directory I would like to keep separate from
src/main/eta
(so that its contents can be built independently, with GHC). Right now, I have a script which creates symlinks fromsrc/main/eta
into the pure Haskell directorysrc/main/haskell
, but this is a bit of a hack. I have noticed that this works (inbuild.gradle
):while this does not:
Support for the following would be ideal: