forked from airbytehq/airbyte
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle
194 lines (174 loc) · 6.75 KB
/
settings.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
import com.gradle.scan.plugin.PublishedBuildScan
pluginManagement {
repositories {
// # Gradle looks for dependency artifacts in repositories listed in 'repositories' blocks in descending order.
// ## Prefer repos controlled by Airbyte.
// TODO: add airbyte-controlled proxy repos here
// ## Look into other, public repos.
// Gradle plugin portal.
gradlePluginPortal()
// Maven Central has most of everything.
mavenCentral()
}
}
// 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.13.1"
id 'com.github.burrunan.s3-build-cache' version "1.5"
}
dependencyResolutionManagement {
// Set FAIL_ON_PROJECT_REPOS to ensure there are no more `repositories { ... }` blocks than necessary.
repositoriesMode = RepositoriesMode.FAIL_ON_PROJECT_REPOS
repositories {
// # Gradle looks for dependency artifacts in repositories listed in 'repositories' blocks in descending order.
// ## Start with the local filesystem.
mavenLocal()
// ## Prefer repos controlled by Airbyte.
maven {
// This repo hosts our public artifacts and can be referenced by anyone.
name 'airbyte-public-jars'
url 'https://airbyte.mycloudrepo.io/public/repositories/airbyte-public-jars/'
content {
// Whitelist artifacts served by this repo because it's slow.
includeGroup 'io.airbyte'
includeGroupByRegex 'io\\.airbyte\\..*'
includeGroup 'com.hadoop.gplcompression'
includeGroup 'com.therealvan'
}
}
// TODO: add airbyte-controlled proxy repos here
// ## Look into other, public repos.
// Maven Central has most of everything.
mavenCentral()
// Jitpack is used to pull dependencies directly from github.
maven {
name 'jitpack'
url 'https://jitpack.io'
content {
includeGroupByRegex 'com\\.github\\..*'
includeGroup 'net.jimblackler.jsonschemafriend'
}
}
// Elastic Search repo.
maven {
name 'elastic-search-snapshots'
url 'https://snapshots.elastic.co/maven/'
content {
includeGroup 'co.elastic.clients'
}
}
// Redshift repo.
maven {
name 'redshift'
url 'https://s3.amazonaws.com/redshift-maven-repository/release'
content {
includeGroup 'com.amazon.redshift'
}
}
// Rockset repo.
maven {
name 'rockset'
url 'https://mvnrepository.com/artifact/com.rockset/rockset-java'
content {
includeGroup 'com.rockset'
}
}
// Awaitility repo.
maven {
name 'awaitility'
url 'https://mvnrepository.com/artifact/org.awaitility/awaitility'
content {
includeGroup 'org.awaitility'
}
}
// Confluent repo.
maven {
name 'confluent'
url "https://packages.confluent.io/maven"
content {
includeGroup 'io.confluent'
includeGroup 'org.apache.kafka'
}
}
// Node.js download repository, required only by com.github.node-gradle.node plugin.
ivy {
name = "Node.js"
setUrl("https://nodejs.org/dist/")
patternLayout {
artifact("v[revision]/[artifact](-v[revision]-[classifier]).[ext]")
}
metadataSources {
artifact()
}
content {
includeModule("org.nodejs", "node")
}
}
}
versionCatalogs {
libs {
from(files("deps.toml"))
}
}
}
gradleEnterprise {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
buildScanPublished { PublishedBuildScan scan ->
file("scan-journal.log") << "${new Date()} - ${scan.buildScanId} - ${scan.buildScanUri}\n"
}
}
}
ext.isCiServer = System.getenv().containsKey("CI")
ext.isAirbyteCI = System.getenv().containsKey("RUN_IN_AIRBYTE_CI")
if (isCiServer || isAirbyteCI) {
buildCache {
local {
// Local build cache is dangerous as it might produce inconsistent results
// in case developer modifies files while the build is running
enabled = isAirbyteCI
}
remote(com.github.burrunan.s3cache.AwsS3BuildCache) {
region = 'us-west-2' // close to dagger runners
bucket = 'ab-ci-cache'
prefix = "${System.getProperty('s3BuildCachePrefix', 'connectors')}-ci-cache/"
push = isAirbyteCI
// Sometimes the env var is set, but with an empty value. Ignore this case.
enabled = !System.getenv().getOrDefault("S3_BUILD_CACHE_ACCESS_KEY_ID", "").isEmpty()
}
}
}
rootProject.name = 'airbyte'
include ':tools:code-generator'
include ':octavia-cli'
include ':airbyte-cdk:python'
include ':airbyte-cdk:java:airbyte-cdk'
include ':airbyte-cdk:java:airbyte-cdk:airbyte-commons'
include ':airbyte-cdk:java:airbyte-cdk:airbyte-json-validation'
include ':airbyte-cdk:java:airbyte-cdk:airbyte-commons-cli'
include ':airbyte-cdk:java:airbyte-cdk:airbyte-commons-protocol'
include ':airbyte-cdk:java:airbyte-cdk:airbyte-api'
include ':airbyte-cdk:java:airbyte-cdk:config-models-oss'
include ':airbyte-cdk:java:airbyte-cdk:init-oss'
include ':airbyte-cdk:java:airbyte-cdk:acceptance-test-harness'
include ':airbyte-cdk:java:airbyte-cdk:core'
include ':airbyte-cdk:java:airbyte-cdk:db-destinations'
include ':airbyte-cdk:java:airbyte-cdk:db-sources'
include ':airbyte-cdk:java:airbyte-cdk:s3-destinations'
include ':airbyte-cdk:java:airbyte-cdk:typing-deduping'
include ':airbyte-integrations:bases:base'
include ':airbyte-integrations:bases:base-java'
include ':airbyte-integrations:bases:base-normalization'
include ':airbyte-integrations:connector-templates:generator'
include ':airbyte-integrations:connectors-performance:source-harness'
include ':airbyte-integrations:connectors-performance:destination-harness'
// Include all java connector projects.
def integrationsPath = rootDir.toPath().resolve('airbyte-integrations/connectors')
integrationsPath.eachDir { dir ->
def buildFiles = file(dir).list { file, name -> name == "build.gradle" }
if (buildFiles.length == 1) {
include ":airbyte-integrations:connectors:${dir.getFileName()}"
}
}