-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2: Upgrade Eventuate CDC dependencies. Refactored profile resolvers.…
… Removed redundant spring version definitions.
- Loading branch information
Showing
22 changed files
with
45 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
apply plugin: 'java-library' | ||
|
||
dependencies { | ||
api "org.springframework.boot:spring-boot-starter:$springBootVersion" | ||
api "org.springframework.boot:spring-boot-starter-jdbc:$springBootVersion" | ||
api "org.springframework.boot:spring-boot-starter" | ||
api "org.springframework.boot:spring-boot-starter-jdbc" | ||
api 'mysql:mysql-connector-java:8.0.21' | ||
api ('org.postgresql:postgresql:42.1.4') { | ||
exclude group: "org.slf4j", module: "slf4j-simple" | ||
} | ||
api group: 'com.microsoft.sqlserver', name: 'mssql-jdbc', version: '7.2.1.jre8' | ||
|
||
testImplementation "org.springframework.boot:spring-boot-starter-test:$springBootVersion" | ||
testImplementation "org.springframework.boot:spring-boot-starter-test" | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
apply plugin: 'java-library' | ||
|
||
dependencies { | ||
api "org.springframework.boot:spring-boot-starter:$springBootVersion" | ||
api "org.springframework.boot:spring-boot-starter-test:$springBootVersion" | ||
api "org.springframework.boot:spring-boot-starter-jdbc:$springBootVersion" | ||
api "org.springframework.boot:spring-boot-starter" | ||
api "org.springframework.boot:spring-boot-starter-test" | ||
api "org.springframework.boot:spring-boot-starter-jdbc" | ||
} |
10 changes: 2 additions & 8 deletions
10
...est-util/src/main/java/io/eventuate/local/testutil/DefaultAndPollingProfilesResolver.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,8 @@ | ||
package io.eventuate.local.testutil; | ||
|
||
import java.util.Set; | ||
|
||
public class DefaultAndPollingProfilesResolver extends DefaultProfilesResolver { | ||
@Override | ||
public String[] resolve(Class<?> testClass) { | ||
Set<String> activeProfiles = getDefaultProfiles(); | ||
|
||
activeProfiles.add("EventuatePolling"); | ||
|
||
return convertProfilesToArray(activeProfiles); | ||
public DefaultAndPollingProfilesResolver() { | ||
super("EventuatePolling"); | ||
} | ||
} |
11 changes: 2 additions & 9 deletions
11
...st-util/src/main/java/io/eventuate/local/testutil/DefaultAndPostgresProfilesResolver.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,7 @@ | ||
package io.eventuate.local.testutil; | ||
|
||
import java.util.Set; | ||
|
||
public class DefaultAndPostgresProfilesResolver extends DefaultProfilesResolver { | ||
@Override | ||
public String[] resolve(Class<?> testClass) { | ||
Set<String> activeProfiles = getDefaultProfiles(); | ||
|
||
activeProfiles.add("postgres"); | ||
|
||
return convertProfilesToArray(activeProfiles); | ||
public DefaultAndPostgresProfilesResolver() { | ||
super("postgres"); | ||
} | ||
} |
12 changes: 2 additions & 10 deletions
12
...util/src/main/java/io/eventuate/local/testutil/DefaultAndPostgresWalProfilesResolver.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,7 @@ | ||
package io.eventuate.local.testutil; | ||
|
||
import java.util.Set; | ||
|
||
public class DefaultAndPostgresWalProfilesResolver extends DefaultProfilesResolver { | ||
@Override | ||
public String[] resolve(Class<?> testClass) { | ||
Set<String> activeProfiles = getDefaultProfiles(); | ||
|
||
activeProfiles.add("PostgresWal"); | ||
activeProfiles.add("postgres"); | ||
|
||
return convertProfilesToArray(activeProfiles); | ||
public DefaultAndPostgresWalProfilesResolver() { | ||
super("PostgresWal", "postgres"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters