This commit is contained in:
15
build.gradle
15
build.gradle
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user