@@ -947,6 +947,9 @@ project(':iceberg-snowflake') {
947
947
948
948
project(' :iceberg-open-api' ) {
949
949
apply plugin : ' java-test-fixtures'
950
+ apply plugin : ' com.gradleup.shadow'
951
+
952
+ build. dependsOn shadowJar
950
953
951
954
dependencies {
952
955
testImplementation project(' :iceberg-api' )
@@ -970,11 +973,9 @@ project(':iceberg-open-api') {
970
973
testFixturesImplementation project(' :iceberg-gcp' )
971
974
testFixturesImplementation project(' :iceberg-azure' )
972
975
testFixturesImplementation(libs. hadoop3. common) {
973
- exclude group : ' log4j'
974
976
exclude group : ' org.slf4j'
975
977
exclude group : ' ch.qos.reload4j'
976
978
exclude group : ' org.apache.avro' , module : ' avro'
977
- exclude group : ' com.fasterxml.woodstox'
978
979
exclude group : ' com.google.guava'
979
980
exclude group : ' com.google.protobuf'
980
981
exclude group : ' org.apache.curator'
@@ -983,7 +984,6 @@ project(':iceberg-open-api') {
983
984
exclude group : ' org.apache.hadoop' , module : ' hadoop-auth'
984
985
exclude group : ' org.apache.commons' , module : ' commons-configuration2'
985
986
exclude group : ' org.apache.hadoop.thirdparty' , module : ' hadoop-shaded-protobuf_3_7'
986
- exclude group : ' org.codehaus.woodstox'
987
987
exclude group : ' org.eclipse.jetty'
988
988
}
989
989
testFixturesImplementation project(path : ' :iceberg-bundled-guava' , configuration : ' shadow' )
@@ -1017,6 +1017,28 @@ project(':iceberg-open-api') {
1017
1017
recommend. set(true )
1018
1018
}
1019
1019
check. dependsOn(' validateRESTCatalogSpec' )
1020
+
1021
+ shadowJar {
1022
+ archiveBaseName. set(" iceberg-open-api-test-fixtures-runtime" )
1023
+ archiveClassifier. set(null )
1024
+ configurations = [project. configurations. testFixturesRuntimeClasspath]
1025
+ from sourceSets. testFixtures. output
1026
+ zip64 true
1027
+
1028
+ // include the LICENSE and NOTICE files for the runtime Jar
1029
+ from(projectDir) {
1030
+ include ' LICENSE'
1031
+ include ' NOTICE'
1032
+ }
1033
+
1034
+ manifest {
1035
+ attributes ' Main-Class' : ' org.apache.iceberg.rest.RESTCatalogServer'
1036
+ }
1037
+ }
1038
+
1039
+ jar {
1040
+ enabled = false
1041
+ }
1020
1042
}
1021
1043
1022
1044
@Memoized
0 commit comments