kafka
/
settings.gradle
123 строки · 3.8 Кб
1// Licensed to the Apache Software Foundation (ASF) under one or more
2// contributor license agreements. See the NOTICE file distributed with
3// this work for additional information regarding copyright ownership.
4// The ASF licenses this file to You under the Apache License, Version 2.0
5// (the "License"); you may not use this file except in compliance with
6// the License. You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16plugins {
17id 'com.gradle.develocity' version '3.17.6'
18id 'com.gradle.common-custom-user-data-gradle-plugin' version '2.0.2'
19}
20
21def isGithubActions = System.getenv('GITHUB_ACTIONS') != null
22def isJenkins = System.getenv('JENKINS_URL') != null
23def isCI = isGithubActions || isJenkins
24def currentJvm = JavaVersion.current()
25
26develocity {
27server = "https://ge.apache.org"
28projectId = "kafka"
29buildScan {
30uploadInBackground = !isCI
31publishing.onlyIf { it.authenticated }
32obfuscation {
33// This obfuscates the IP addresses of the build machine in the build scan.
34// Alternatively, the build scan will provide the hostname for troubleshooting host-specific issues.
35ipAddresses { addresses -> addresses.collect { address -> "0.0.0.0"} }
36}
37if (isJenkins) {
38tag "jenkins"
39} else if (isGithubActions) {
40tag "github"
41} else {
42tag "local"
43}
44tag "JDK$currentJvm"
45}
46}
47
48buildCache {
49local {
50// This allows the build cache to be used locally or on GitHub Actions.
51// Using the cache on GH should be safe since each job is run on a new VM
52enabled = !isJenkins
53}
54
55remote(develocity.buildCache) {
56enabled = false
57}
58}
59
60include 'clients',
61'connect:api',
62'connect:basic-auth-extension',
63'connect:file',
64'connect:json',
65'connect:mirror',
66'connect:mirror-client',
67'connect:runtime',
68'connect:test-plugins',
69'connect:transforms',
70'coordinator-common',
71'core',
72'examples',
73'generator',
74'group-coordinator',
75'group-coordinator:group-coordinator-api',
76'jmh-benchmarks',
77'log4j-appender',
78'metadata',
79'raft',
80'server',
81'server-common',
82'share',
83'share-coordinator',
84'shell',
85'storage',
86'storage:api',
87'streams',
88'streams:examples',
89'streams:streams-scala',
90'streams:test-utils',
91'streams:upgrade-system-tests-0100',
92'streams:upgrade-system-tests-0101',
93'streams:upgrade-system-tests-0102',
94'streams:upgrade-system-tests-0110',
95'streams:upgrade-system-tests-10',
96'streams:upgrade-system-tests-11',
97'streams:upgrade-system-tests-20',
98'streams:upgrade-system-tests-21',
99'streams:upgrade-system-tests-22',
100'streams:upgrade-system-tests-23',
101'streams:upgrade-system-tests-24',
102'streams:upgrade-system-tests-25',
103'streams:upgrade-system-tests-26',
104'streams:upgrade-system-tests-27',
105'streams:upgrade-system-tests-28',
106'streams:upgrade-system-tests-30',
107'streams:upgrade-system-tests-31',
108'streams:upgrade-system-tests-32',
109'streams:upgrade-system-tests-33',
110'streams:upgrade-system-tests-34',
111'streams:upgrade-system-tests-35',
112'streams:upgrade-system-tests-36',
113'streams:upgrade-system-tests-37',
114'streams:upgrade-system-tests-38',
115'tools',
116'tools:tools-api',
117'transaction-coordinator',
118'trogdor',
119'test-common',
120'test-common:test-common-api'
121
122project(":storage:api").name = "storage-api"
123rootProject.name = 'kafka'
124
125