-
Notifications
You must be signed in to change notification settings - Fork 7
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 Spring boot to 2.0.2.RELEASE and spring security to 2.3.3.RELEASE #8
base: master
Are you sure you want to change the base?
Changes from all commits
faadec9
44b57fe
c4736a7
5b386dd
3287e39
4d3809d
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 |
---|---|---|
|
@@ -24,4 +24,6 @@ build/ | |
nbbuild/ | ||
dist/ | ||
nbdist/ | ||
.nb-gradle/ | ||
.nb-gradle/ | ||
|
||
.DS_Store |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,41 @@ | ||
buildscript { | ||
ext { | ||
springBootVersion = '1.5.6.RELEASE' | ||
coverallsVersion = '2.8.1' | ||
} | ||
repositories { | ||
mavenCentral() | ||
} | ||
dependencies { | ||
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") | ||
classpath("org.kt3k.gradle.plugin:coveralls-gradle-plugin:${coverallsVersion}") | ||
} | ||
} | ||
|
||
apply plugin: 'java' | ||
apply plugin: 'eclipse' | ||
apply plugin: 'org.springframework.boot' | ||
apply plugin: 'jacoco' | ||
apply plugin: 'com.github.kt3k.coveralls' | ||
apply plugin: 'maven' | ||
|
||
version = '0.0.1-SNAPSHOT' | ||
group = 'mertz.security' | ||
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. group = 'com.github.mert-z' |
||
|
||
sourceCompatibility = 1.8 | ||
|
||
repositories { | ||
mavenCentral() | ||
maven { | ||
url 'https://repo.spring.io/libs-release' | ||
} | ||
} | ||
|
||
dependencies { | ||
compile('org.springframework.boot:spring-boot-starter-data-cassandra') | ||
compile('org.springframework.security.oauth:spring-security-oauth2') | ||
compile('org.springframework.data:spring-data-cassandra:2.0.10.RELEASE') | ||
compile('org.springframework.security.oauth:spring-security-oauth2:2.3.3.RELEASE') | ||
compile('com.fasterxml.jackson.core:jackson-databind:2.9.0') | ||
compile('com.fasterxml.jackson.core:jackson-annotations:2.9.0') | ||
compile('com.fasterxml.jackson.core:jackson-core:2.9.0') | ||
|
||
testCompile('org.springframework.boot:spring-boot-starter-test') | ||
testCompile('org.springframework.security:spring-security-test') | ||
testCompile('org.springframework.boot:spring-boot-starter-test:2.0.2.RELEASE') | ||
testCompile('org.springframework.security:spring-security-test:5.0.8.RELEASE') | ||
testCompile('org.cassandraunit:cassandra-unit-spring:3.1.3.2') | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rootProject.name = 'spring-oauth2-cassandra-token-store' | ||
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. newline please |
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,10 +4,10 @@ | |
import java.util.List; | ||
|
||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.cassandra.core.keyspace.CreateKeyspaceSpecification; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.data.cassandra.config.AbstractCassandraConfiguration; | ||
import org.springframework.data.cassandra.config.SchemaAction; | ||
import org.springframework.data.cassandra.config.java.AbstractCassandraConfiguration; | ||
import org.springframework.data.cassandra.core.cql.keyspace.CreateKeyspaceSpecification; | ||
import org.springframework.data.cassandra.repository.config.EnableCassandraRepositories; | ||
|
||
@Configuration | ||
|
@@ -28,7 +28,7 @@ protected List<CreateKeyspaceSpecification> getKeyspaceCreations() { | |
|
||
@Override | ||
public SchemaAction getSchemaAction() { | ||
return SchemaAction.CREATE_IF_NOT_EXISTS; | ||
return SchemaAction.RECREATE; | ||
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 can be problematic for a rolling upgrade. Shouldn't we keep the existing tokens in the DB since we are not altering DB schema? |
||
} | ||
|
||
@Override | ||
|
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.
newline please.
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.
This will be automatically fixed for you when you do a git pull.