Skip to content

Commit e0d95f1

Browse files
committed
temp: add maven staging repo for testing preview 3
temp: add maven staging repo for testing preview 3
1 parent c6f06d0 commit e0d95f1

File tree

3 files changed

+71
-4
lines changed

3 files changed

+71
-4
lines changed

java-spring/buildSrc/src/main/kotlin/quickstart-conventions.gradle.kts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ java {
1515
}
1616
}
1717

18-
repositories {
19-
mavenCentral()
20-
}
21-
2218
tasks.withType<Test> {
2319
useJUnitPlatform()
2420
}

java-spring/settings.gradle.kts

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,55 @@
1+
pluginManagement {
2+
repositories {
3+
google {
4+
@Suppress("UnstableApiUsage")
5+
mavenContent {
6+
includeGroupAndSubgroups("androidx")
7+
includeGroupAndSubgroups("com.android")
8+
includeGroupAndSubgroups("com.google")
9+
}
10+
}
11+
mavenCentral()
12+
gradlePluginPortal()
13+
}
14+
}
15+
116
plugins {
217
id("org.gradle.toolchains.foojay-resolver-convention") version "0.9.0"
318
}
419

520
rootProject.name = "spring-quickstart-java"
21+
22+
val centralUsername = "1O5XTFG2"
23+
val centralPassword = "0/KFYoa1CDLyk28gzTAPiBnrSjqOPWeRVrUzyi2xCGXN"
24+
val base64 = "czlQNFB5VzE6Nk9sTUdOL0tYMnhxc0hUU0lrMEg3V0gyVHN5SjZIaUl1UU9Fc2drYVhkN0Y="
25+
26+
// Deployment ID will change when we upload a new release
27+
val deploymentId = "bcf7b762-9276-4223-a3ff-380f86d088bd"
28+
29+
dependencyResolutionManagement {
30+
@Suppress("UnstableApiUsage")
31+
repositories {
32+
maven {
33+
name = "centralManualTesting"
34+
url = uri("https://central.sonatype.com/api/v1/publisher/deployment/$deploymentId/download/")
35+
credentials {
36+
username = centralUsername
37+
password = centralPassword
38+
}
39+
authentication {
40+
create<BasicAuthentication>("basic")
41+
}
42+
mavenContent {
43+
includeGroup("com.ditto")
44+
}
45+
}
46+
google {
47+
mavenContent {
48+
includeGroupAndSubgroups("androidx")
49+
includeGroupAndSubgroups("com.android")
50+
includeGroupAndSubgroups("com.google")
51+
}
52+
}
53+
mavenCentral()
54+
}
55+
}

kotlin-multiplatform/settings.gradle.kts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,30 @@ pluginManagement {
1717
}
1818
}
1919

20+
val centralUsername = "1O5XTFG2"
21+
val centralPassword = "0/KFYoa1CDLyk28gzTAPiBnrSjqOPWeRVrUzyi2xCGXN"
22+
val base64 = "czlQNFB5VzE6Nk9sTUdOL0tYMnhxc0hUU0lrMEg3V0gyVHN5SjZIaUl1UU9Fc2drYVhkN0Y="
23+
24+
// Deployment ID will change when we upload a new release
25+
val deploymentId = "bcf7b762-9276-4223-a3ff-380f86d088bd"
26+
2027
dependencyResolutionManagement {
2128
@Suppress("UnstableApiUsage")
2229
repositories {
30+
maven {
31+
name = "centralManualTesting"
32+
url = uri("https://central.sonatype.com/api/v1/publisher/deployment/$deploymentId/download/")
33+
credentials {
34+
username = centralUsername
35+
password = centralPassword
36+
}
37+
authentication {
38+
create<BasicAuthentication>("basic")
39+
}
40+
mavenContent {
41+
includeGroup("com.ditto")
42+
}
43+
}
2344
google {
2445
mavenContent {
2546
includeGroupAndSubgroups("androidx")

0 commit comments

Comments
 (0)