mirror of
https://gitlab.com/cable-mc/cobblemon.git
synced 2026-10-20 14:16:26 -04:00
- Exclude assets/data (~250MB) from sources jars - Limit licenser to .kt/.java so it doesn't scan ~29k resource files - Enable the Gradle daemon and build cache - The versioning plugin runs a full JGit status (~28s on this repo) in every project replace by ou own helper that use git local or CI env variable
15 lines
404 B
Kotlin
15 lines
404 B
Kotlin
import utilities.gitBranch
|
|
import utilities.gitShortCommit
|
|
|
|
plugins {
|
|
id("cobblemon.root-conventions")
|
|
}
|
|
|
|
version = "${project.property("mod_version")}+${project.property("mc_version")}"
|
|
|
|
val isSnapshot = project.property("snapshot")?.equals("true") == true
|
|
if (isSnapshot) {
|
|
val fixedBranchName = gitBranch().substringAfter("/")
|
|
version = "$version-${fixedBranchName}-${gitShortCommit()}"
|
|
}
|