1 Star 0 Fork 0

天天开心16327/airbyte-platform

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 6.26 KB
一键复制 编辑 原始数据 按行查看 历史
// The buildscript block defines dependencies in order for .gradle file evaluation.
// This is separate from application dependencies.
// See https://stackoverflow.com/questions/17773817/purpose-of-buildscript-block-in-gradle.
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
// classpath 'com.bmuschko:gradle-docker-plugin:8.0.0'
// // 6.x version of OpenApi generator is only compatible with jackson-core 2.13.x onwards.
// // This conflicts with the jackson depencneis the bmuschko plugin is pulling in.
// // Since api generation is only used in the airbyte-api module and the base gradle files
// // are loaded in first, Gradle is not able to intelligently resolve this before loading in
// // the bmuschko plugin and thus placing an older jackson version on the class path.
// // The alternative is to import the openapi plugin for all modules.
// // This might need to be updated when we change openapi plugin versions.
// classpath 'com.fasterxml.jackson.core:jackson-core:2.13.0'
//
classpath 'org.codehaus.groovy:groovy-yaml:3.0.3'
}
}
plugins {
id "base"
id "com.dorongold.task-tree" version "2.1.1"
id "io.airbyte.gradle.jvm" version "0.34.0" apply false
id "io.airbyte.gradle.jvm.app" version "0.34.0" apply false
id "io.airbyte.gradle.jvm.lib" version "0.34.0" apply false
id "io.airbyte.gradle.docker" version "0.34.0" apply false
id "io.airbyte.gradle.publish" version "0.34.0" apply false
// uncomment for testing plugin locally
// id "io.airbyte.gradle.jvm" version "local-test" apply false
// id "io.airbyte.gradle.jvm.app" version "local-test" apply false
// id "io.airbyte.gradle.jvm.lib" version "local-test" apply false
// id "io.airbyte.gradle.docker" version "local-test" apply false
// id "io.airbyte.gradle.publish" version "local-test" apply false
}
repositories {
mavenCentral()
maven {
url 'https://airbyte.mycloudrepo.io/public/repositories/airbyte-public-jars/'
}
maven {
name = 'cloudrepo'
url = 'https://airbyte.mycloudrepo.io/repositories/airbyte-public-jars'
credentials {
username System.getenv('CLOUDREPO_USER')
password System.getenv('CLOUDREPO_PASSWORD')
}
}
}
if (System.getProperty("ciMode", "false") == "true") {
gradle.startParameter.logLevel = LogLevel.QUIET
def logFile = new FileOutputStream('gradle.log', true)
gradle.services.get(LoggingManager).addStandardOutputListener(logFile)
gradle.services.get(LoggingManager).addStandardErrorListener(logFile)
allprojects {
tasks.withType(JavaCompile) {
options.deprecation = false
options.warnings = false
}
}
}
Properties env = new Properties()
rootProject.file('.env.dev').withInputStream { env.load(it) }
if (!env.containsKey('VERSION')) {
throw new Exception('Version not specified in .env file...')
}
// `version` is used as the application build version for artifacts like jars
// `image_tag` is used as the docker tag applied to built images.
// These values are the same for building an specific Airbyte release or branch via the 'VERSION' environment variable.
// For local development builds, the 'VERSION' environment variable is unset, and built images are tagged with 'dev'.
ext {
version = System.getenv("VERSION") ?: env.VERSION
image_tag = System.getenv("VERSION") ?: 'dev'
}
allprojects {
// by default gradle uses directory as the project name. That works very well in a single project environment but
// projects clobber each other in an environments with subprojects when projects are in directories named identically.
def sub = rootDir.relativePath(projectDir.parentFile).replace('/', '.')
group = "io.airbyte${sub.isEmpty() ? '' : ".$sub"}"
version = rootProject.ext.version
configurations.all {
resolutionStrategy {
// Ensure that the versions defined in deps.toml are used
// instead of versions from transitive dependencies
// Force to avoid updated version brought in transitively from Micronaut 3.8+
force(libs.flyway.core,
libs.jooq,
libs.s3,
libs.aws.java.sdk.s3,
libs.sts,
libs.aws.java.sdk.sts,
libs.elasticsearch,
libs.apache.mime4j.core, // Force upgrade to remediate GHSA-jw7r-rxff-gv24
libs.platform.testcontainers.postgresql)
}
}
}
tasks.register('archiveReports', Tar) {
dependsOn subprojects.collect { it.getTasksByName('checkstyleMain', true) }
dependsOn subprojects.collect { it.getTasksByName('checkstyleTest', true) }
dependsOn subprojects.collect { it.getTasksByName('jacocoTestReport', true) }
dependsOn subprojects.collect { it.getTasksByName('pmdMain', true) }
dependsOn subprojects.collect { it.getTasksByName('pmdTest', true) }
dependsOn subprojects.collect { it.getTasksByName('spotbugsMain', true) }
dependsOn subprojects.collect { it.getTasksByName('spotbugsTest', true) }
dependsOn subprojects.collect { it.getTasksByName('test', true) }
dependsOn subprojects.collect { it.getTasksByName('checkstyleAcceptanceTests', true) }
dependsOn subprojects.collect { it.getTasksByName('pmdAcceptanceTests', true) }
dependsOn subprojects.collect { it.getTasksByName('spotbugsAcceptanceTests', true) }
archiveFileName = "${project.name}-reports.tar"
destinationDirectory = layout.buildDirectory.dir('dist')
// Collect reports from each subproject
subprojects.each { subproject ->
from("${subproject.buildDir}/reports") {
into("${subproject.name}/reports")
}
}
}
tasks.register('generate-docker') {
dependsOn(':airbyte-bootloader:assemble')
dependsOn(':airbyte-workers:assemble')
dependsOn(':airbyte-webapp:assemble')
dependsOn(':airbyte-server:assemble')
dependsOn(':airbyte-api-server:assemble')
dependsOn(':airbyte-db:db-lib:assemble')
dependsOn(':airbyte-config:init:assemble')
dependsOn(':airbyte-temporal:assemble')
dependsOn(':airbyte-keycloak:assemble')
dependsOn(':airbyte-keycloak-setup:assemble')
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/go123/airbyte-platform.git
git@gitee.com:go123/airbyte-platform.git
go123
airbyte-platform
airbyte-platform
main

搜索帮助