Skip to content

Commit

Permalink
Use Spring's propdeps plugin; make jsr305 provided
Browse files Browse the repository at this point in the history
  • Loading branch information
fge committed Nov 1, 2014
1 parent 021b5b4 commit bd5ec1f
Showing 1 changed file with 19 additions and 30 deletions.
49 changes: 19 additions & 30 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,35 +17,24 @@
* - ASL 2.0: http://www.apache.org/licenses/LICENSE-2.0.txt
*/

/*
* This has to be here... It will not be taken into account in common.gradle!
*
* Looks like a serious bug... See also:
*
* http://forums.gradle.org/gradle/topics/buildscript_in_subprojects_ignored
*
* We also use Spring's propdeps plugin to have a _real_ provided scope. See:
*
* https://github.com/spring-projects/gradle-plugins/tree/master/propdeps-plugin
*/
//buildscript {
// repositories {
// maven {
// url "http://repo.springsource.org/plugins-release";
// }
// }
// dependencies {
// classpath(group: "org.springframework.build.gradle",
// name: "propdeps-plugin", version: "0.0.5");
// }
//};
//
//configure(allprojects) {
// apply(plugin: "propdeps");
// apply(plugin: "propdeps-maven");
// apply(plugin: "propdeps-idea");
// apply(plugin: "propdeps-eclipse");
//}
buildscript {
repositories {
maven {
url "http://repo.springsource.org/plugins-release";
}
}
dependencies {
classpath(group: "org.springframework.build.gradle",
name: "propdeps-plugin", version: "0.0.7");
}
};

configure(allprojects) {
apply(plugin: "propdeps");
apply(plugin: "propdeps-maven");
apply(plugin: "propdeps-idea");
apply(plugin: "propdeps-eclipse");
}

apply(plugin: "java");
apply(plugin: "maven");
Expand All @@ -64,7 +53,7 @@ targetCompatibility = "1.6"; // defaults to sourceCompatibility
* List of dependencies
*/
dependencies {
compile(group: "com.google.code.findbugs", name: "jsr305",
provided(group: "com.google.code.findbugs", name: "jsr305",
version: "2.0.1");
compile(group: "com.github.fge", name: "jackson-coreutils",
version: "1.6");
Expand Down

0 comments on commit bd5ec1f

Please sign in to comment.