-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(gradle): add velocity build-logic stuff for future
- Loading branch information
1 parent
6fdc4c3
commit 614ca98
Showing
6 changed files
with
65 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
build-logic/src/main/kotlin/velocity-conventions.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import io.papermc.hangarpublishplugin.model.Platforms | ||
|
||
plugins { | ||
id("common-conventions") | ||
id("xyz.jpenilla.run-velocity") | ||
id("xyz.jpenilla.gremlin-gradle") | ||
id("io.papermc.hangar-publish-plugin") | ||
} | ||
|
||
tasks { | ||
runVelocity { | ||
velocityVersion("3.2.0-SNAPSHOT") | ||
|
||
systemProperty("terminal.jline", false) | ||
systemProperty("terminal.ansi", true) | ||
args("-p", "25520") | ||
|
||
downloadPlugins { | ||
url("https://download.luckperms.net/1521/velocity/LuckPerms-Velocity-5.4.108.jar") | ||
} | ||
} | ||
|
||
named("clean", Delete::class) { | ||
delete(project.projectDir.resolve("run")) | ||
} | ||
} | ||
|
||
hangarPublish { | ||
publications.register("plugin") { | ||
version.set(project.version as String) | ||
id.set("TimeTriggeredPerms") | ||
channel.set(if (rootProject.versionString().endsWith("-SNAPSHOT")) "Beta" else "Release") | ||
platforms { | ||
register(Platforms.VELOCITY) { | ||
jar.set(tasks.shadowJar.flatMap { it.archiveFile }) | ||
platformVersions.set(listOf("3.0")) | ||
dependencies { | ||
url("LuckPerms", "https://luckperms.net") { | ||
required.set(true) | ||
} | ||
} | ||
} | ||
} | ||
pages { | ||
resourcePage(provider { rootProject.file("README.md").readText() }) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,3 +28,4 @@ idea-gradle = "1.1.7" | |
run-task = "2.2.2" | ||
hangar-publish = "0.1.0" | ||
spotless = "6.23.0" | ||
ktlint = "1.0.1" |