Skip to content

Commit be5e5b5

Browse files
committed
Replace Maven local with Solutions repository
1 parent 4e1bc77 commit be5e5b5

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

build.gradle.kts

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,26 @@ plugins {
1313
group = "com.gradle"
1414

1515
repositories {
16-
mavenLocal()
16+
maven {
17+
name = "Solutions"
18+
url = uri("https://repo.gradle.org/artifactory/solutions")
19+
credentials {
20+
username = providers
21+
.environmentVariable("GRADLE_SOLUTIONS_REPOSITORY_USERNAME")
22+
.orElse(providers.gradleProperty("gradleSolutionsRepositoryUsername"))
23+
.get()
24+
password = providers
25+
.environmentVariable("GRADLE_SOLUTIONS_REPOSITORY_PASSWORD")
26+
.orElse(providers.gradleProperty("gradleSolutionsRepositoryPassword"))
27+
.get()
28+
}
29+
authentication {
30+
create<BasicAuthentication>("basic")
31+
}
32+
content {
33+
includeModule("com.gradle.enterprise", "build-scan-summary")
34+
}
35+
}
1736
exclusiveContent {
1837
forRepository {
1938
ivy {

0 commit comments

Comments
 (0)