Skip to content
Permalink
Browse files
build: run build and tests in parallel
Reviewed-by: rwestberg
  • Loading branch information
edvbld committed Feb 12, 2021
1 parent 6f833d3 commit 363871a7a5f66d888142ba571ed94bfdd3a31154
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
@@ -79,6 +79,23 @@ configure(subprojects.findAll() { it.name != 'bots' }) {
reports.html.enabled = false
}

tasks.withType(Test).configureEach {
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
}

tasks.withType(Test).configureEach {
forkEvery = 100
}

tasks.withType(Test).configureEach {
reports.html.enabled = false
reports.junitXml.enabled = false
}

tasks.withType(JavaCompile).configureEach {
options.fork = true
}

publishing {
repositories {
maven {
@@ -0,0 +1,3 @@
org.gradle.vfs.watch=true
org.gradle.parallel=true
org.gradle.jvmargs=-Xmx2048M

1 comment on commit 363871a

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on 363871a Feb 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.