-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
44 lines (37 loc) · 1.11 KB
/
settings.gradle.kts
File metadata and controls
44 lines (37 loc) · 1.11 KB
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
include("plugin")
include(
":sample-kotlin",
":sample-groovy",
// ":sample-aar" // For uncomment should get error at sync project time as well;
)
pluginManagement {
val libsVersionFile = file("gradle/libs.versions.toml")
val properties = java.util.Properties().apply {
libsVersionFile.reader().use { load(it) }
}
val samplePublishVersion = properties.getProperty("sampleHuaweiPlugin").replace("\"", "")
resolutionStrategy {
eachPlugin {
if(requested.id.namespace == "ru.cian") {
useModule("ru.cian.huawei-plugin:plugin:${samplePublishVersion}")
}
}
}
repositories {
mavenLocal()
google()
gradlePluginPortal()
maven { url = uri("https://plugins.gradle.org/m2/") }
}
}
plugins {
id("com.gradle.enterprise") version("3.13.2")
}
gradleEnterprise {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
// To publish report add `-Pscan` to build command;
publishAlwaysIf(settings.extra.has("scan"))
}
}