Hello, does gradle allow for different source sets...
# gradle
k
Hello, does gradle allow for different source sets out of the box? (similar to android source sets, but without android)
g
Yes, you can add custom source set, it's just an additional dir by default, but maybe you have more specific use case for it
k
You wouldn’t happened to have a reference to documentation for this, which also includes build configurations for the various sourcesets?
k
Thank you very much and I appreciate your time 🙏
g
A tricky part is that other plugins have own rules, like Kotlin, Android, Kotlin Android, Kotlin Multiplatform all contribute to source sets and replace/adjust Java source sets provided by Gradle out of the box
this why I saying that it important to know your use case
For example for tests, there is default plugin which provides higher level version of API for source sets to configure custom test suites: https://docs.gradle.org/8.8-rc-1/userguide/jvm_test_suite_plugin.html So in general source set is generic term, but from Gradle/DSL point of view, it's plugin specific one