Skip to content

Instantly share code, notes, and snippets.

@amadeu01
Created March 15, 2018 17:12
Show Gist options
  • Save amadeu01/6a6d258dc017d9c7f07ebba6b6eb0829 to your computer and use it in GitHub Desktop.
Save amadeu01/6a6d258dc017d9c7f07ebba6b6eb0829 to your computer and use it in GitHub Desktop.
Used to test gradle parallel tests. and `-t` argument to continues running tests.
apply plugin: "java"
group = "amadeu01.github.io"
description = "My Java Library"
version = "1.0"
repositories {
mavenCentral()
}
dependencies {
compile "commons-collections:commons-collections:3.2"
testCompile "junit:junit:4.11"
}
sourceSets {
main {
java {
srcDirs = ["java"]
}
}
}
jar {
manifest {
attributes "Implementation-Version": project.version
}
}
test {
maxParallelForks = (Runtime.runtime.availableProcessors() / 2) + 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment