World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
[#2121] fix(build): Fix publish bugs when publish module `clients` and `catalogs` (#2259)
Qi Yu8745d6d10428
diff --git a/build.gradle.kts b/build.gradle.ktsindex aa01e71ed4..cd726d3393 100644--- a/build.gradle.kts+++ b/build.gradle.kts@@ -98,40 +98,38 @@ licenseReport {repositories { mavenCentral() }allprojects {- if ((project.name != "catalogs") && project.name != "clients") {- apply(plugin = "com.diffplug.spotless")- repositories {- mavenCentral()- mavenLocal()- }+ apply(plugin = "com.diffplug.spotless")+ repositories {+ mavenCentral()+ mavenLocal()+ }- plugins.withType<com.diffplug.gradle.spotless.SpotlessPlugin>().configureEach {- configure<com.diffplug.gradle.spotless.SpotlessExtension> {- java {- // Fix the Google Java Format version to 1.7. Since JDK8 only support Google Java Format- // 1.7, which is not compatible with JDK17. We will use a newer version when we upgrade to- // JDK17.- googleJavaFormat("1.7")- removeUnusedImports()- trimTrailingWhitespace()- replaceRegex(- "Remove wildcard imports",- "import\\s+[^\\*\\s]+\\*;(\\r\\n|\\r|\\n)",- "$1"- )- replaceRegex(- "Remove static wildcard imports",- "import\\s+(?:static\\s+)?[^*\\s]+\\*;(\\r\\n|\\r|\\n)",- "$1"- )-- targetExclude("**/build/**")- }+ plugins.withType<com.diffplug.gradle.spotless.SpotlessPlugin>().configureEach {+ configure<com.diffplug.gradle.spotless.SpotlessExtension> {+ java {+ // Fix the Google Java Format version to 1.7. Since JDK8 only support Google Java Format+ // 1.7, which is not compatible with JDK17. We will use a newer version when we upgrade to+ // JDK17.+ googleJavaFormat("1.7")+ removeUnusedImports()+ trimTrailingWhitespace()+ replaceRegex(+ "Remove wildcard imports",+ "import\\s+[^\\*\\s]+\\*;(\\r\\n|\\r|\\n)",+ "$1"+ )+ replaceRegex(+ "Remove static wildcard imports",+ "import\\s+(?:static\\s+)?[^*\\s]+\\*;(\\r\\n|\\r|\\n)",+ "$1"+ )++ targetExclude("**/build/**")+ }- kotlinGradle {- target("*.gradle.kts")- ktlint().editorConfigOverride(mapOf("indent_size" to 2))- }+ kotlinGradle {+ target("*.gradle.kts")+ ktlint().editorConfigOverride(mapOf("indent_size" to 2))}}}@@ -191,12 +189,6 @@ subprojects {}}- if ((project.name == "catalogs") || project.name == "clients") {- tasks.withType<Jar> {- enabled = false- }- }-gradle.projectsEvaluated {tasks.withType<JavaCompile> {options.compilerArgs.addAll(arrayOf("-Xlint:deprecation", "-Werror"))diff --git a/catalogs/build.gradle.kts b/catalogs/build.gradle.ktsnew file mode 100644index 0000000000..2d4a734424--- /dev/null+++ b/catalogs/build.gradle.kts@@ -0,0 +1,8 @@+/*+ * Copyright 2024 Datastrato Pvt Ltd.+ * This software is licensed under the Apache License version 2.+ */++tasks.all {+ enabled = false+}\ No newline at end of filediff --git a/clients/build.gradle.kts b/clients/build.gradle.ktsnew file mode 100644index 0000000000..2d4a734424--- /dev/null+++ b/clients/build.gradle.kts@@ -0,0 +1,8 @@+/*+ * Copyright 2024 Datastrato Pvt Ltd.+ * This software is licensed under the Apache License version 2.+ */++tasks.all {+ enabled = false+}\ No newline at end of file