forked from SteamWar/SteamWar
Fix CI
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import org.codehaus.plexus.util.Os
|
||||
import java.net.URI
|
||||
import java.util.Properties
|
||||
|
||||
@@ -49,6 +50,9 @@ plugins {
|
||||
group = "de.steamwar"
|
||||
version = ""
|
||||
|
||||
|
||||
private val isInCi by lazy { Os.isFamily(Os.FAMILY_UNIX) && ProcessBuilder("hostname").start().inputStream.bufferedReader().readText().startsWith("steamwar.de") }
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
@@ -74,6 +78,11 @@ allprojects {
|
||||
}
|
||||
}
|
||||
|
||||
if (isInCi) {
|
||||
maven {
|
||||
url = URI("file:///var/www/html/maven/")
|
||||
}
|
||||
} else {
|
||||
maven {
|
||||
url = URI("https://steamwar.de/maven/")
|
||||
credentials {
|
||||
@@ -84,6 +93,7 @@ allprojects {
|
||||
password = swProps.getProperty("maven.password")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
maven {
|
||||
url = URI("https://repo.codemc.io/repository/maven-snapshots/")
|
||||
|
||||
Reference in New Issue
Block a user