LuckPerms/build.gradle

49 lines
1.1 KiB
Groovy
Raw Normal View History

2018-08-10 21:39:29 +02:00
subprojects {
apply plugin: 'java'
apply plugin: 'maven'
group = 'me.lucko.luckperms'
2018-09-23 16:04:15 +02:00
version = '4.3-SNAPSHOT'
2018-08-10 21:39:29 +02:00
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
2018-08-14 11:56:07 +02:00
jar {
from '../LICENSE.txt'
}
2018-08-10 21:39:29 +02:00
def determinePatchVersion = {
// get the name of the last tag
def tagInfo = new ByteArrayOutputStream()
2018-08-10 21:39:29 +02:00
exec {
commandLine 'git', 'describe', '--tags'
standardOutput = tagInfo
2018-08-10 21:39:29 +02:00
}
tagInfo = tagInfo.toString()
2018-08-10 21:39:29 +02:00
if (!tagInfo.contains('-')) {
return 0
2018-08-10 21:39:29 +02:00
}
return tagInfo.split("-")[1]
2018-08-10 21:39:29 +02:00
}
project.ext.majorVersion = '4'
2018-09-23 16:04:15 +02:00
project.ext.minorVersion = '3'
2018-08-10 21:39:29 +02:00
project.ext.patchVersion = determinePatchVersion()
project.ext.fullVersion = project.ext.majorVersion + '.' + project.ext.minorVersion + '.' + project.ext.patchVersion
repositories {
2018-09-19 22:47:22 +02:00
//mavenLocal()
2018-08-10 21:39:29 +02:00
mavenCentral()
maven {
name 'luck-repo'
url 'https://repo.lucko.me/'
}
}
}