LuckPerms-DBA/build.gradle

64 lines
1.4 KiB
Groovy
Raw Normal View History

2018-09-24 20:52:59 +08:00
buildscript {
repositories {
2019-01-08 05:25:11 +08:00
maven { url 'https://plugins.gradle.org/m2' }
2018-09-24 20:52:59 +08:00
}
dependencies {
classpath 'gradle.plugin.net.minecrell:licenser:0.4.1'
}
}
defaultTasks 'licenseFormat', 'build'
2018-08-11 03:39:29 +08:00
subprojects {
apply plugin: 'java'
apply plugin: 'maven'
2018-09-24 20:52:59 +08:00
apply plugin: 'net.minecrell.licenser'
2018-08-11 03:39:29 +08:00
group = 'me.lucko.luckperms'
2018-09-23 22:04:15 +08:00
version = '4.3-SNAPSHOT'
2018-08-11 03:39:29 +08:00
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
2018-08-14 17:56:07 +08:00
jar {
from '../LICENSE.txt'
}
2018-08-11 03:39:29 +08:00
def determinePatchVersion = {
// get the name of the last tag
def tagInfo = new ByteArrayOutputStream()
2018-08-11 03:39:29 +08:00
exec {
commandLine 'git', 'describe', '--tags'
standardOutput = tagInfo
2018-08-11 03:39:29 +08:00
}
tagInfo = tagInfo.toString()
2018-08-11 03:39:29 +08:00
if (!tagInfo.contains('-')) {
return 0
2018-08-11 03:39:29 +08:00
}
return tagInfo.split("-")[1]
2018-08-11 03:39:29 +08:00
}
project.ext.majorVersion = '4'
2018-09-23 22:04:15 +08:00
project.ext.minorVersion = '3'
2018-08-11 03:39:29 +08:00
project.ext.patchVersion = determinePatchVersion()
project.ext.fullVersion = project.ext.majorVersion + '.' + project.ext.minorVersion + '.' + project.ext.patchVersion
2018-09-24 20:52:59 +08:00
license {
2018-11-11 04:20:58 +08:00
header = rootProject.file('HEADER.txt')
2018-09-24 20:52:59 +08:00
include '**/*.java'
newLine = true
}
2018-08-11 03:39:29 +08:00
repositories {
2018-09-20 04:47:22 +08:00
//mavenLocal()
2018-08-11 03:39:29 +08:00
mavenCentral()
2019-01-08 05:25:11 +08:00
maven { url 'https://repo.lucko.me/' }
2018-08-11 03:39:29 +08:00
}
}