* WIP Convert airbyte-workers to Micronaut framework * Rebase cleanup * Fix broken tests * Simplify code * Support control vs data plane configuration * make WORFKLOW_PROXY_CACHE non-static to avoid cacheing mocks in unit tests * Formatting * Pairing on Worker Micronaut (#16364) * add RouteToSyncTaskQueue activity * use new route activity in connection manager workflow * format * call router service for task queue * Revert temporal proxy changes * Formatting * Fix default value * register new route activity in test * fix SyncWorkflowTest now that it isn't doing any routing * Update dependencies * More dependency updates * Update dependencies * WIP Convert airbyte-workers to Micronaut framework * Rebase cleanup * Fix broken tests * Simplify code * Support control vs data plane configuration * make WORFKLOW_PROXY_CACHE non-static to avoid cacheing mocks in unit tests * Formatting * Pairing on Worker Micronaut (#16364) * add RouteToSyncTaskQueue activity * use new route activity in connection manager workflow * format * call router service for task queue * Revert temporal proxy changes * Formatting * Fix default value * register new route activity in test * fix SyncWorkflowTest now that it isn't doing any routing * Update dependencies * More dependency updates * Update dependencies * WIP Convert airbyte-workers to Micronaut framework * Rebase cleanup * Fix broken tests * Simplify code * Support control vs data plane configuration * make WORFKLOW_PROXY_CACHE non-static to avoid cacheing mocks in unit tests * Formatting * Pairing on Worker Micronaut (#16364) * add RouteToSyncTaskQueue activity * use new route activity in connection manager workflow * format * call router service for task queue * Revert temporal proxy changes * Formatting * Fix default value * register new route activity in test * fix SyncWorkflowTest now that it isn't doing any routing * Update dependencies * More dependency updates * Update dependencies * Add the injected temporal client to airbyte-cron * Update cron to make it work * Remove useless Bean factory * PR comments * WIP Convert airbyte-workers to Micronaut framework * Rebase cleanup * Fix broken tests * Simplify code * Support control vs data plane configuration * make WORFKLOW_PROXY_CACHE non-static to avoid cacheing mocks in unit tests * Formatting * Pairing on Worker Micronaut (#16364) * add RouteToSyncTaskQueue activity * use new route activity in connection manager workflow * format * call router service for task queue * Revert temporal proxy changes * Formatting * Fix default value * register new route activity in test * fix SyncWorkflowTest now that it isn't doing any routing * Update dependencies * More dependency updates * Update dependencies * Improve conditional bean check * Match existing Optional functionality * Add notEquals check * Add missing env var to Helm chart * Fix typo * Mark LogConfigs as Singleton * WIP Convert airbyte-workers to Micronaut framework * Rebase cleanup * Fix broken tests * Simplify code * Support control vs data plane configuration * make WORFKLOW_PROXY_CACHE non-static to avoid cacheing mocks in unit tests * Formatting * Pairing on Worker Micronaut (#16364) * add RouteToSyncTaskQueue activity * use new route activity in connection manager workflow * format * call router service for task queue * Revert temporal proxy changes * Formatting * Fix default value * register new route activity in test * fix SyncWorkflowTest now that it isn't doing any routing * Update dependencies * More dependency updates * Update dependencies * Improve conditional bean check * Match existing Optional functionality * Add notEquals check * Add missing env var to Helm chart * Fix typo * Mark LogConfigs as Singleton * Env vars for log/state storage type * Remove use of Optional in bean declarations * Fix typo in config property name * Support Temporal Cloud namespace * Change to @Value * Use correct value for conditional check * Upgrade Micronaut * Fix merge conflict * Formatting * Add missing env var * Use sync task queue environment variable * Handle sync task queue as set * format and force http * Handle case where sync task queue is empty * Add correct path to config property * Remove unused import * Remove conflict * Remove unused parameter * Formatting * Use pattern for condition process factory beans * Cleanup * PR feedback * Revert hack for testing * Fix temporal restart by status (#16447) * Update application.yml * Re add worker dep * Add missing env var * PR comments * Bmoric/move temporal client (#16778) * tmp * tmp * View diff * Move part of the temporal client * tmp * copy Temporal Utils test * Uniq Temporal Utils * Uniq Temporal Workflow Utils * Move CancellationHandler * Move commons-temporal to being shared between platform, connector and CLI * Rm worker dependency from cron * Fix build * Update with right value for cron. * Fix dep conflict Co-authored-by: jdpgrailsdev <jpearlin1@gmail.com> Co-authored-by: pmossman <parker@airbyte.io> Co-authored-by: Jonathan Pearlin <jonathan@airbyte.io>
154 lines
6.3 KiB
Groovy
154 lines
6.3 KiB
Groovy
pluginManagement {
|
|
repositories {
|
|
gradlePluginPortal()
|
|
maven {
|
|
url 'https://oss.sonatype.org/content/repositories/snapshots'
|
|
}
|
|
}
|
|
resolutionStrategy {
|
|
eachPlugin {
|
|
// We're using the 6.1.0-SNAPSHOT version of openapi-generator which contains a fix for generating nullable arrays (https://github.com/OpenAPITools/openapi-generator/issues/13025)
|
|
// The snapshot version isn't available in the main Gradle Plugin Portal, so we added the Sonatype snapshot repository above.
|
|
// The useModule command below allows us to map from the plugin id, `org.openapi.generator`, to the underlying module (https://oss.sonatype.org/content/repositories/snapshots/org/openapitools/openapi-generator-gradle-plugin/6.1.0-SNAPSHOT/_
|
|
if (requested.id.id == 'org.openapi.generator') {
|
|
useModule "org.openapitools:openapi-generator-gradle-plugin:${requested.version}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// Configure the gradle enterprise plugin to enable build scans. Enabling the plugin at the top of the settings file allows the build scan to record
|
|
// as much information as possible.
|
|
plugins {
|
|
id "com.gradle.enterprise" version "3.4.1"
|
|
}
|
|
|
|
gradleEnterprise {
|
|
buildScan {
|
|
termsOfServiceUrl = "https://gradle.com/terms-of-service"
|
|
termsOfServiceAgree = "yes"
|
|
}
|
|
}
|
|
|
|
rootProject.name = 'airbyte'
|
|
|
|
// definition for dependency resolution
|
|
dependencyResolutionManagement {
|
|
repositories {
|
|
maven {
|
|
url 'https://airbyte.mycloudrepo.io/public/repositories/airbyte-public-jars/'
|
|
}
|
|
}
|
|
versionCatalogs {
|
|
libs {
|
|
from(files("deps.toml"))
|
|
}
|
|
}
|
|
}
|
|
|
|
// SUB_BUILD is an enum of <blank>, PLATFORM, CONNECTORS_BASE, ALL_CONNECTORS and OCTAVIA_CLI. Blank is equivalent to all.
|
|
if (!System.getenv().containsKey("SUB_BUILD")) {
|
|
println("Building all of Airbyte.")
|
|
} else {
|
|
def subBuild = System.getenv().get("SUB_BUILD")
|
|
println("Building Airbyte Sub Build: " + subBuild)
|
|
if (subBuild != "PLATFORM" && subBuild != "CONNECTORS_BASE" && subBuild != "ALL_CONNECTORS" && subBuild != "OCTAVIA_CLI") {
|
|
throw new IllegalArgumentException(String.format("%s is invalid. Must be unset or PLATFORM or CONNECTORS_BASE, ALL_CONNECTORS or OCTAVIA_CLI", subBuild))
|
|
}
|
|
}
|
|
|
|
// shared
|
|
include ':airbyte-commons'
|
|
|
|
// shared by CONNECTORS_BASE and PLATFORM sub builds
|
|
include ':airbyte-api'
|
|
include ':airbyte-commons-cli'
|
|
include ':airbyte-commons-docker'
|
|
include ':airbyte-config:config-models' // reused by acceptance tests in connector base.
|
|
include ':airbyte-db:db-lib' // reused by acceptance tests in connector base.
|
|
include ':airbyte-json-validation'
|
|
include ':airbyte-metrics:metrics-lib'
|
|
include ':airbyte-oauth'
|
|
include ':airbyte-protocol:protocol-models'
|
|
include ':airbyte-queue'
|
|
include ':airbyte-test-utils'
|
|
|
|
// airbyte-workers has a lot of dependencies.
|
|
include ':airbyte-workers' // reused by acceptance tests in connector base.
|
|
include ':airbyte-analytics' // transitively used by airbyte-workers.
|
|
include ':airbyte-commons-temporal'
|
|
include ':airbyte-config:config-persistence' // transitively used by airbyte-workers.
|
|
include ':airbyte-persistence:job-persistence' // transitively used by airbyte-workers.
|
|
include ':airbyte-db:jooq' // transitively used by airbyte-workers.
|
|
include ':airbyte-notification' // transitively used by airbyte-workers.
|
|
|
|
// platform
|
|
if (!System.getenv().containsKey("SUB_BUILD") || System.getenv().get("SUB_BUILD") == "PLATFORM") {
|
|
include ':airbyte-bootloader'
|
|
include ':airbyte-cli'
|
|
include ':airbyte-config:init'
|
|
include ':airbyte-config:specs'
|
|
include ':airbyte-container-orchestrator'
|
|
include ':airbyte-cron'
|
|
include ':airbyte-metrics:reporter'
|
|
include ':airbyte-server'
|
|
include ':airbyte-temporal'
|
|
include ':airbyte-tests'
|
|
include ':airbyte-webapp'
|
|
include ':airbyte-webapp-e2e-tests'
|
|
}
|
|
|
|
// connectors base
|
|
if (!System.getenv().containsKey("SUB_BUILD") || System.getenv().get("SUB_BUILD") == "CONNECTORS_BASE" || System.getenv().get("SUB_BUILD") == "ALL_CONNECTORS") {
|
|
include ':airbyte-cdk:python'
|
|
include ':airbyte-integrations:bases:base'
|
|
include ':airbyte-integrations:bases:base-java'
|
|
include ':airbyte-integrations:bases:base-java-s3'
|
|
include ':airbyte-integrations:bases:base-normalization'
|
|
include ':airbyte-integrations:bases:base-standard-source-test-file'
|
|
include ':airbyte-integrations:bases:source-acceptance-test'
|
|
include ':airbyte-integrations:bases:standard-destination-test'
|
|
include ':airbyte-integrations:bases:s3-destination-base-integration-test'
|
|
include ':airbyte-integrations:bases:standard-source-test'
|
|
include ':airbyte-integrations:connector-templates:generator'
|
|
include ':airbyte-integrations:bases:debezium-v1-4-2'
|
|
include ':airbyte-integrations:bases:debezium-v1-9-2'
|
|
|
|
// Needed by normalization integration tests
|
|
include ':airbyte-integrations:connectors:destination-bigquery'
|
|
include ':airbyte-integrations:connectors:destination-jdbc'
|
|
include ':airbyte-integrations:connectors:destination-mysql'
|
|
include ':airbyte-integrations:connectors:destination-postgres'
|
|
include ':airbyte-integrations:connectors:destination-redshift'
|
|
include ':airbyte-integrations:connectors:destination-snowflake'
|
|
include ':airbyte-integrations:connectors:destination-oracle'
|
|
include ':airbyte-integrations:connectors:destination-mssql'
|
|
include ':airbyte-integrations:connectors:destination-clickhouse'
|
|
include ':airbyte-integrations:connectors:destination-tidb'
|
|
|
|
//Needed by destination-bigquery
|
|
include ':airbyte-integrations:connectors:destination-s3'
|
|
include ':airbyte-integrations:connectors:destination-gcs'
|
|
|
|
include ':tools:code-generator'
|
|
}
|
|
|
|
if (!System.getenv().containsKey("SUB_BUILD") || System.getenv().get("SUB_BUILD") == "OCTAVIA_CLI") {
|
|
include ':octavia-cli'
|
|
}
|
|
|
|
// connectors
|
|
if (!System.getenv().containsKey("SUB_BUILD") || System.getenv().get("SUB_BUILD") == "ALL_CONNECTORS") {
|
|
// include all connector projects
|
|
def integrationsPath = rootDir.toPath().resolve('airbyte-integrations/connectors')
|
|
println integrationsPath
|
|
integrationsPath.eachDir { dir ->
|
|
def buildFiles = file(dir).list { file, name -> name == "build.gradle" }
|
|
|
|
if (buildFiles.length == 1) {
|
|
include ":airbyte-integrations:connectors:${dir.getFileName()}"
|
|
}
|
|
}
|
|
}
|
|
|