Skip to content

Commit 7b01d17

Browse files
committed
review: use intTest dependencies
1 parent c56077a commit 7b01d17

File tree

3 files changed

+34
-21
lines changed

3 files changed

+34
-21
lines changed

build-logic/src/main/kotlin/polaris-runtime.gradle.kts

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,32 @@ testing {
4848
tasks.named(sources.compileJavaTaskName).configure {
4949
dependsOn("compileQuarkusTestGeneratedSourcesJava")
5050
}
51-
configurations.named(sources.runtimeOnlyConfigurationName).configure {
52-
extendsFrom(configurations.getByName("testRuntimeOnly"))
53-
}
54-
configurations.named(sources.implementationConfigurationName).configure {
55-
// Let the test's implementation config extend testImplementation, so it also inherits the
56-
// project's "main" implementation dependencies (not just the "api" configuration)
57-
extendsFrom(configurations.getByName("testImplementation"))
58-
}
5951
sources { java.srcDirs(tasks.named("quarkusGenerateCodeTests")) }
6052
}
6153

6254
listOf("intTest", "cloudTest").forEach {
6355
register<JvmTestSuite>(it).configure { intTestSuiteConfigure(this) }
6456
}
57+
58+
named<JvmTestSuite>("intTest").configure {
59+
configurations.named(sources.runtimeOnlyConfigurationName).configure {
60+
extendsFrom(configurations.getByName("testRuntimeOnly"))
61+
}
62+
configurations.named(sources.implementationConfigurationName).configure {
63+
// Let the test's implementation config extend testImplementation, so it also inherits the
64+
// project's "main" implementation dependencies (not just the "api" configuration)
65+
extendsFrom(configurations.getByName("testImplementation"))
66+
}
67+
}
68+
69+
named<JvmTestSuite>("cloudTest").configure {
70+
configurations.named(sources.runtimeOnlyConfigurationName).configure {
71+
extendsFrom(configurations.getByName("intTestRuntimeOnly"))
72+
}
73+
configurations.named(sources.implementationConfigurationName).configure {
74+
extendsFrom(configurations.getByName("intTestImplementation"))
75+
}
76+
}
6577
}
6678
}
6779

runtime/server/build.gradle.kts

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,27 +54,28 @@ dependencies {
5454
implementation(enforcedPlatform(libs.quarkus.bom))
5555
implementation("io.quarkus:quarkus-container-image-docker")
5656

57+
testImplementation(enforcedPlatform(libs.quarkus.bom))
5758
testImplementation("io.quarkus:quarkus-junit5")
5859

59-
testImplementation(testFixtures(project(":polaris-runtime-service")))
60-
testImplementation(project(":polaris-runtime-test-common"))
61-
testImplementation(project(":polaris-core"))
62-
testImplementation(project(":polaris-api-management-model"))
63-
testImplementation(project(":polaris-minio-testcontainer"))
60+
intTestImplementation(testFixtures(project(":polaris-runtime-service")))
61+
intTestImplementation(project(":polaris-runtime-test-common"))
62+
intTestImplementation(project(":polaris-core"))
63+
intTestImplementation(project(":polaris-api-management-model"))
64+
intTestImplementation(project(":polaris-minio-testcontainer"))
6465

65-
testImplementation(project(":polaris-tests")) {
66+
intTestImplementation(project(":polaris-tests")) {
6667
// exclude all spark dependencies
6768
exclude(group = "org.apache.iceberg", module = "iceberg-spark-3.5_2.12")
6869
exclude(group = "org.apache.iceberg", module = "iceberg-spark-extensions-3.5_2.12")
6970
exclude(group = "org.apache.spark", module = "spark-sql_2.12")
7071
}
7172

72-
testImplementation(platform(libs.iceberg.bom))
73-
testImplementation("org.apache.iceberg:iceberg-api")
74-
testImplementation("org.apache.iceberg:iceberg-core")
75-
testImplementation("org.apache.iceberg:iceberg-aws")
76-
testImplementation("org.apache.iceberg:iceberg-api:${libs.versions.iceberg.get()}:tests")
77-
testImplementation("org.apache.iceberg:iceberg-core:${libs.versions.iceberg.get()}:tests")
73+
intTestImplementation(platform(libs.iceberg.bom))
74+
intTestImplementation("org.apache.iceberg:iceberg-api")
75+
intTestImplementation("org.apache.iceberg:iceberg-core")
76+
intTestImplementation("org.apache.iceberg:iceberg-aws")
77+
intTestImplementation("org.apache.iceberg:iceberg-api:${libs.versions.iceberg.get()}:tests")
78+
intTestImplementation("org.apache.iceberg:iceberg-core:${libs.versions.iceberg.get()}:tests")
7879

7980
// This dependency brings in RESTEasy Classic, which conflicts with Quarkus RESTEasy Reactive;
8081
// it must not be present during Quarkus augmentation otherwise Quarkus tests won't start.

runtime/server/src/intTest/java/org/apache/polaris/server/it/ServiceProducersIT.java renamed to runtime/service/src/test/java/org/apache/polaris/service/it/ServiceProducersIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* specific language governing permissions and limitations
1717
* under the License.
1818
*/
19-
package org.apache.polaris.server.it;
19+
package org.apache.polaris.service.it;
2020

2121
import static org.assertj.core.api.Assertions.assertThat;
2222

0 commit comments

Comments
 (0)