Prior to this change, the Gradle API Diff task was failing due to a missing class (a Guava class) during processing. This might be a dependency that was previously brought by some other dependency. This commit adds that dependency as a workaround, and improves the Gradle API Diff task to only select relevant projects when running the task (projects using the Java Plugin and the Maven Publish Plugin).
35 lines
933 B
Groovy
35 lines
933 B
Groovy
plugins {
|
|
id 'java-gradle-plugin'
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
gradlePluginPortal()
|
|
}
|
|
|
|
dependencies {
|
|
implementation "me.champeau.gradle:japicmp-gradle-plugin:0.2.8"
|
|
implementation "com.google.guava:guava:18.0" // required by japicmp-gradle-plugin
|
|
}
|
|
|
|
gradlePlugin {
|
|
plugins {
|
|
apiDiffPlugin {
|
|
id = "org.springframework.build.api-diff"
|
|
implementationClass = "org.springframework.build.api.ApiDiffPlugin"
|
|
}
|
|
compileConventionsPlugin {
|
|
id = "org.springframework.build.compile"
|
|
implementationClass = "org.springframework.build.compile.CompilerConventionsPlugin"
|
|
}
|
|
optionalDependenciesPlugin {
|
|
id = "org.springframework.build.optional-dependencies"
|
|
implementationClass = "org.springframework.build.optional.OptionalDependenciesPlugin"
|
|
}
|
|
testSourcesPlugin {
|
|
id = "org.springframework.build.test-sources"
|
|
implementationClass = "org.springframework.build.testsources.TestSourcesPlugin"
|
|
}
|
|
}
|
|
}
|