Created
March 15, 2018 17:12
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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