Skip to content

Commit 7773043

Browse files
committed
Use Spring's propdeps-plugins
Provides "provided", since gradle won't support it.
1 parent a9a417a commit 7773043

File tree

2 files changed

+32
-2
lines changed

2 files changed

+32
-2
lines changed

build.gradle

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,36 @@
1515
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18+
/*
19+
* This has to be here... It will not be taken into account in common.gradle!
20+
*
21+
* Looks like a serious bug... See also:
22+
*
23+
* http://forums.gradle.org/gradle/topics/buildscript_in_subprojects_ignored
24+
*
25+
* We also use Spring's propdeps plugin to have a _real_ provided scope. See:
26+
*
27+
* https://github.com/spring-projects/gradle-plugins/tree/master/propdeps-plugin
28+
*/
29+
buildscript {
30+
repositories {
31+
maven {
32+
url "http://repo.springsource.org/plugins-release";
33+
}
34+
}
35+
dependencies {
36+
classpath(group: "org.springframework.build.gradle",
37+
name: "propdeps-plugin", version: "0.0.5");
38+
}
39+
};
40+
41+
configure(allprojects) {
42+
apply(plugin: "propdeps");
43+
apply(plugin: "propdeps-maven");
44+
apply(plugin: "propdeps-idea");
45+
apply(plugin: "propdeps-eclipse");
46+
}
47+
1848
apply(plugin: "java");
1949
apply(plugin: "maven");
2050
apply(plugin: "signing");

project.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ project.ext {
1414
* List of dependencies
1515
*/
1616
dependencies {
17-
// FIXME: need to make this "provided" eventually, when gradle supports it
18-
compile(group: "com.google.code.findbugs", name: "jsr305", version: "2.0.1");
17+
provided(group: "com.google.code.findbugs", name: "jsr305",
18+
version: "2.0.1");
1919
}
2020

2121
javadoc.options.links("http://docs.oracle.com/javase/6/docs/api");

0 commit comments

Comments
 (0)