Changeset View
Changeset View
Standalone View
Standalone View
build.gradle
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | options { | ||||
addStringOption('source', '8') | addStringOption('source', '8') | ||||
addStringOption('link', "https://docs.oracle.com/javase/8/docs/api/") | addStringOption('link', "https://docs.oracle.com/javase/8/docs/api/") | ||||
//addBooleanOption('html5', true) Only in Java 9+, breaks in Java 8 | //addBooleanOption('html5', true) Only in Java 9+, breaks in Java 8 | ||||
} | } | ||||
} | } | ||||
test { | test { | ||||
// Using less cores than available, because JUnit needs some to work | // Using less cores than available, because JUnit needs some to work | ||||
maxParallelForks = Runtime.runtime.availableProcessors() - 2 | def runners = Runtime.runtime.availableProcessors() - 2 | ||||
if(maxParallelForks <= 0) | maxParallelForks = runners > 0 ? runners : 1 | ||||
maxParallelForks = 1 | |||||
} | } | ||||
tasks.withType(FindBugs) { | tasks.withType(FindBugs) { | ||||
reports { | reports { | ||||
xml.enabled = false | xml.enabled = false | ||||
html.enabled = true | html.enabled = true | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 153 Lines • Show Last 20 Lines |