Skip to content

Commit 2022204

Browse files
committed
use compileOnly to leverage package binding in downstreams compile time
1 parent e6d03b4 commit 2022204

File tree

77 files changed

+1208
-148
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+1208
-148
lines changed

build.gradle.kts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ apiValidation {
2323
"spring-example",
2424
"spring-4x-example",
2525
"spring-standalone-example",
26-
"spring-streams-example"
26+
"spring-streams-example",
27+
"tests"
2728
)
2829
}
2930
kover {
@@ -46,10 +47,10 @@ kover {
4647
}
4748
}
4849
}
49-
val related = subprojects.of("lib", "spring", "examples", "ktor", "micronaut")
50+
val related = subprojects.of("lib", "spring", "examples", "ktor", "micronaut", "tests")
5051
dependencies { related.forEach { kover(it) } }
5152

52-
subprojects.of("lib", "spring", "examples", "ktor", "micronaut") {
53+
subprojects.of("lib", "spring", "examples", "ktor", "micronaut", "tests") {
5354
apply {
5455
plugin("kotlin")
5556
plugin(rootProject.libs.plugins.spotless.get().pluginId)

examples/spring-4x-example/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ dependencies {
2222
testImplementation(libs.jackson3.kotlin)
2323
testImplementation(projects.stove.lib.stoveTestingE2eHttp)
2424
testImplementation(projects.stove.lib.stoveTestingE2eWiremock)
25-
testImplementation(projects.stove.starters.spring.stoveSpring4xTestingE2e)
26-
testImplementation(projects.stove.starters.spring.stoveSpring4xTestingE2eKafka)
25+
testImplementation(projects.stove.starters.spring.stoveSpringTestingE2e)
26+
testImplementation(projects.stove.starters.spring.stoveSpringTestingE2eKafka)
2727
}
2828

2929
application { mainClass.set("stove.spring.example4x.ExampleAppkt") }

examples/spring-4x-example/src/test/kotlin/com/stove/spring/example4x/e2e/Stove.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ class Stove : AbstractProjectConfig() {
2222
}
2323
kafka {
2424
KafkaSystemOptions(
25-
ops = defaultKafkaOps(),
2625
containerOptions = KafkaContainerOptions(tag = "7.8.1"),
2726
configureExposedConfiguration = {
2827
listOf(
@@ -45,7 +44,7 @@ class Stove : AbstractProjectConfig() {
4544
springBoot(
4645
runner = { parameters ->
4746
stove.spring.example4x.run(parameters) {
48-
addTestDependencies {
47+
addTestDependencies4x {
4948
registerBean<TestSystemKafkaInterceptor<*, *>>(primary = true)
5049
registerBean {
5150
val jsonMapper = this.bean<JsonMapper>()

examples/spring-example/src/test/kotlin/com/stove/spring/example/e2e/Stove.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ class Stove : AbstractProjectConfig() {
3838
}
3939
kafka {
4040
KafkaSystemOptions(
41-
ops = defaultKafkaOps(),
4241
containerOptions = KafkaContainerOptions(tag = "7.8.1"),
4342
configureExposedConfiguration = {
4443
listOf(

settings.gradle.kts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@ include(
1717
)
1818
include(
1919
"starters:ktor:stove-ktor-testing-e2e",
20-
"starters:spring:stove-spring-testing-e2e-common",
21-
"starters:spring:stove-spring-testing-e2e-kafka-common",
2220
"starters:spring:stove-spring-testing-e2e",
2321
"starters:spring:stove-spring-testing-e2e-kafka",
24-
"starters:spring:stove-spring-4x-testing-e2e",
25-
"starters:spring:stove-spring-4x-testing-e2e-kafka",
22+
"starters:spring:tests:spring-2x-tests",
23+
"starters:spring:tests:spring-2x-kafka-tests",
24+
"starters:spring:tests:spring-3x-tests",
25+
"starters:spring:tests:spring-3x-kafka-tests",
26+
"starters:spring:tests:spring-4x-tests",
27+
"starters:spring:tests:spring-4x-kafka-tests",
2628
"starters:micronaut:stove-micronaut-testing-e2e"
2729
)
2830
include(

starters/spring/stove-spring-4x-testing-e2e-kafka/api/stove-spring-4x-testing-e2e-kafka.api

Lines changed: 0 additions & 5 deletions
This file was deleted.

starters/spring/stove-spring-4x-testing-e2e-kafka/src/main/kotlin/com/trendyol/stove/testing/e2e/kafka/KafkaTemplateCompatibility.kt

Lines changed: 0 additions & 25 deletions
This file was deleted.

starters/spring/stove-spring-4x-testing-e2e/api/stove-spring-4x-testing-e2e.api

Lines changed: 0 additions & 5 deletions
This file was deleted.

starters/spring/stove-spring-4x-testing-e2e/src/main/kotlin/com/trendyol/stove/testing/e2e/registrar.kt

Lines changed: 0 additions & 19 deletions
This file was deleted.

starters/spring/stove-spring-testing-e2e-common/build.gradle.kts

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)