-
Notifications
You must be signed in to change notification settings - Fork 6
/
settings.gradle.kts
48 lines (40 loc) · 1.22 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
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("sampleRustorePlugin").replace("\"", "")
resolutionStrategy {
eachPlugin {
if(requested.id.namespace == "ru.cian") {
useModule("ru.cian.rustore-plugin:plugin:${samplePublishVersion}")
}
}
}
plugins {
id("ru.cian.rustore-publish-gradle-plugin") version samplePublishVersion apply false
}
repositories {
gradlePluginPortal()
mavenLocal()
google()
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"))
}
}