Skip to content

Commit 7a2fe4c

Browse files
committed
feat: resolve reporitory with akka-token variable
1 parent 5e8cbbf commit 7a2fe4c

File tree

2 files changed

+18
-28
lines changed

2 files changed

+18
-28
lines changed

.github/settings.xml

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,15 @@
11
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
2+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
3+
34
<profiles>
45
<profile>
5-
<id>akka-github-actions</id>
6-
<repositories>
7-
<repository>
8-
<id>akka-repository</id>
9-
<name>Akka library repository</name>
10-
<!-- This only works for Akka's internal CI/CD -->
11-
<url>https://repo.akka.io/maven/github_actions</url>
12-
</repository>
13-
</repositories>
14-
<pluginRepositories>
15-
<pluginRepository>
16-
<id>akka-repository</id>
17-
<name>Akka library repository</name>
18-
<!-- This only works for Akka's internal CI/CD -->
19-
<url>https://repo.akka.io/maven/github_actions</url>
20-
</pluginRepository>
21-
</pluginRepositories>
6+
<id>akka-default</id>
7+
<activation>
8+
<activeByDefault>true</activeByDefault>
9+
</activation>
10+
<properties>
11+
<akka-secure-repo>https://repo.akka.io/maven/github_actions</akka-secure-repo>
12+
</properties>
2213
</profile>
2314
</profiles>
24-
<activeProfiles>
25-
<activeProfile>akka-github-actions</activeProfile>
26-
</activeProfiles>
27-
</settings>
15+
</settings>

akka-javasdk-maven/akka-javasdk-parent/pom.xml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,22 +54,24 @@
5454
<maven-failsafe-plugin.version>3.1.2</maven-failsafe-plugin.version>
5555
<maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
5656
<maven-deploy-plugin.version>3.1.1</maven-deploy-plugin.version>
57-
57+
<akka-token>invalid-token</akka-token>
58+
<akka-secure-repo>https://repo.akka.io/${akka-token}/secure</akka-secure-repo>
5859
</properties>
5960

6061

6162
<pluginRepositories>
6263
<pluginRepository>
63-
<id>akka-repository</id>
64-
<url>https://repo.akka.io/maven</url>
64+
<id>akka-secure</id>
65+
<name>Akka Secure</name>
66+
<url>${akka-secure-repo}</url>
6567
</pluginRepository>
6668
</pluginRepositories>
6769

6870
<repositories>
6971
<repository>
70-
<id>akka-repository</id>
71-
<name>Akka repository</name>
72-
<url>https://repo.akka.io/maven</url>
72+
<id>akka-secure</id>
73+
<name>Akka Secure</name>
74+
<url>${akka-secure-repo}</url>
7375
</repository>
7476
</repositories>
7577

0 commit comments

Comments
 (0)