fix(plugins): Do not configure gate-api with dependencies from subproject configuration in root build.gradle
MODIFY
build.gradle
build.gradle
@@ -10,16 +10,16 @@ allprojects {
group = "com.netflix.spinnaker.gate"
- if (name != "gate-bom") {
- apply plugin: 'java-library'
- apply plugin: 'groovy'
-
if ([korkVersion, fiatVersion].find { it.endsWith('-SNAPSHOT') }) {
repositories {
mavenLocal()
}
}
+ if (name != "gate-bom" && name != "gate-api") {
+ apply plugin: 'java-library'
+ apply plugin: 'groovy'
+
repositories {
maven { url 'https://build.shibboleth.net/nexus/content/repositories/releases/' }
maven { url 'https://repository.mulesoft.org/releases/' }
@@ -52,6 +52,7 @@ allprojects {
exclude group: 'javax.servlet', module: 'servlet-api'
exclude group: 'javax.servlet', module: 'javax.servlet-api'
}
+ }
tasks.withType(JavaExec) {
if (System.getProperty('DEBUG', 'false') == 'true') {
@@ -65,6 +66,5 @@ allprojects {
}
}
}
-}
defaultTasks ':gate-web:run'

MODIFY
gate-api/gate-api.gradle
gate-api/gate-api.gradle
@@ -17,6 +17,8 @@ apply plugin: 'java-library'
dependencies {
implementation platform("com.netflix.spinnaker.kork:kork-bom:$korkVersion")
+ annotationProcessor platform("com.netflix.spinnaker.kork:kork-bom:$korkVersion")
+
api "com.netflix.spinnaker.kork:kork-plugins-api"
api "com.netflix.spinnaker.kork:kork-annotations"

fix(plugins): Do not configure gate-api with dependencies from subproject configuration in root build.gradle (#1260)