Update MissileWars to swdep
Dieser Commit ist enthalten in:
Ursprung
639fada596
Commit
cb3ee2716e
26
build.gradle
26
build.gradle
@ -37,6 +37,18 @@ plugins {
|
||||
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'
|
||||
version ''
|
||||
|
||||
@ -81,6 +93,14 @@ sourceSets {
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
||||
maven {
|
||||
url = uri('https://steamwar.de/maven/')
|
||||
credentials {
|
||||
username = steamwarProperties.getProperty("maven.username")
|
||||
password = steamwarProperties.getProperty("maven.password")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@ -89,9 +109,9 @@ dependencies {
|
||||
annotationProcessor 'org.projectlombok:lombok:1.18.22'
|
||||
testAnnotationProcessor 'org.projectlombok:lombok:1.18.22'
|
||||
|
||||
compileOnly files("${projectDir}/lib/SpigotCore.jar")
|
||||
compileOnly files("${projectDir}/lib/Spigot-1.15.jar")
|
||||
compileOnly files("${projectDir}/lib/WorldEdit-1.15.jar")
|
||||
compileOnly swdep("SpigotCore")
|
||||
compileOnly swdep("Spigot-1.15")
|
||||
compileOnly swdep("WorldEdit-1.15")
|
||||
}
|
||||
|
||||
task buildProject {
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren