Skip to content

Commit 97c0acc

Browse files
committed
MLE-24402 Cleaning up projects and contrib
1 parent 9423d90 commit 97c0acc

File tree

8 files changed

+17
-87
lines changed

8 files changed

+17
-87
lines changed

.copyrightconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ startyear: 2023
1111
# - Dotfiles already skipped automatically
1212
# Enable by removing the leading '# ' from the next line and editing values.
1313
# filesexcluded: third_party/*, docs/generated/*.md, assets/*.png, scripts/temp_*.py, vendor/lib.js
14-
filesexcluded: .github/*, README.md, Jenkinsfile, gradle/*, docker-compose.yml, *.gradle, gradle.properties, gradlew, gradlew.bat, **/test/resources/**
14+
filesexcluded: .github/*, README.md, CONTRIBUTING.md, Jenkinsfile, gradle/*, docker-compose.yml, *.gradle, gradle.properties, gradlew, gradlew.bat, **/test/resources/**, docs/**

CONTRIBUTING.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
This guide covers how to develop and test this project. It assumes that you have cloned this repository to your local
22
workstation.
33

4-
**You must use Java 17 for developing, testing, and building this project**, even though the connector supports
5-
running on Java 11. For users, Java 17 is only required if using the splitting and embedding features, as those
6-
depend on a third party module that requires Java 17.
7-
8-
**You also need Java 11 installed** so that the subprojects in this repository that require Java 11 have access to a
9-
Java 11 SDK. [sdkman](https://sdkman.io/) is highly recommend for installing multiple JDKs.
4+
**You must use Java 17 for developing, testing, and building this project**.
105

116
# Setup
127

@@ -44,6 +39,12 @@ To run the tests against the test application, run the following Gradle task:
4439

4540
./gradlew test
4641

42+
To also get code coverage, run:
43+
44+
./gradlew test jacocoTestReport
45+
46+
The code coverage report will be in `marklogic-spark-connector/build/reports/jacoco/test/html/index.html`.
47+
4748
**To run the tests in Intellij**, you must configure your JUnit template to include a few JVM args:
4849

4950
1. Go to Run -> Edit Configurations.

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def runtests(String javaVersion){
1515
./gradlew -i mlDeploy
1616
echo "Loading data a second time to try to avoid Optic bug with duplicate rows being returned."
1717
./gradlew -i mlLoadData
18-
./gradlew clean testCodeCoverageReport || true
18+
./gradlew clean test jacocoTestReport || true
1919
'''
2020
junit '**/build/**/*.xml'
2121
}

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ sonar {
88
properties {
99
property "sonar.projectKey", "marklogic-spark"
1010
property "sonar.host.url", "http://localhost:9000"
11-
property "sonar.coverage.jacoco.xmlReportPaths", "code-coverage-report/build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml"
11+
property "sonar.coverage.jacoco.xmlReportPaths", "marklogic-spark-connector/build/reports/jacoco/test/jacocoTestReport.xml"
1212
}
1313
}
1414

code-coverage-report/build.gradle

Lines changed: 0 additions & 14 deletions
This file was deleted.

docs/index.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@ from any data source that Spark supports and then writing it to MarkLogic.
1212

1313
The connector has the following system requirements:
1414

15-
* Apache Spark 3.5.6 is recommended, but earlier versions of Spark 3.5.x, 3.4.x, and 3.3.x should work as well. When choosing
16-
[a Spark distribution](https://spark.apache.org/downloads.html), you must select a distribution that uses Scala 2.12 and not Scala 2.13.
15+
* Apache Spark 4.0 or higher.
16+
* If using Java to run Spark, Spark 4 requires Java 17 or higher.
1717
* For writing data, MarkLogic 9.0-9 or higher.
1818
* For reading data, MarkLogic 10.0-9 or higher.
19-
* If using Java to run Spark, Java 11 or higher is required.
2019

2120
In addition, if your MarkLogic cluster has multiple hosts in it, it is highly recommended to put a load balancer in front
2221
of your cluster and have the MarkLogic Spark connector connect through the load balancer.

settings.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
// The connector code was previously split across multiple subprojects to allow for different Java
2+
// requirements. That separation is no longer needed now that the connector requires Spark 4 and thus
3+
// requires Java 17. The marklogic-spark-connector subproject is being kept for now in case there's
4+
// a need for another subproject in the future. And having the test-app in a separate subproject is
5+
// cleaner than including it in the base project.
16
include "marklogic-spark-connector"
2-
//include "tests"
37
include "test-app"
4-
include "code-coverage-report"

tests/build.gradle

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)