Adds versioning plugin.
Some checks failed
Gradle Build / build (push) Has been cancelled

This commit is contained in:
2026-09-26 20:02:01 -07:00
parent 7a404aa27f
commit ea18bb2f5c

View File

@@ -7,6 +7,12 @@
plugins { plugins {
id 'java-library' id 'java-library'
id 'maven-publish' id 'maven-publish'
id 'org.danilopianini.git-sensitive-semantic-versioning' version '7.0.24'
}
gitSemVer {
minimumVersion.set('0.2.1')
versionPrefix.set('v')
} }
repositories { repositories {
@@ -24,7 +30,6 @@ dependencies {
group = 'com.majinnaibu.minecraft.plugins' group = 'com.majinnaibu.minecraft.plugins'
version = '0.2.1-SNAPSHOT'
description = 'MobScores' description = 'MobScores'
java { java {
@@ -60,13 +65,15 @@ tasks.withType(JavaCompile).configureEach {
// options.compilerArgs << "-Xlint:deprecation" // options.compilerArgs << "-Xlint:deprecation"
} }
tasks.withType(Javadoc) { tasks.withType(Javadoc).configureEach {
options.encoding = 'UTF-8' options.encoding = 'UTF-8'
} }
def pluginVersion = project.version.toString()
processResources { processResources {
inputs.property "version", project.version inputs.property "version", pluginVersion
filesMatching('plugin.yml') { filesMatching('plugin.yml') {
expand(project.properties) expand(version: pluginVersion)
} }
} }