Add Auth to SW Repo

This commit is contained in:
2024-08-04 21:20:56 +02:00
parent 52dc74a487
commit c5fc15dbf8
+8
View File
@@ -1,4 +1,5 @@
import java.net.URI import java.net.URI
import java.util.Properties
/* /*
* This file is a part of the SteamWar software. * This file is a part of the SteamWar software.
@@ -52,6 +53,13 @@ allprojects {
} }
maven { maven {
url = URI("https://steamwar.de/maven/") url = URI("https://steamwar.de/maven/")
credentials {
val swProps = Properties()
swProps.load(file("steamwar.properties").inputStream())
username = swProps.getProperty("maven.username")
password = swProps.getProperty("maven.password")
}
} }
} }
} }