@@ -82,28 +82,26 @@ project.extra["extraJvmArgs"] = if (extra["jdkVersion"] in listOf("8", "11")) {
82
82
listOf (
83
83
" -XX:+IgnoreUnrecognizedVMOptions" ,
84
84
" --add-opens" , " java.base/java.io=ALL-UNNAMED" ,
85
+ " --add-opens" , " java.base/java.lang=ALL-UNNAMED" ,
85
86
" --add-opens" , " java.base/java.lang.invoke=ALL-UNNAMED" ,
86
87
" --add-opens" , " java.base/java.lang.reflect=ALL-UNNAMED" ,
87
- " --add-opens" , " java.base/java.lang=ALL-UNNAMED" ,
88
88
" --add-opens" , " java.base/java.math=ALL-UNNAMED" ,
89
89
" --add-opens" , " java.base/java.net=ALL-UNNAMED" ,
90
90
" --add-opens" , " java.base/java.nio=ALL-UNNAMED" ,
91
91
" --add-opens" , " java.base/java.text=ALL-UNNAMED" ,
92
92
" --add-opens" , " java.base/java.time=ALL-UNNAMED" ,
93
93
" --add-opens" , " java.base/java.util.concurrent.atomic=ALL-UNNAMED" ,
94
94
" --add-opens" , " java.base/java.util.concurrent=ALL-UNNAMED" ,
95
- " --add-opens" , " java.base/java.util.regex=ALL-UNNAMED" ,
96
95
" --add-opens" , " java.base/java.util=ALL-UNNAMED" ,
96
+ " --add-opens" , " java.base/java.util.regex=ALL-UNNAMED" ,
97
97
" --add-opens" , " java.base/jdk.internal.ref=ALL-UNNAMED" ,
98
98
" --add-opens" , " java.base/jdk.internal.reflect=ALL-UNNAMED" ,
99
99
" --add-opens" , " java.sql/java.sql=ALL-UNNAMED" ,
100
- " --add-opens" , " java.base/sun.util.calendar=ALL-UNNAMED" ,
101
100
" --add-opens" , " java.base/sun.nio.ch=ALL-UNNAMED" ,
102
101
" --add-opens" , " java.base/sun.nio.cs=ALL-UNNAMED" ,
103
102
" --add-opens" , " java.base/sun.security.action=ALL-UNNAMED" ,
104
103
" --add-opens" , " java.base/sun.util.calendar=ALL-UNNAMED" ,
105
104
" --add-opens" , " java.security.jgss/sun.security.krb5=ALL-UNNAMED" ,
106
- " --add-opens" , " java.base/java.lang.reflect=ALL-UNNAMED"
107
105
)
108
106
}
109
107
@@ -333,8 +331,8 @@ subprojects {
333
331
" JavaTimeDefaultTimeZone" ,
334
332
" JdkObsolete" ,
335
333
" LockNotBeforeTry" ,
336
- " MissingSummary" ,
337
334
" MissingOverride" ,
335
+ " MissingSummary" ,
338
336
" MutableConstantField" ,
339
337
" NonOverridingEquals" ,
340
338
" ObjectEqualsForPrimitives" ,
@@ -360,7 +358,12 @@ subprojects {
360
358
options.locale = " en_US"
361
359
362
360
val projectName = project.name
363
- if (projectName == " common" || projectName == " api" || projectName == " client-java" || projectName == " client-cli" || projectName == " filesystem-hadoop3" ) {
361
+ if (projectName == " api" ||
362
+ projectName == " client-java" ||
363
+ projectName == " client-cli" ||
364
+ projectName == " common" ||
365
+ projectName == " filesystem-hadoop3"
366
+ ) {
364
367
options {
365
368
(this as CoreJavadocOptions ).addStringOption(" Xwerror" , " -quiet" )
366
369
isFailOnError = true
@@ -408,10 +411,10 @@ subprojects {
408
411
publishing {
409
412
publications {
410
413
create<MavenPublication >(" MavenJava" ) {
411
- if (project.name == " web" ||
412
- project.name == " docs" ||
414
+ if (project.name == " docs" ||
413
415
project.name == " integration-test" ||
414
- project.name == " integration-test-common"
416
+ project.name == " integration-test-common" ||
417
+ project.name == " web"
415
418
) {
416
419
setArtifacts(emptyList<Any >())
417
420
} else {
@@ -523,44 +526,44 @@ tasks.rat {
523
526
val exclusions = mutableListOf (
524
527
// Ignore files we track but do not need full headers
525
528
" **/.github/**/*" ,
526
- " dev/docker/**/*.xml" ,
527
- " dev/docker/**/*.conf" ,
528
- " dev/docker/kerberos-hive/kadm5.acl" ,
529
529
" **/*.log" ,
530
530
" **/*.out" ,
531
- " **/trino-ci-testset" ,
532
531
" **/licenses/*.txt" ,
533
532
" **/licenses/*.md" ,
534
- " docs/**/*.md" ,
535
- " spark-connector/spark-common/src/test/resources/**" ,
536
- " web/web/.**" ,
537
- " web/web/next-env.d.ts" ,
538
- " web/web/dist/**/*" ,
539
- " web/web/node_modules/**/*" ,
540
- " web/web/src/lib/utils/axios/**/*" ,
541
- " web/web/src/lib/enums/httpEnum.js" ,
542
- " web/web/src/types/axios.d.ts" ,
543
- " web/web/yarn.lock" ,
544
- " web/web/package-lock.json" ,
545
- " web/web/pnpm-lock.yaml" ,
546
- " web/web/src/lib/icons/svg/**/*.svg" ,
547
533
" **/LICENSE.*" ,
548
534
" **/NOTICE.*" ,
549
- " DISCLAIMER_WIP.txt " ,
535
+ " **/trino-ci-testset " ,
550
536
" DISCLAIMER.txt" ,
537
+ " DISCLAIMER_WIP.txt" ,
551
538
" ROADMAP.md" ,
539
+ " clients/cli/src/main/resources/*.txt" ,
552
540
" clients/client-python/.pytest_cache/*" ,
553
- " clients/client-python/**/__pycache__" ,
554
541
" clients/client-python/.venv/*" ,
542
+ " clients/client-python/**/__pycache__" ,
555
543
" clients/client-python/venv/*" ,
556
544
" clients/client-python/apache_gravitino.egg-info/*" ,
545
+ " clients/client-python/docs/build" ,
546
+ " clients/client-python/docs/source/generated" ,
557
547
" clients/client-python/gravitino/utils/http_client.py" ,
558
548
" clients/client-python/tests/unittests/htmlcov/*" ,
559
549
" clients/client-python/tests/integration/htmlcov/*" ,
560
- " clients/client-python/docs/build" ,
561
- " clients/client-python/docs/source/generated" ,
562
- " clients/cli/src/main/resources/*.txt" ,
563
- " clients/filesystem-fuse/Cargo.lock"
550
+ " clients/filesystem-fuse/Cargo.lock" ,
551
+ " dev/docker/**/*.xml" ,
552
+ " dev/docker/**/*.conf" ,
553
+ " dev/docker/kerberos-hive/kadm5.acl" ,
554
+ " docs/**/*.md" ,
555
+ " spark-connector/spark-common/src/test/resources/**" ,
556
+ " web/web/.**" ,
557
+ " web/web/dist/**/*" ,
558
+ " web/web/next-env.d.ts" ,
559
+ " web/web/node_modules/**/*" ,
560
+ " web/web/package-lock.json" ,
561
+ " web/web/pnpm-lock.yaml" ,
562
+ " web/web/src/lib/enums/httpEnum.js" ,
563
+ " web/web/src/lib/icons/svg/**/*.svg" ,
564
+ " web/web/src/lib/utils/axios/**/*" ,
565
+ " web/web/src/types/axios.d.ts" ,
566
+ " web/web/yarn.lock"
564
567
)
565
568
566
569
// Add .gitignore excludes to the Apache Rat exclusion list.
@@ -593,7 +596,14 @@ tasks {
593
596
val outputDir = projectDir.dir(" distribution" )
594
597
595
598
val compileDistribution by registering {
596
- dependsOn(" :web:web:build" , " copySubprojectDependencies" , " copyCatalogLibAndConfigs" , " :authorizations:copyLibAndConfig" , " copySubprojectLib" , " iceberg:iceberg-rest-server:copyLibAndConfigs" )
599
+ dependsOn(
600
+ " copyCatalogLibAndConfigs" ,
601
+ " copySubprojectDependencies" ,
602
+ " copySubprojectLib" ,
603
+ " :authorizations:copyLibAndConfig" ,
604
+ " :iceberg:iceberg-rest-server:copyLibAndConfigs"
605
+ " :web:web:build" ,
606
+ )
597
607
598
608
group = " gravitino distribution"
599
609
outputs.dir(projectDir.dir(" distribution/package" ))
@@ -641,7 +651,11 @@ tasks {
641
651
doLast {
642
652
copy {
643
653
from(projectDir.dir(" conf" )) {
644
- include(" ${rootProject.name} -iceberg-rest-server.conf.template" , " ${rootProject.name} -env.sh.template" , " log4j2.properties.template" )
654
+ include(
655
+ " ${rootProject.name} -iceberg-rest-server.conf.template" ,
656
+ " ${rootProject.name} -env.sh.template" ,
657
+ " log4j2.properties.template"
658
+ )
645
659
into(" ${rootProject.name} -iceberg-rest-server/conf" )
646
660
}
647
661
from(projectDir.dir(" bin" )) {
@@ -783,13 +797,20 @@ tasks {
783
797
784
798
register(" copySubprojectDependencies" , Copy ::class ) {
785
799
subprojects.forEach() {
786
- if (! it.name.startsWith(" catalog " ) &&
787
- ! it.name.startsWith(" authorization " ) &&
800
+ if (! it.name.startsWith(" authorization " ) &&
801
+ ! it.name.startsWith(" catalog " ) &&
788
802
! it.name.startsWith(" cli" ) &&
789
- ! it.name.startsWith(" client" ) && ! it.name.startsWith(" filesystem" ) && ! it.name.startsWith(" spark" ) && ! it.name.startsWith(" iceberg" ) && it.name != " trino-connector" &&
790
- it.name != " integration-test" && it.name != " bundled-catalog" && ! it.name.startsWith(" flink" ) &&
791
- it.name != " integration-test" && it.name != " hive-metastore-common" && ! it.name.startsWith(" flink" ) &&
792
- it.parent?.name != " bundles" && it.name != " hadoop-common"
803
+ ! it.name.startsWith(" client" ) &&
804
+ ! it.name.startsWith(" filesystem" ) &&
805
+ ! it.name.startsWith(" flink" ) &&
806
+ ! it.name.startsWith(" iceberg" ) &&
807
+ ! it.name.startsWith(" spark" ) &&
808
+ it.name != " bundled-catalog" &&
809
+ it.name != " hadoop-common" &&
810
+ it.name != " hive-metastore-common" &&
811
+ it.name != " integration-test" &&
812
+ it.name != " trino-connector" &&
813
+ it.parent?.name != " bundles"
793
814
) {
794
815
from(it.configurations.runtimeClasspath)
795
816
into(" distribution/package/libs" )
@@ -799,18 +820,20 @@ tasks {
799
820
800
821
register(" copySubprojectLib" , Copy ::class ) {
801
822
subprojects.forEach() {
802
- if (! it.name.startsWith(" catalog " ) &&
803
- ! it.name.startsWith(" client " ) &&
823
+ if (! it.name.startsWith(" authorization " ) &&
824
+ ! it.name.startsWith(" catalog " ) &&
804
825
! it.name.startsWith(" cli" ) &&
805
- ! it.name.startsWith(" authorization " ) &&
826
+ ! it.name.startsWith(" client " ) &&
806
827
! it.name.startsWith(" filesystem" ) &&
807
- ! it.name.startsWith(" spark " ) &&
828
+ ! it.name.startsWith(" flink " ) &&
808
829
! it.name.startsWith(" iceberg" ) &&
809
830
! it.name.startsWith(" integration-test" ) &&
810
- ! it.name.startsWith(" flink " ) &&
831
+ ! it.name.startsWith(" spark " ) &&
811
832
! it.name.startsWith(" trino-connector" ) &&
812
833
it.name != " hive-metastore-common" &&
813
- it.name != " docs" && it.name != " hadoop-common" && it.parent?.name != " bundles"
834
+ it.name != " docs" &&
835
+ it.name != " hadoop-common" &&
836
+ it.parent?.name != " bundles"
814
837
) {
815
838
dependsOn(" ${it.name} :build" )
816
839
from(" ${it.name} /build/libs" )
@@ -823,16 +846,16 @@ tasks {
823
846
824
847
register(" copyCatalogLibAndConfigs" , Copy ::class ) {
825
848
dependsOn(
849
+ " :catalogs:catalog-hadoop:copyLibAndConfig" ,
826
850
" :catalogs:catalog-hive:copyLibAndConfig" ,
827
- " :catalogs:catalog-lakehouse-iceberg:copyLibAndConfig" ,
828
- " :catalogs:catalog-lakehouse-paimon:copyLibAndConfig" ,
829
- " catalogs:catalog-lakehouse-hudi:copyLibAndConfig" ,
830
851
" :catalogs:catalog-jdbc-doris:copyLibAndConfig" ,
831
852
" :catalogs:catalog-jdbc-mysql:copyLibAndConfig" ,
832
853
" :catalogs:catalog-jdbc-oceanbase:copyLibAndConfig" ,
833
854
" :catalogs:catalog-jdbc-postgresql:copyLibAndConfig" ,
834
- " :catalogs:catalog-hadoop:copyLibAndConfig" ,
835
855
" :catalogs:catalog-kafka:copyLibAndConfig" ,
856
+ " :catalogs:catalog-lakehouse-hudi:copyLibAndConfig" ,
857
+ " :catalogs:catalog-lakehouse-iceberg:copyLibAndConfig" ,
858
+ " :catalogs:catalog-lakehouse-paimon:copyLibAndConfig" ,
836
859
" :catalogs:catalog-model:copyLibAndConfig"
837
860
)
838
861
}
@@ -940,7 +963,7 @@ fun checkMacDockerConnector() {
940
963
project.extra[" macDockerConnector" ] = true
941
964
}
942
965
} catch (e: Exception ) {
943
- println (" checkContainerRunning command execution failed: ${e.message} " )
966
+ println (" checkContainerRunning failed: ${e.message} " )
944
967
}
945
968
}
946
969
@@ -952,10 +975,10 @@ fun checkDockerStatus() {
952
975
if (exitCode == 0 ) {
953
976
project.extra[" dockerRunning" ] = true
954
977
} else {
955
- println (" checkDockerStatus command execution failed with exit code $exitCode " )
978
+ println (" checkDockerStatus failed with exit code $exitCode " )
956
979
}
957
980
} catch (e: IOException ) {
958
- println (" checkDockerStatus command execution failed: ${e.message} " )
981
+ println (" checkDockerStatus failed: ${e.message} " )
959
982
}
960
983
}
961
984
@@ -972,10 +995,10 @@ fun checkOrbStackStatus() {
972
995
println (" Current docker context is: $currentContext " )
973
996
project.extra[" isOrbStack" ] = currentContext.lowercase().contains(" orbstack" )
974
997
} else {
975
- println (" checkOrbStackStatus Command execution failed with exit code $exitCode " )
998
+ println (" checkOrbStackStatus failed with exit code $exitCode " )
976
999
}
977
1000
} catch (e: IOException ) {
978
- println (" checkOrbStackStatus command execution failed: ${e.message} " )
1001
+ println (" checkOrbStackStatus failed: ${e.message} " )
979
1002
}
980
1003
}
981
1004
0 commit comments