Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(dependencies): Autobump korkVersion #6284

Merged
merged 2 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cats/cats-core/cats-core.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dependencies {

implementation "org.slf4j:slf4j-api"
implementation "com.fasterxml.jackson.core:jackson-annotations"
implementation "org.codehaus.groovy:groovy"
implementation "org.apache.groovy:groovy"
implementation "com.google.guava:guava"

testImplementation project(":cats:cats-test")
Expand Down
2 changes: 1 addition & 1 deletion cats/cats-redis/cats-redis.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dependencies {

compileOnly "org.projectlombok:lombok"

implementation "org.codehaus.groovy:groovy"
implementation "org.apache.groovy:groovy"
implementation "com.fasterxml.jackson.core:jackson-databind"
implementation "io.spinnaker.kork:kork-jedis"
implementation "com.github.ben-manes.caffeine:guava"
Expand Down
2 changes: 1 addition & 1 deletion cats/cats-test/cats-test.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ tasks.compileGroovy.enabled = true

dependencies {
implementation project(":cats:cats-core")
implementation "org.codehaus.groovy:groovy"
implementation "org.apache.groovy:groovy"

implementation "org.springframework.boot:spring-boot-starter-test"
implementation "org.spockframework:spock-core"
Expand Down
2 changes: 1 addition & 1 deletion cats/cats.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ subprojects {
dependencies {
implementation project(":clouddriver-api")

implementation "org.codehaus.groovy:groovy"
implementation "org.apache.groovy:groovy"
}
}
2 changes: 1 addition & 1 deletion clouddriver-alicloud/clouddriver-alicloud.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ dependencies {
implementation 'com.aliyun:aliyun-java-sdk-ess:2.3.2'
implementation "org.springframework.boot:spring-boot-actuator"
implementation "org.springframework.boot:spring-boot-starter-web"
implementation "org.codehaus.groovy:groovy"
implementation "org.apache.groovy:groovy"
implementation "org.apache.commons:commons-lang3"

testImplementation "cglib:cglib-nodep"
Expand Down
4 changes: 2 additions & 2 deletions clouddriver-appengine/clouddriver-appengine.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ dependencies {
implementation "com.squareup.retrofit:retrofit"
implementation "commons-io:commons-io"
implementation "org.apache.commons:commons-compress:1.21"
implementation "org.codehaus.groovy:groovy"
implementation "org.codehaus.groovy:groovy-json"
implementation "org.apache.groovy:groovy"
implementation "org.apache.groovy:groovy-json"
implementation "org.eclipse.jgit:org.eclipse.jgit.ssh.jsch:5.13.1.202206130422-r"
implementation "org.springframework.boot:spring-boot-actuator"
implementation "org.springframework.boot:spring-boot-starter-web"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ class AppengineServerGroup implements ServerGroup, Serializable {
this.allowsGradualTrafficMigration = versionAllowsGradualTrafficMigration(version)
}

Boolean isDisabled() {
disabled
}
@Override
ServerGroup.InstanceCounts getInstanceCounts() {
new ServerGroup.InstanceCounts(
Expand Down
7 changes: 2 additions & 5 deletions clouddriver-artifacts/clouddriver-artifacts.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ dependencies {
implementation "org.apache.commons:commons-lang3"
implementation "org.apache.ivy:ivy:2.4.0"
implementation "org.apache.maven:maven-resolver-provider:3.5.4"
implementation "org.codehaus.groovy:groovy"
implementation "org.apache.groovy:groovy"
implementation "org.springframework.boot:spring-boot-actuator"
implementation "org.springframework.boot:spring-boot-starter-web"

Expand All @@ -71,10 +71,7 @@ dependencies {
integrationImplementation "org.testcontainers:mysql"
integrationImplementation "org.testcontainers:junit-jupiter"
integrationImplementation "com.mysql:mysql-connector-j"
integrationImplementation ("io.rest-assured:rest-assured:4.0.0") {
// Exclude groovy pulled in by rest-assured, so we use kork's version
exclude group: "org.codehaus.groovy", module: "groovy"
}
integrationImplementation "io.rest-assured:rest-assured"
}

task integrationTest(type: Test) {
Expand Down
6 changes: 2 additions & 4 deletions clouddriver-aws/clouddriver-aws.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ dependencies {
implementation "io.reactivex:rxjava"
implementation "org.apache.httpcomponents:httpclient"
implementation "org.apache.httpcomponents:httpcore"
implementation "org.codehaus.groovy:groovy"
implementation "org.apache.groovy:groovy"
implementation "org.springframework.boot:spring-boot-actuator"
implementation "org.springframework.boot:spring-boot-starter-web"
implementation 'com.aestasit.infrastructure.sshoogr:sshoogr:0.9.25'
Expand All @@ -71,9 +71,7 @@ dependencies {
integrationImplementation "org.springframework:spring-test"
integrationImplementation sourceSets.test.output
integrationImplementation sourceSets.main.output
integrationImplementation ("io.rest-assured:rest-assured:4.0.0") {
exclude group: "org.codehaus.groovy", module: "groovy" // use kork's version
}
integrationImplementation "io.rest-assured:rest-assured"
}

task integrationTest(type: Test) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ class BasicAmazonDeployHandler implements DeployHandler<BasicAmazonDeployDescrip
)

if (serverGroup) {
String subnetIdTag = serverGroup.asg.tags.find { it.key == SUBNET_ID_OVERRIDE_TAG }?.value
String subnetIdTag = serverGroup.asg.tags.find { it.key == BasicAmazonDeployHandler.SUBNET_ID_OVERRIDE_TAG }?.value
if (subnetIdTag) {
// source server group had subnet id overrides, propagate them forward
description.subnetIds = subnetIdTag.split(",")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,20 @@ import com.amazonaws.services.cloudwatch.model.Dimension
import com.amazonaws.services.cloudwatch.model.Metric
import com.fasterxml.jackson.annotation.JsonInclude
import com.netflix.spinnaker.clouddriver.model.CloudMetricDescriptor
import groovy.transform.Immutable

@Immutable
@JsonInclude(JsonInclude.Include.NON_EMPTY)
class AmazonMetricDescriptor implements CloudMetricDescriptor {
final String cloudProvider = 'aws'
final String namespace
final String name
final List<Dimension> dimensions

AmazonMetricDescriptor (String cloudProvider, String namespace, String name, List<Dimension> dimensions) {
this.cloudProvider = cloudProvider
this.namespace = namespace
this.name = name
this.dimensions = dimensions
}
static AmazonMetricDescriptor from(Metric metric) {
new AmazonMetricDescriptor('aws', metric.namespace, metric.metricName, metric.dimensions)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,8 @@ class SimpleServerGroup implements ServerGroup {
ServerGroup.Capacity capacity
ServerGroup.ImageSummary imageSummary
ServerGroup.ImagesSummary imagesSummary

Boolean isDisabled() {
disabled
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -572,5 +572,9 @@ class DiscoverySupportUnitSpec extends Specification {
ServerGroup.Capacity capacity
ServerGroup.ImageSummary getImageSummary() {}
ServerGroup.ImagesSummary getImagesSummary() {}

Boolean isDisabled() {
disabled
}
}
}
2 changes: 1 addition & 1 deletion clouddriver-azure/clouddriver-azure.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dependencies {
implementation "io.spinnaker.fiat:fiat-core:$fiatVersion"
implementation "io.spinnaker.kork:kork-exceptions"
implementation "io.spinnaker.kork:kork-moniker"
implementation "org.codehaus.groovy:groovy"
implementation "org.apache.groovy:groovy"
implementation "org.springframework.boot:spring-boot-actuator"
implementation "org.springframework.boot:spring-boot-starter-web"
implementation "com.azure.resourcemanager:azure-resourcemanager:2.19.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,10 @@ class AzureServerGroupDescription extends AzureResourceOpsDescription implements
String.format("%s-%s-%s", application, stack, detail)
}

Boolean isDisabled() {
disabled
}

@Override
Set<String> getLoadBalancers() {
if(this.appGatewayName != null) return Sets.newHashSet(this.appGatewayName)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,17 @@ package com.netflix.spinnaker.clouddriver.azure.resources.servergroup.ops.prepro
import com.netflix.spinnaker.clouddriver.azure.resources.servergroup.model.EnableDisableDestroyAzureServerGroupDescription
import com.netflix.spinnaker.clouddriver.orchestration.AtomicOperationDescriptionPreProcessor
import groovy.util.logging.Slf4j
import org.slf4j.Logger
import org.springframework.stereotype.Component

@Slf4j
@Component
class RegionsToRegionDescriptionPreProcessor implements AtomicOperationDescriptionPreProcessor {

private Logger getLog() {
return log
}

@Override
boolean supports(Class descriptionClass) {
return descriptionClass == EnableDisableDestroyAzureServerGroupDescription
Expand All @@ -36,7 +42,7 @@ class RegionsToRegionDescriptionPreProcessor implements AtomicOperationDescripti
region = regions[0]

if (regions.size() > 1) {
log.warn("EnableDisableDestroyAzureServerGroupDescription has regions size greater than 1: $regions")
getLog().warn("EnableDisableDestroyAzureServerGroupDescription has regions size greater than 1: $regions")
}
}

Expand Down
2 changes: 1 addition & 1 deletion clouddriver-cloudfoundry/clouddriver-cloudfoundry.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies {
implementation project(":cats:cats-core")
implementation project(":clouddriver-docker")

implementation "org.codehaus.groovy:groovy"
implementation "org.apache.groovy:groovy"

implementation "io.spinnaker.fiat:fiat-core:$fiatVersion"
implementation "org.apache.commons:commons-lang3"
Expand Down
2 changes: 1 addition & 1 deletion clouddriver-cloudrun/clouddriver-cloudrun.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dependencies {
implementation "com.squareup.retrofit:retrofit"
implementation "commons-io:commons-io"
implementation "org.apache.commons:commons-compress:1.20"
implementation "org.codehaus.groovy:groovy"
implementation "org.apache.groovy:groovy"
implementation "org.eclipse.jgit:org.eclipse.jgit:5.7.0.202003110725-r"
implementation "org.springframework.boot:spring-boot-actuator"
implementation "org.springframework.boot:spring-boot-starter-web"
Expand Down
4 changes: 2 additions & 2 deletions clouddriver-consul/clouddriver-consul.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ dependencies {
implementation "com.squareup.okhttp:okhttp"
implementation "com.squareup.retrofit:converter-jackson"
implementation "com.squareup.retrofit:retrofit"
implementation "org.codehaus.groovy:groovy"
implementation "org.codehaus.groovy:groovy-json"
implementation "org.apache.groovy:groovy"
implementation "org.apache.groovy:groovy-json"
implementation "org.springframework.boot:spring-boot-starter-web"
implementation "io.spinnaker.kork:kork-retrofit"
implementation "io.spinnaker.kork:kork-exceptions"
Expand Down
2 changes: 1 addition & 1 deletion clouddriver-core-tck/clouddriver-core-tck.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ dependencies {
implementation "org.junit.jupiter:junit-jupiter-api"
implementation "org.apache.commons:commons-lang3"
implementation "org.assertj:assertj-core"
implementation "org.codehaus.groovy:groovy"
implementation "org.apache.groovy:groovy"
}
6 changes: 3 additions & 3 deletions clouddriver-core/clouddriver-core.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies {

// This is because some classes in this module use the Groovy @Immutable annotation,
// which appears to require consumers to have core groovy on the classpath
api "org.codehaus.groovy:groovy"
api "org.apache.groovy:groovy"

implementation "javax.inject:javax.inject:1"
implementation "javax.validation:validation-api"
Expand Down Expand Up @@ -41,8 +41,8 @@ dependencies {
implementation "com.jakewharton.retrofit:retrofit1-okhttp3-client"
implementation "io.reactivex:rxjava"
implementation "net.jodah:failsafe:1.0.4"
implementation "org.codehaus.groovy:groovy"
implementation "org.codehaus.groovy:groovy-templates"
implementation "org.apache.groovy:groovy"
implementation "org.apache.groovy:groovy-templates"
implementation "org.springframework.boot:spring-boot-actuator"
implementation "redis.clients:jedis"
implementation "org.jooq:jooq"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class InMemoryTaskRepository implements TaskRepository {
List<Task> list() {
List<Task> tasks = new ArrayList<>();
for (Task value : repository.values()) {
if (!value.getStatus().completed) {
if (!value.getStatus().isCompleted()) {
tasks.add(value)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class DefaultOrchestrationProcessor implements OrchestrationProcessor {
}
}

if (task.status?.failed) {
if (task.status?.isFailed()) {
task.updateStatus(TASK_PHASE, "Orchestration completed with errors, see prior task logs.")
} else {
task.updateStatus(TASK_PHASE, "Orchestration completed.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ class ProjectClustersServiceSpec extends Specification {
String type = "test"
String cloudProvider = "test"
String region
boolean disabled
Boolean disabled
Set<String> instances = []
Set<String> loadBalancers
Set<String> securityGroups
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,8 @@ class SimpleServerGroup implements ServerGroup {
Capacity capacity
ImagesSummary imagesSummary
ImageSummary imageSummary

Boolean isDisabled() {
disabled
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class DefaultOrchestrationProcessorSpec extends Specification {
1 * taskRepository.create(_, _, taskKey) >> task
1 * atomicOperation.operate(_) >> { throw exception }
task.status.isFailed()
task.status.retryable == retryable
task.status.isRetryable() == retryable
//Tasks without SagaIds (i.e., not a saga) are not retryable
where:
Expand Down
2 changes: 1 addition & 1 deletion clouddriver-dcos/clouddriver-dcos.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ dependencies {
implementation "io.spinnaker.fiat:fiat-core:$fiatVersion"
implementation "io.spinnaker.kork:kork-moniker"
implementation "joda-time:joda-time:2.10.1"
implementation "org.codehaus.groovy:groovy"
implementation "org.apache.groovy:groovy"
implementation "org.springframework.boot:spring-boot-actuator"
implementation "org.springframework.boot:spring-boot-starter-web"
implementation 'com.cerner.marathon:marathon-client:0.6.3'
Expand Down
2 changes: 1 addition & 1 deletion clouddriver-docker/clouddriver-docker.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dependencies {
implementation "org.springframework.boot:spring-boot-actuator"
implementation "org.springframework.boot:spring-boot-starter-web"
implementation "org.springframework.cloud:spring-cloud-context"
implementation "org.codehaus.groovy:groovy"
implementation "org.apache.groovy:groovy"
implementation "com.google.guava:guava"
implementation "com.netflix.spectator:spectator-api"
implementation "com.squareup.okhttp:okhttp"
Expand Down
6 changes: 2 additions & 4 deletions clouddriver-ecs/clouddriver-ecs.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ dependencies {
implementation "org.apache.commons:commons-lang3"
implementation "org.apache.httpcomponents:httpclient"
implementation "org.apache.httpcomponents:httpcore"
implementation "org.codehaus.groovy:groovy"
implementation "org.apache.groovy:groovy"
implementation "org.springframework.boot:spring-boot-starter-web"

testImplementation "cglib:cglib-nodep"
Expand All @@ -56,9 +56,7 @@ dependencies {
integrationImplementation "com.mysql:mysql-connector-j"
integrationImplementation sourceSets.test.output
integrationImplementation sourceSets.main.output
integrationImplementation ("io.rest-assured:rest-assured:4.0.0") {
exclude group: "org.codehaus.groovy", module: "groovy" // use kork's version
}
integrationImplementation "io.rest-assured:rest-assured"
}

task integrationTest(type: Test) {
Expand Down
2 changes: 1 addition & 1 deletion clouddriver-elasticsearch/clouddriver-elasticsearch.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ dependencies {
implementation "io.spinnaker.kork:kork-retrofit"
implementation "io.spinnaker.kork:kork-security"
implementation "com.squareup.retrofit:retrofit"
implementation "org.codehaus.groovy:groovy"
implementation "org.apache.groovy:groovy"
implementation "org.elasticsearch:elasticsearch"
implementation "org.springframework.boot:spring-boot-starter-web"

Expand Down
2 changes: 1 addition & 1 deletion clouddriver-eureka/clouddriver-eureka.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dependencies {
implementation "com.amazonaws:aws-java-sdk"
implementation "com.squareup.retrofit:converter-jackson"
implementation "com.squareup.retrofit:retrofit"
implementation "org.codehaus.groovy:groovy"
implementation "org.apache.groovy:groovy"
implementation "org.springframework.boot:spring-boot-starter-web"

testImplementation "cglib:cglib-nodep"
Expand Down
2 changes: 1 addition & 1 deletion clouddriver-google-common/clouddriver-google-common.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ dependencies {
implementation "com.netflix.spectator:spectator-api"
implementation "io.spinnaker.fiat:fiat-api:$fiatVersion"
implementation "io.spinnaker.fiat:fiat-core:$fiatVersion"
implementation "org.codehaus.groovy:groovy"
implementation "org.apache.groovy:groovy"
implementation "org.slf4j:slf4j-api"
implementation "org.springframework.security:spring-security-config"
implementation "org.springframework.security:spring-security-core"
Expand Down
6 changes: 3 additions & 3 deletions clouddriver-google/clouddriver-google.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ dependencies {
implementation project(":clouddriver-google-common")
implementation project(":clouddriver-security")

implementation "org.codehaus.groovy:groovy"
implementation "org.codehaus.groovy:groovy-json"
implementation "org.apache.groovy:groovy"
implementation "org.apache.groovy:groovy-json"
implementation "org.apache.commons:commons-lang3"
implementation "com.google.apis:google-api-services-compute"
implementation "com.google.guava:guava"
Expand Down Expand Up @@ -46,7 +46,7 @@ dependencies {
testImplementation "org.spockframework:spock-spring"
testImplementation "org.springframework:spring-test"
testImplementation "org.springframework.boot:spring-boot-test"
testImplementation "org.codehaus.groovy:groovy-test"
testImplementation "org.apache.groovy:groovy-test"
}

configurations.all {
Expand Down
Loading
Loading