SteamWar/MissileWars
Archiviert
13
0

Update MissileWars to swdep

Dieser Commit ist enthalten in:
yoyosource 2022-07-04 17:35:23 +02:00
Ursprung 639fada596
Commit cb3ee2716e

Datei anzeigen

@ -37,6 +37,18 @@ plugins {
id 'com.github.johnrengelman.shadow' version '5.0.0' id 'com.github.johnrengelman.shadow' version '5.0.0'
} }
ext.swdep = { s ->
if (file("${rootDir}/lib/${s}.jar").exists()) {
return files("${rootDir}/lib/${s}.jar")
} else {
if (s.contains("-")) {
return "de.steamwar:${s.toLowerCase().replace('-', ':')}"
} else {
return "de.steamwar:${s.toLowerCase()}:RELEASE"
}
}
}
group 'de.steamwar' group 'de.steamwar'
version '' version ''
@ -81,6 +93,14 @@ sourceSets {
repositories { repositories {
mavenCentral() mavenCentral()
maven {
url = uri('https://steamwar.de/maven/')
credentials {
username = steamwarProperties.getProperty("maven.username")
password = steamwarProperties.getProperty("maven.password")
}
}
} }
dependencies { dependencies {
@ -89,9 +109,9 @@ dependencies {
annotationProcessor 'org.projectlombok:lombok:1.18.22' annotationProcessor 'org.projectlombok:lombok:1.18.22'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.22' testAnnotationProcessor 'org.projectlombok:lombok:1.18.22'
compileOnly files("${projectDir}/lib/SpigotCore.jar") compileOnly swdep("SpigotCore")
compileOnly files("${projectDir}/lib/Spigot-1.15.jar") compileOnly swdep("Spigot-1.15")
compileOnly files("${projectDir}/lib/WorldEdit-1.15.jar") compileOnly swdep("WorldEdit-1.15")
} }
task buildProject { task buildProject {