Refactor the CR plugin to a Lifecycle one
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
plugins {
|
||||
id "java"
|
||||
id "org.springframework.boot"
|
||||
id "org.springframework.cr.smoke-test"
|
||||
id "org.springframework.lifecycle.smoke-test"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@@ -10,11 +10,11 @@ dependencies {
|
||||
implementation("org.springframework.integration:spring-integration-file")
|
||||
|
||||
implementation("org.crac:crac")
|
||||
implementation(project(":cr-listener"))
|
||||
implementation(project(":lifecycle-listener"))
|
||||
|
||||
testImplementation("org.springframework.boot:spring-boot-starter-test")
|
||||
testImplementation("org.springframework.integration:spring-integration-test")
|
||||
|
||||
appTestImplementation(project(":cr-smoke-test-support"))
|
||||
appTestImplementation(project(":lifecycle-smoke-test-support"))
|
||||
appTestImplementation("org.awaitility:awaitility:4.2.0")
|
||||
}
|
||||
|
||||
@@ -25,8 +25,8 @@ import java.util.UUID;
|
||||
import org.awaitility.Awaitility;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import org.springframework.cr.smoketest.support.assertj.AssertableOutput;
|
||||
import org.springframework.cr.smoketest.support.junit.ApplicationTest;
|
||||
import org.springframework.lifecycle.smoketest.support.assertj.AssertableOutput;
|
||||
import org.springframework.lifecycle.smoketest.support.junit.ApplicationTest;
|
||||
import org.springframework.util.StreamUtils;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
plugins {
|
||||
id "java"
|
||||
id "org.springframework.boot"
|
||||
id "org.springframework.cr.smoke-test"
|
||||
id "org.springframework.lifecycle.smoke-test"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@@ -24,16 +24,16 @@ dependencies {
|
||||
implementation("com.jayway.jsonpath:json-path")
|
||||
|
||||
implementation("org.crac:crac")
|
||||
implementation(project(":cr-listener"))
|
||||
implementation(project(":lifecycle-listener"))
|
||||
|
||||
runtimeOnly("com.h2database:h2")
|
||||
|
||||
testImplementation("org.springframework.boot:spring-boot-starter-test")
|
||||
|
||||
appTestImplementation(project(":cr-smoke-test-support"))
|
||||
appTestImplementation(project(":lifecycle-smoke-test-support"))
|
||||
appTestImplementation("org.awaitility:awaitility:4.2.0")
|
||||
}
|
||||
|
||||
crSmokeTest {
|
||||
lifecycleSmokeTest {
|
||||
webApplication = true
|
||||
}
|
||||
|
||||
@@ -22,8 +22,8 @@ import java.time.Duration;
|
||||
import org.awaitility.Awaitility;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import org.springframework.cr.smoketest.support.assertj.AssertableOutput;
|
||||
import org.springframework.cr.smoketest.support.junit.ApplicationTest;
|
||||
import org.springframework.lifecycle.smoketest.support.assertj.AssertableOutput;
|
||||
import org.springframework.lifecycle.smoketest.support.junit.ApplicationTest;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.test.web.reactive.server.WebTestClient;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
plugins {
|
||||
id "java"
|
||||
id "org.springframework.boot"
|
||||
id "org.springframework.cr.smoke-test"
|
||||
id "org.springframework.lifecycle.smoke-test"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@@ -11,10 +11,10 @@ dependencies {
|
||||
implementation("org.springframework.amqp:spring-rabbit:3.0.8")
|
||||
|
||||
implementation("org.crac:crac")
|
||||
implementation(project(":cr-listener"))
|
||||
implementation(project(":lifecycle-listener"))
|
||||
|
||||
testImplementation("org.springframework.boot:spring-boot-starter-test")
|
||||
|
||||
appTestImplementation(project(":cr-smoke-test-support"))
|
||||
appTestImplementation(project(":lifecycle-smoke-test-support"))
|
||||
appTestImplementation("org.awaitility:awaitility:4.2.0")
|
||||
}
|
||||
|
||||
@@ -20,8 +20,8 @@ import java.time.Duration;
|
||||
import org.awaitility.Awaitility;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import org.springframework.cr.smoketest.support.assertj.AssertableOutput;
|
||||
import org.springframework.cr.smoketest.support.junit.ApplicationTest;
|
||||
import org.springframework.lifecycle.smoketest.support.assertj.AssertableOutput;
|
||||
import org.springframework.lifecycle.smoketest.support.junit.ApplicationTest;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
plugins {
|
||||
id "java"
|
||||
id "org.springframework.boot"
|
||||
id "org.springframework.cr.smoke-test"
|
||||
id "org.springframework.lifecycle.smoke-test"
|
||||
id "com.github.davidmc24.gradle.plugin.avro" version "1.3.0"
|
||||
}
|
||||
|
||||
@@ -17,11 +17,11 @@ dependencies {
|
||||
implementation("org.apache.avro:avro:1.11.0")
|
||||
|
||||
implementation("org.crac:crac")
|
||||
implementation(project(":cr-listener"))
|
||||
implementation(project(":lifecycle-listener"))
|
||||
|
||||
testImplementation("org.springframework.boot:spring-boot-starter-test")
|
||||
|
||||
appTestImplementation(project(":cr-smoke-test-support"))
|
||||
appTestImplementation(project(":lifecycle-smoke-test-support"))
|
||||
appTestImplementation("org.awaitility:awaitility:4.2.0")
|
||||
}
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@ import java.time.Duration;
|
||||
import org.awaitility.Awaitility;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import org.springframework.cr.smoketest.support.assertj.AssertableOutput;
|
||||
import org.springframework.cr.smoketest.support.junit.ApplicationTest;
|
||||
import org.springframework.lifecycle.smoketest.support.assertj.AssertableOutput;
|
||||
import org.springframework.lifecycle.smoketest.support.junit.ApplicationTest;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
plugins {
|
||||
id "java"
|
||||
id "org.springframework.boot"
|
||||
id "org.springframework.cr.smoke-test"
|
||||
id "org.springframework.lifecycle.smoke-test"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@@ -12,10 +12,10 @@ dependencies {
|
||||
implementation("com.fasterxml.jackson.core:jackson-databind")
|
||||
|
||||
implementation("org.crac:crac")
|
||||
implementation(project(":cr-listener"))
|
||||
implementation(project(":lifecycle-listener"))
|
||||
|
||||
testImplementation("org.springframework.boot:spring-boot-starter-test")
|
||||
|
||||
appTestImplementation(project(":cr-smoke-test-support"))
|
||||
appTestImplementation(project(":lifecycle-smoke-test-support"))
|
||||
appTestImplementation("org.awaitility:awaitility:4.2.0")
|
||||
}
|
||||
|
||||
@@ -20,8 +20,8 @@ import java.time.Duration;
|
||||
import org.awaitility.Awaitility;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import org.springframework.cr.smoketest.support.assertj.AssertableOutput;
|
||||
import org.springframework.cr.smoketest.support.junit.ApplicationTest;
|
||||
import org.springframework.lifecycle.smoketest.support.assertj.AssertableOutput;
|
||||
import org.springframework.lifecycle.smoketest.support.junit.ApplicationTest;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
plugins {
|
||||
id "java"
|
||||
id "org.springframework.boot"
|
||||
id "org.springframework.cr.smoke-test"
|
||||
id "org.springframework.lifecycle.smoke-test"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@@ -15,10 +15,10 @@ dependencies {
|
||||
implementation("com.fasterxml.jackson.core:jackson-databind")
|
||||
|
||||
implementation("org.crac:crac")
|
||||
implementation(project(":cr-listener"))
|
||||
implementation(project(":lifecycle-listener"))
|
||||
|
||||
testImplementation("org.springframework.boot:spring-boot-starter-test")
|
||||
|
||||
appTestImplementation(project(":cr-smoke-test-support"))
|
||||
appTestImplementation(project(":lifecycle-smoke-test-support"))
|
||||
appTestImplementation("org.awaitility:awaitility:4.2.0")
|
||||
}
|
||||
|
||||
@@ -21,8 +21,8 @@ import java.time.Duration;
|
||||
import org.awaitility.Awaitility;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import org.springframework.cr.smoketest.support.assertj.AssertableOutput;
|
||||
import org.springframework.cr.smoketest.support.junit.ApplicationTest;
|
||||
import org.springframework.lifecycle.smoketest.support.assertj.AssertableOutput;
|
||||
import org.springframework.lifecycle.smoketest.support.junit.ApplicationTest;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
plugins {
|
||||
id "java"
|
||||
id "org.springframework.boot"
|
||||
id "org.springframework.cr.smoke-test"
|
||||
id "org.springframework.lifecycle.smoke-test"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@@ -14,10 +14,10 @@ dependencies {
|
||||
}
|
||||
|
||||
implementation("org.crac:crac")
|
||||
implementation(project(":cr-listener"))
|
||||
implementation(project(":lifecycle-listener"))
|
||||
|
||||
testImplementation("org.springframework.boot:spring-boot-starter-test")
|
||||
|
||||
appTestImplementation(project(":cr-smoke-test-support"))
|
||||
appTestImplementation(project(":lifecycle-smoke-test-support"))
|
||||
appTestImplementation("org.awaitility:awaitility:4.2.0")
|
||||
}
|
||||
|
||||
@@ -5,8 +5,8 @@ import java.time.Duration;
|
||||
import org.awaitility.Awaitility;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import org.springframework.cr.smoketest.support.assertj.AssertableOutput;
|
||||
import org.springframework.cr.smoketest.support.junit.ApplicationTest;
|
||||
import org.springframework.lifecycle.smoketest.support.assertj.AssertableOutput;
|
||||
import org.springframework.lifecycle.smoketest.support.junit.ApplicationTest;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
plugins {
|
||||
id "java"
|
||||
id "org.springframework.boot"
|
||||
id "org.springframework.cr.smoke-test"
|
||||
id "org.springframework.lifecycle.smoke-test"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@@ -13,10 +13,10 @@ dependencies {
|
||||
}
|
||||
|
||||
implementation("org.crac:crac")
|
||||
implementation(project(":cr-listener"))
|
||||
implementation(project(":lifecycle-listener"))
|
||||
|
||||
testImplementation("org.springframework.boot:spring-boot-starter-test")
|
||||
|
||||
appTestImplementation(project(":cr-smoke-test-support"))
|
||||
appTestImplementation(project(":lifecycle-smoke-test-support"))
|
||||
appTestImplementation("org.awaitility:awaitility:4.2.0")
|
||||
}
|
||||
|
||||
@@ -5,8 +5,8 @@ import java.time.Duration;
|
||||
import org.awaitility.Awaitility;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import org.springframework.cr.smoketest.support.assertj.AssertableOutput;
|
||||
import org.springframework.cr.smoketest.support.junit.ApplicationTest;
|
||||
import org.springframework.lifecycle.smoketest.support.assertj.AssertableOutput;
|
||||
import org.springframework.lifecycle.smoketest.support.junit.ApplicationTest;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user