diff --git a/build.gradle b/build.gradle index b5edc6e..dc04dae 100644 --- a/build.gradle +++ b/build.gradle @@ -21,3 +21,16 @@ repositories { dependencies { implementation "net.raphimc:ViaProxy:3.3.4-SNAPSHOT" } + +processResources { + //Config file: "version: ${version}" + inputs.properties( + "version": project.maven_version + ) + + filesMatching("viaproxy.yml") { + expand( + "version": project.maven_version + ) + } +} diff --git a/gradle.properties b/gradle.properties index 0b49fc6..f382e4d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,5 +6,5 @@ org.gradle.configureondemand=true #Maven settings maven_name=NoLocalConnections maven_group=net.lenni0451 -maven_version=1.2 +maven_version=2.0.0 snapshot=false diff --git a/src/main/resources/viaproxy.yml b/src/main/resources/viaproxy.yml index 57d2942..12c6575 100644 --- a/src/main/resources/viaproxy.yml +++ b/src/main/resources/viaproxy.yml @@ -1,5 +1,5 @@ name: "NoLocalConnections" -version: "1.2" +version: "${version}" author: "Lenni0451" main: "net.lenni0451.nolocalconnections.Main" min-version: "3.3.4"