Archiviert
13
0

Merge pull request 'Add Gradle Plugin' (#1) from gradle into master
Einige Prüfungen sind fehlgeschlagen
SteamWarCI Build failed

Reviewed-on: #1
Dieser Commit ist enthalten in:
Lixfel 2023-05-24 08:02:53 +02:00
Commit 3e182a1884
3 geänderte Dateien mit 13 neuen und 56 gelöschten Zeilen

Datei anzeigen

@ -3,37 +3,12 @@ plugins {
id 'java'
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"
}
}
id 'de.steamwar.gradle' version 'RELEASE'
}
group = 'de.steamwar'
version = ''
Properties steamwarProperties = new Properties()
if (file("steamwar.properties").exists()) {
steamwarProperties.load(file("steamwar.properties").newDataInputStream())
}
ext {
buildName = 'Builder'
artifactName = 'Builder'
uberJarName = "${buildName}-all.jar"
jarName = "${artifactName}.jar"
libs = "${buildDir}/libs"
}
compileJava.options.encoding = 'UTF-8'
sourceCompatibility = '1.8'
@ -57,14 +32,6 @@ repositories {
maven {
url = uri('https://hub.spigotmc.org/nexus/content/repositories/snapshots/')
}
maven {
url = uri('https://steamwar.de/maven')
credentials {
username = steamwarProperties.getProperty("maven.username", "")
password = steamwarProperties.getProperty("maven.password", "")
}
}
}
dependencies {
@ -72,25 +39,6 @@ dependencies {
compileOnly swdep("SpigotCore")
}
task buildProject {
description 'Build this project'
group "Steamwar"
dependsOn build
steamwar {
buildName = 'Builder'
}
task finalizeProject {
description 'Finalize this project'
group "Steamwar"
doLast {
if ("${buildDir}" == null) {
return
}
delete fileTree("${libs}").matching {
exclude("${uberJarName}")
}
file(libs + "/" + uberJarName).renameTo(file(libs + "/" + jarName))
}
}
// build.finalizedBy(finalizeProject)

Datei anzeigen

@ -1 +1,10 @@
pluginManagement {
repositories {
gradlePluginPortal()
maven {
url = uri('https://steamwar.de/maven/')
}
}
}
rootProject.name = 'Builder'

Datei anzeigen

@ -3,4 +3,4 @@ build:
- "./gradlew --stop"
artifacts:
"/binarys/Builder.jar": "build/libs/Builder.jar"
"/binarys/Builder.jar": "build/libs/builder.jar"