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
public static WebArchive prepareArchive() throws Exception { | |
WebArchive war = ShrinkWrap.create(); //parms omitted | |
//add dependency to ShrinkWrap Resolver library | |
GenericArchive mockitoLib = Maven.configureResolver() | |
.resolve("org.mockito:mockito-all:1.8.4") | |
.withTransitivity().asSingle(GenericArchive.class); | |
war.addAsLibraries(mockitoLib); | |
} |
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
//Gist note this is snippet from root build.gradle in project with subprojects | |
checkstyle { | |
// use one common config file for all subprojects | |
configFile = project(':').file('config/checkstyle/checkstyle.xml') | |
configProperties = [ "suppressionFile" : project(':').file('config/checkstyle/suppressions.xml')] | |
} |