Preparing Gradle build for automatic build from Actions.
This commit is contained in:
parent
42ab7e4d89
commit
df60600073
3 changed files with 15 additions and 3 deletions
|
|
@ -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 */
|
||||
/* ----------------------------------------- */
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue