Skip to content

Commit a9f7ff8

Browse files
committed
Enable Maven module parallelism for faster builds
Add MAVEN_PARALLEL_THREADS variable (default: 1C = 1 thread per CPU core) to the compile-all target. Use 'install' instead of 'compile test-compile' so that annotation processors (mapper-processor) are installed to the local repo before downstream modules (examples) start compiling.
1 parent d8140ac commit a9f7ff8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ CCM_SCYLLA_REPO ?= github.com/scylladb/scylla-ccm
1212
CCM_SCYLLA_VERSION ?= master
1313

1414
SCYLLA_EXT_OPTS ?= --smp=2 --memory=4G
15+
MAVEN_PARALLEL_THREADS ?= 1C
1516
MVNCMD ?= mvn -B -X -ntp
1617

1718
GET_VERSION_VERSION ?= 0.4.3
@@ -239,7 +240,7 @@ release-dry-run: .require-release-env
239240
$(MVNCMD) release:perform > >(tee /tmp/java-driver-release-logs/stdout.log) 2> >(tee /tmp/java-driver-release-logs/stderr.log)
240241

241242
compile-all: .install-guava-shaded
242-
mvn -B compile test-compile -Dfmt.skip=true -Dclirr.skip=true -Danimal.sniffer.skip=true
243+
mvn -B -T $(MAVEN_PARALLEL_THREADS) install -DskipTests -Dfmt.skip=true -Dclirr.skip=true -Danimal.sniffer.skip=true
243244

244245
check:
245246
$(MVNCMD) verify -DskipTests

0 commit comments

Comments
 (0)