Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions api/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
plugins {
id("floodgate.publish-conventions")
id("floodgate.shadow-conventions")
}

dependencies {
api(libs.cumulus)
api(libs.events)
Expand Down
61 changes: 1 addition & 60 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,62 +1,3 @@
plugins {
`java-library`
alias(libs.plugins.micronaut) apply false
alias(libs.plugins.lombok) apply false
}

allprojects {
group = "org.geysermc.floodgate"
description = "Allows Bedrock players to join Java edition servers while keeping the server in online mode"

apply {
plugin("net.kyori.indra.git")
}

if (shouldAddBranchName()) {
version = versionWithBranchName()
}
}

//todo differentiate maven publishing from downloads publishing
val deployProjects = setOf(
projects.api,
projects.coreCommon,
projects.coreNetty4,
projects.isolation,
projects.bungee,
projects.spigot,
projects.velocity,
projects.bungeeBase,
projects.spigotBase,
projects.velocityBase,
projects.universal
).map { it.dependencyProject }

val shadowProjects = setOf(
projects.api,
projects.coreCommon,
projects.coreNetty4,
projects.bungeeBase,
projects.spigotBase,
projects.velocityBase,
projects.universal
).map { it.dependencyProject }

//todo re-add checkstyle when we switch back to 2 space indention
// and take a look again at spotbugs someday

subprojects {
apply {
plugin("java-library")
plugin("io.freefair.lombok")
}

when (this) {
in deployProjects -> plugins.apply("floodgate.publish-conventions")
else -> plugins.apply("floodgate.base-conventions")
}

if (this in shadowProjects) {
plugins.apply("floodgate.shadow-conventions")
}
id("floodgate.base-conventions")
}
2 changes: 2 additions & 0 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ repositories {
}

dependencies {
implementation(libs.lombok)
implementation(libs.micronaut)
implementation(libs.indra.common)
implementation(libs.indra.git)
implementation(libs.indra.licenser.spotless)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@ plugins {
id("net.kyori.indra.git")
// id("net.kyori.indra.licenser.spotless")
id("floodgate.depsize")
id("io.freefair.lombok")
}

val rootProperties: Map<String, *> = project.rootProject.properties
group = rootProperties["group"] as String + "." + rootProperties["id"] as String
version = if (shouldAddBranchName()) versionWithBranchName() else rootProperties["version"] as String
description = rootProperties["description"] as String

dependencies {
compileOnly("org.checkerframework", "checker-qual", "3.19.0")
}
Expand Down
5 changes: 5 additions & 0 deletions bungee/base/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
plugins {
id("floodgate.shadow-conventions")
id("floodgate.publish-conventions")
}

dependencies {
api(projects.coreNetty4)
annotationProcessor(projects.coreNetty4)
Expand Down
2 changes: 1 addition & 1 deletion bungee/isolated/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
java
id("floodgate.base-conventions")
}

dependencies {
Expand Down
2 changes: 2 additions & 0 deletions core/common/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
plugins {
id("floodgate.publish-conventions")
id("floodgate.generate-templates")
id("floodgate.dependency-hash")
id("floodgate.shadow-conventions")
id("io.micronaut.library")
}

Expand Down
5 changes: 5 additions & 0 deletions core/netty4/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
plugins {
id("floodgate.publish-conventions")
id("floodgate.shadow-conventions")
}

dependencies {
api(projects.coreCommon)
annotationProcessor(projects.coreCommon)
Expand Down
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@ org.gradle.configureondemand=true
org.gradle.caching=true
org.gradle.parallel=true

group=org.geysermc
id=floodgate
description="Allows Bedrock players to join Java edition servers while keeping the server in online mode"
version=3.0.0-SNAPSHOT
micronautVersion=4.6.0
6 changes: 2 additions & 4 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,8 @@ indra-git = { module = "net.kyori:indra-git", version.ref = "indra" }
indra-licenser-spotless = { module = "net.kyori:indra-licenser-spotless", version.ref = "indra" }
shadow = { group = "com.gradleup.shadow", name = "com.gradleup.shadow.gradle.plugin", version.ref = "shadow" }
gradle-idea-ext = { module = "gradle.plugin.org.jetbrains.gradle.plugin.idea-ext:gradle-idea-ext", version.ref = "gradle-idea-ext" }

[plugins]
micronaut = { id = "io.micronaut.library", version.ref = "micronaut-gradle" }
lombok = { id = "io.freefair.lombok", version.ref = "lombok" }
lombok = { group = "io.freefair.gradle", name = "lombok-plugin", version.ref = "lombok" }
micronaut = { group = "io.micronaut.library", name = "io.micronaut.library.gradle.plugin", version.ref = "micronaut-gradle" }

[bundles]
fastutil = ["fastutil-short-object-maps", "fastutil-int-object-maps"]
2 changes: 1 addition & 1 deletion isolation/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id("floodgate.base-conventions")
id("floodgate.publish-conventions")
}

dependencies {
Expand Down
5 changes: 5 additions & 0 deletions spigot/base/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
plugins {
id("floodgate.publish-conventions")
id("floodgate.shadow-conventions")
}

dependencies {
api(projects.coreNetty4)
annotationProcessor(projects.coreNetty4)
Expand Down
2 changes: 1 addition & 1 deletion spigot/isolated/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
java
id("floodgate.base-conventions")
}

dependencies {
Expand Down
2 changes: 2 additions & 0 deletions universal/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
plugins {
id("floodgate.publish-conventions")
id("floodgate.generate-templates")
id("floodgate.shadow-conventions")
}

provided(libs.bungee)
Expand Down
5 changes: 5 additions & 0 deletions velocity/base/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
plugins {
id("floodgate.publish-conventions")
id("floodgate.shadow-conventions")
}

dependencies {
api(projects.coreNetty4)
annotationProcessor(projects.coreNetty4)
Expand Down
2 changes: 1 addition & 1 deletion velocity/isolated/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
java
id("floodgate.base-conventions")
}

dependencies {
Expand Down
Loading