forked from aws/aws-toolkit-jetbrains
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
49 lines (43 loc) · 1.45 KB
/
settings.gradle.kts
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
// Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
enableFeaturePreview("VERSION_CATALOGS")
rootProject.name = "aws-toolkit-jetbrains"
include("resources")
include("sdk-codegen")
include("core")
include("jetbrains-core")
include("jetbrains-ultimate")
include("jetbrains-rider")
include("intellij")
include("ui-tests")
include("detekt-rules")
plugins {
id("com.gradle.enterprise").version("3.4.1")
id("com.github.burrunan.s3-build-cache").version("1.2")
}
gradleEnterprise {
buildScan {
obfuscation {
username { "<username>" }
hostname { "<hostname>" }
ipAddresses { it.map { "0.0.0.0" } }
}
}
}
val regionEnv: Provider<String> = providers.environmentVariable("AWS_REGION").forUseAtConfigurationTime()
val bucketEnv: Provider<String> = providers.environmentVariable("S3_BUILD_CACHE_BUCKET").forUseAtConfigurationTime()
val prefixEnv: Provider<String> = providers.environmentVariable("S3_BUILD_CACHE_PREFIX").forUseAtConfigurationTime()
if (regionEnv.isPresent && bucketEnv.isPresent && prefixEnv.isPresent) {
buildCache {
local {
isEnabled = false
}
remote<com.github.burrunan.s3cache.AwsS3BuildCache> {
region = regionEnv.get()
bucket = bucketEnv.get()
prefix = prefixEnv.get()
isPush = true
lookupDefaultAwsCredentials = true
}
}
}