Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

6.4 KB
Raw Blame
/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
plugins {
  id("org.gradle.toolchains.foojay-resolver-convention") version("1.0.0")
}

rootProject.name = "gravitino"

val scalaVersion: String = gradle.startParameter.projectProperties["scalaVersion"]?.toString()
  ?: settings.extra["defaultScalaVersion"].toString()

include("api", "common", "core", "server", "server-common")
include("catalogs:catalog-common")
include("catalogs:catalog-glue")
include("catalogs:catalog-hive")
include("catalogs:hive-metastore-common")
include("catalogs:hive-metastore2-libs", "catalogs:hive-metastore3-libs")
include("catalogs:catalog-lakehouse-iceberg")
include("catalogs:catalog-lakehouse-paimon")
include("catalogs:catalog-lakehouse-hudi")
include("catalogs:catalog-lakehouse-generic")
include(
  "catalogs:catalog-jdbc-common",
  "catalogs:catalog-jdbc-doris",
  "catalogs:catalog-jdbc-mysql",
  "catalogs:catalog-jdbc-postgresql",
  "catalogs:catalog-jdbc-starrocks"
)

include("catalogs:catalog-fileset")
include("catalogs:catalog-kafka")
include("catalogs:catalog-model")

include("catalogs-contrib:catalog-jdbc-clickhouse")
include("catalogs-contrib:catalog-jdbc-hologres")
include("catalogs-contrib:catalog-jdbc-oceanbase")

include(
  "clients:client-java",
  "clients:client-java-runtime",
  "clients:filesystem-hadoop3",
  "clients:filesystem-hadoop3-runtime",
  "clients:client-python",
  "clients:cli"
)
// clients:filesystem-fuse is deprecated and excluded from the build. The source is kept
// in-tree for reference; see clients/filesystem-fuse/README.md for details.
include("iceberg:iceberg-common")
include("iceberg:iceberg-rest-server")
include("iceberg:iceberg-rest-server-experiment")
include("iceberg:iceberg-rest-trino-it")
include("lance:lance-common")
include("lance:lance-rest-server")
include("authorizations:authorization-ranger", "authorizations:authorization-common", "authorizations:authorization-chain")
val skipTrinoConnector: Boolean =
  gradle.startParameter.projectProperties["skipTrinoConnector"]?.toBoolean() ?: false
if (!skipTrinoConnector) {
  include(
    "trino-connector:trino-connector-469-472",
    "trino-connector:trino-connector-473-477",
    "trino-connector:trino-connector-478-479",
    "trino-connector:trino-connector-480",
    "trino-connector:trino-connector-481",
    "trino-connector:trino-connector-482-483",
    "trino-connector:integration-test"
  )
} else {
  println("Skipping trino-connector modules since skipTrinoConnector is set to true")
}
// flink-common's sources are also compiled directly into each flink-connector:flink-*
// module's own sourceSet (not consumed as a jar dependency), so it is not gated by scalaVersion.
include("flink-connector:flink-common")
if (scalaVersion == "2.12") {
  // flink 1.x only supports scala 2.12
  include(
    "flink-connector:flink-1.19",
    "flink-connector:flink-runtime-1.19",
    "flink-connector:flink-1.20",
    "flink-connector:flink-runtime-1.20"
  )
  project(":flink-connector:flink-1.19").projectDir = file("flink-connector/v1.19/flink")
  project(":flink-connector:flink-runtime-1.19").projectDir =
    file("flink-connector/v1.19/flink-runtime")
  project(":flink-connector:flink-1.20").projectDir = file("flink-connector/v1.20/flink")
  project(":flink-connector:flink-runtime-1.20").projectDir =
    file("flink-connector/v1.20/flink-runtime")
}
// These connectors use Flink Java APIs, so they do not need scalaVersion gating.
// Flink internals still use Scala.
include("flink-connector:flink-2.1", "flink-connector:flink-runtime-2.1")
project(":flink-connector:flink-2.1").projectDir = file("flink-connector/v2.1/flink")
project(":flink-connector:flink-runtime-2.1").projectDir =
  file("flink-connector/v2.1/flink-runtime")
include("flink-connector:flink-2.2", "flink-connector:flink-runtime-2.2")
project(":flink-connector:flink-2.2").projectDir = file("flink-connector/v2.2/flink")
project(":flink-connector:flink-runtime-2.2").projectDir =
  file("flink-connector/v2.2/flink-runtime")
include("spark-connector:spark-3.5", "spark-connector:spark-runtime-3.5")
project(":spark-connector:spark-3.5").projectDir = file("spark-connector/v3.5/spark")
project(":spark-connector:spark-runtime-3.5").projectDir = file("spark-connector/v3.5/spark-runtime")
// Spark 4.0 support (#8771). Spark 4 is Scala 2.13 only and needs JDK 17, so these modules pin
// 2.13 rather than reading -PscalaVersion.
include("spark-connector:spark-4.0", "spark-connector:spark-runtime-4.0")
project(":spark-connector:spark-4.0").projectDir = file("spark-connector/v4.0/spark")
project(":spark-connector:spark-runtime-4.0").projectDir = file("spark-connector/v4.0/spark-runtime")
include("spark-connector:spark-4.1", "spark-connector:spark-runtime-4.1")
project(":spark-connector:spark-4.1").projectDir = file("spark-connector/v4.1/spark")
project(":spark-connector:spark-runtime-4.1").projectDir = file("spark-connector/v4.1/spark-runtime")
include("web:web", "web:integration-test")
include("web-v2:web", "web-v2:integration-test")
include("docs")
include("integration-test-common")
include(":bundles:aws", ":bundles:aws-bundle", ":bundles:iceberg-aws-bundle")
include(":bundles:gcp", ":bundles:gcp-bundle", ":bundles:iceberg-gcp-bundle")
include(":bundles:aliyun", ":bundles:aliyun-bundle", ":bundles:iceberg-aliyun-bundle")
include(":bundles:tencent", ":bundles:tencent-bundle")
include(":bundles:azure", ":bundles:azure-bundle", ":bundles:iceberg-azure-bundle")
include(":catalogs:hadoop-common")
include(":catalogs:hadoop-auth")
include(":lineage")
include(":mcp-server")
include(":plugins:idp-basic")
include(":plugins:k8s-job-executor")
include(":plugins:maintenance")
include(
  ":maintenance:maintenance-common",
  ":maintenance:optimizer-api",
  ":maintenance:updaters",
  ":maintenance:optimizer",
  ":maintenance:jobs"
)