-
Notifications
You must be signed in to change notification settings - Fork 741
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
upgrade to latest dependencies #218
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ dependencies { | |
compile spinnaker.dependency("korkWeb") | ||
compile spinnaker.dependency("frigga") | ||
compile spinnaker.dependency('cglib') | ||
compile('org.springframework.session:spring-session-data-redis:1.0.1.RELEASE') | ||
compile('org.springframework.session:spring-session-data-redis:1.1.1.RELEASE') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this lets us get rid of some dirty hackery we had to make spring-session-data-redis work with elasticache (see below for details) |
||
compile('org.opensaml:opensaml:2.6.4') | ||
|
||
testCompile "com.squareup.okhttp:mockwebserver:${spinnaker.version('okHttp')}" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,9 @@ | |
|
||
package com.netflix.spinnaker.gate.config | ||
|
||
import org.springframework.session.data.redis.config.ConfigureRedisAction | ||
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession | ||
|
||
import java.util.concurrent.ExecutorService | ||
import java.util.concurrent.Executors | ||
import javax.servlet.* | ||
|
@@ -38,11 +41,9 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty | |
import org.springframework.boot.context.embedded.FilterRegistrationBean | ||
import org.springframework.context.annotation.Bean | ||
import org.springframework.context.annotation.Configuration | ||
import org.springframework.context.annotation.Import | ||
import org.springframework.core.Ordered | ||
import org.springframework.core.annotation.Order | ||
import org.springframework.data.redis.connection.jedis.JedisConnectionFactory | ||
import org.springframework.session.data.redis.config.annotation.web.http.GateRedisHttpSessionConfiguration | ||
import org.springframework.stereotype.Component | ||
import org.springframework.web.client.RestTemplate | ||
import retrofit.Endpoint | ||
|
@@ -54,7 +55,7 @@ import static retrofit.Endpoints.newFixedEndpoint | |
@CompileStatic | ||
@Configuration | ||
@Slf4j | ||
@Import(GateRedisHttpSessionConfiguration) | ||
@EnableRedisHttpSession | ||
class GateConfig { | ||
@Value('${retrofit.logLevel:BASIC}') | ||
String retrofitLogLevel | ||
|
@@ -82,6 +83,12 @@ class GateConfig { | |
new RestTemplate() | ||
} | ||
|
||
@Bean | ||
@ConditionalOnProperty("redis.configuration.secure") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if the redis instance is locked down such that you can't issue |
||
ConfigureRedisAction configureRedisAction() { | ||
return ConfigureRedisAction.NO_OP | ||
} | ||
|
||
@Bean | ||
ExecutorService executorService() { | ||
Executors.newCachedThreadPool() | ||
|
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spring-session-data-redis is a patch release or two different than the version spring-boot brings in, so this will keep them in sync for now