This is an automated email from the ASF dual-hosted git repository.
jleroux pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push:
new 18a1871552 Improved: clarify use of sourceSets in build.gradle
18a1871552 is described below
commit 18a18715520daf64286fc5d49858ed15de15be2e
Author: Jacques Le Roux <[email protected]>
AuthorDate: Sun Apr 7 13:48:14 2024 +0200
Improved: clarify use of sourceSets in build.gradle
Mentions the difference and reason of it for build.gradle sourceSets.
Under main are the integration tests, under tst are the unit tests
---
build.gradle | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/build.gradle b/build.gradle
index cee709f214..0df79ed945 100644
--- a/build.gradle
+++ b/build.gradle
@@ -240,6 +240,7 @@ def excludedJavaSources = [
]
sourceSets {
+ // This is for integration tests (DB access)
main {
java {
srcDirs = getDirectoryInActiveComponentsIfExists('src/main/java')
@@ -254,7 +255,7 @@ sourceSets {
srcDirs += getDirectoryInActiveComponentsIfExists('dtd')
}
}
- // This is unit tests. Integration tests must be above because of
compilation issues.
+ // This is for unit tests (no DB access)
test {
java {
srcDirs = getDirectoryInActiveComponentsIfExists('src/test/java')