Preparing Gradle build for automatic build from Actions.

This commit is contained in:
天クマ 2025-12-14 23:36:20 -03:00
commit df60600073
3 changed files with 15 additions and 3 deletions

View file

@ -4,7 +4,7 @@ plugins {
}
group = "io.github.adrianvic"
version = "1.0.3-SNAPSHOT"
version = System.getenv("NEMESIS_VERSION_NAME")?.take(7) ?: "1.0.3-SNAPSHOT"
repositories {
mavenCentral()
@ -24,6 +24,14 @@ val mcVersions = listOf(
/* CREATE SOURCE SET PER VERSION */
/* ----------------------------------------- */
tasks.withType<ProcessResources> {
inputs.property("version", project.version)
filesMatching("plugin.yml") {
expand("version" to project.version)
}
}
mcVersions.forEach { ver ->
val ss = sourceSets.create(ver) {
java.srcDir("src/$ver/java")
@ -76,6 +84,10 @@ mcVersions.forEach { ver ->
}
}
tasks.register("buildAll") {
dependsOn(tasks.withType<Jar>())
}
/* ----------------------------------------- */
/* JAVA SETTINGS */
/* ----------------------------------------- */

View file

@ -1,5 +1,5 @@
name: "Eye-of-Nemesis"
version: '1.0.3-SNAPSHOT'
version: ${version}
main: io.github.adrianvic.nemesiseye.Nemesis
author: 'Adrian Victor'
description: "Change what players can do based in custom criteria."

View file

@ -1,5 +1,5 @@
name: "Eye-of-Nemesis"
version: '1.0.3-SNAPSHOT'
version: ${version}
main: io.github.adrianvic.nemesiseye.Nemesis
api-version: '1.21'
author: 'Adrian Victor'