|
@@ -80,6 +80,7 @@ subprojects {
|
|
|
|
|
|
apply plugin: 'java'
|
|
|
apply plugin: 'signing'
|
|
|
+ apply plugin: 'war'
|
|
|
apply plugin: 'maven-publish'
|
|
|
apply plugin: 'nebula.optional-base'
|
|
|
apply plugin: 'nebula.provided-base'
|
|
@@ -105,7 +106,7 @@ subprojects {
|
|
|
}
|
|
|
|
|
|
dependencies {
|
|
|
- provided rootProject.ext.dependencies["lombok"]
|
|
|
+ compile rootProject.ext.dependencies["lombok"], optional
|
|
|
testCompile rootProject.ext.dependencies["mockito-all"]
|
|
|
testCompile rootProject.ext.dependencies["junit"]
|
|
|
}
|
|
@@ -165,7 +166,6 @@ subprojects {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
publications {
|
|
|
|
|
|
mavenJava(MavenPublication) {
|
|
@@ -205,6 +205,16 @@ subprojects {
|
|
|
email = 'jobob@qq.com'
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ withXml {
|
|
|
+ asNode().dependencies.'*'.findAll() {
|
|
|
+ it.scope.text() == 'compile' && project.configurations.providedCompile.allDependencies.find { dep ->
|
|
|
+ dep.name == it.artifactId.text()
|
|
|
+ }
|
|
|
+ }.each() {
|
|
|
+ it.scope*.value = 'provided'
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -213,5 +223,4 @@ subprojects {
|
|
|
sign publishing.publications.mavenJava
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
}
|