1
0
mirror of https://github.com/GeyserMC/Floodgate.git synced 2025-12-23 16:59:18 +00:00

Don't archive core & api artifacts. Don't deploy databases. Deploy core

This commit is contained in:
Tim203
2022-05-11 22:57:34 +02:00
parent fc2fe290a6
commit b85ba07edd
4 changed files with 14 additions and 11 deletions

5
Jenkinsfile vendored
View File

@@ -21,7 +21,10 @@ pipeline {
post { post {
success { success {
archiveArtifacts artifacts: '**/build/libs/floodgate-*.jar', archiveArtifacts artifacts: '**/build/libs/floodgate-*.jar',
excludes: '**/floodgate-parent-*.jar', excludes:
'**/floodgate-parent-*.jar',
'**/floodgate-api-*.jar',
'**/floodgate-core-*.jar'
fingerprint: true fingerprint: true
} }
} }

View File

@@ -1,5 +1,5 @@
plugins { plugins {
id("floodgate.publish-conventions") id("floodgate.shadow-conventions")
} }
tasks { tasks {

View File

@@ -12,14 +12,15 @@ allprojects {
description = "Allows Bedrock players to join Java edition servers while keeping the server in online mode" description = "Allows Bedrock players to join Java edition servers while keeping the server in online mode"
} }
val platforms = setOf( val deployProjects = setOf(
projects.api,
// for future Floodgate integration + Fabric
projects.core,
projects.bungee, projects.bungee,
projects.spigot, projects.spigot,
projects.velocity projects.velocity
).map { it.dependencyProject } ).map { it.dependencyProject }
projects.api.dependencyProject.plugins.apply("floodgate.publish-conventions")
//todo re-add pmd and organisation/license/sdcm/issuemanagement stuff //todo re-add pmd and organisation/license/sdcm/issuemanagement stuff
subprojects { subprojects {
@@ -44,10 +45,10 @@ subprojects {
if (relativePath.startsWith("database" + File.separator)) { if (relativePath.startsWith("database" + File.separator)) {
group = rootProject.group as String + ".database" group = rootProject.group as String + ".database"
plugins.apply("floodgate.database-conventions") plugins.apply("floodgate.database-conventions")
} else { }
when (this) { when (this) {
in platforms -> plugins.apply("floodgate.publish-conventions") in deployProjects -> plugins.apply("floodgate.publish-conventions")
else -> plugins.apply("floodgate.base-conventions") else -> plugins.apply("floodgate.base-conventions")
} }
}
} }

View File

@@ -2,7 +2,6 @@ import net.kyori.blossom.BlossomExtension
plugins { plugins {
id("net.kyori.blossom") id("net.kyori.blossom")
id("floodgate.shadow-conventions")
} }
dependencies { dependencies {