Skip to content

Commit

Permalink
fix(plugins): Do not configure orca-api with dependencies from subpro…
Browse files Browse the repository at this point in the history
…ject configuration in root build.gradle (spinnaker#3761)
  • Loading branch information
jonsie authored Jun 25, 2020
1 parent 5dadb78 commit aea3695
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
15 changes: 8 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,16 @@ allprojects {
}

subprojects {
if (name != "orca-bom") {
apply plugin: "java-library"

if ([korkVersion, keikoVersion, fiatVersion].any { it.endsWith("-SNAPSHOT") }) {
logger.info("Enabling mavenLocal")
repositories {
mavenLocal()
}
if ([korkVersion, keikoVersion, fiatVersion].any { it.endsWith("-SNAPSHOT") }) {
logger.info("Enabling mavenLocal")
repositories {
mavenLocal()
}
}

if (name != "orca-bom" && name != "orca-api") {
apply plugin: "java-library"

dependencies {
implementation(platform("com.netflix.spinnaker.kork:kork-bom:$korkVersion"))
Expand Down
5 changes: 5 additions & 0 deletions orca-api/orca-api.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@ sourceSets {
}

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")

//TODO(jonsie): Remove this dependency
api("com.netflix.spinnaker.kork:kork-artifacts")

compileOnly("org.projectlombok:lombok")
Expand Down

0 comments on commit aea3695

Please sign in to comment.