MissingIdentifier/build.gradle

55 lines
1.6 KiB
Groovy

plugins {
id 'java'
id 'application'
}
group 'BOT'
version '10.1'
def jdaVersion = '4.2.0_225'
def jdautilitiesVersion = '2.1.5'
def jsonsimpleVersion = '1.1.1'
def jodatimeVersion = '2.10.6'
def jdbcVersion = '8.0.19'
def self4JVersion = '1.7.30'
def log4jVersion = '2.13.3'
def JSON = '4.12.0'
mainClassName = 'MissingIDent'
sourceCompatibility = 1.8
compileJava.options.encoding = 'UTF-8'
repositories {
jcenter()
}
dependencies {
compile "net.dv8tion:JDA:$jdaVersion"
// compile "com.jagrosh:jda-utilities:$jdautilitiesVersion"
compile group: 'com.googlecode.json-simple', name: 'json-simple', version: jsonsimpleVersion
compile group: 'joda-time', name: 'joda-time', version: jodatimeVersion
// compile group: 'mysql', name: 'mysql-connector-java', version: jdbcVersion
compile group: 'org.slf4j', name: 'slf4j-api', version: self4JVersion
compile group: 'org.slf4j', name: 'slf4j-log4j12', version: self4JVersion
compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: log4jVersion
compile group: 'com.cedarsoftware', name: 'json-io', version: JSON
}
//create a single Jar with all dependencies
task fatJar(type: Jar) {
manifest {
attributes 'BOT': 'MissingIDent',
'Implementation-Version': version,
'Main-Class': mainClassName
}
baseName = project.name + '-all'
from {
configurations
.compile
.findAll { !it.name.endsWith('pom') }
.collect { it.isDirectory() ? it : zipTree(it) }
}
with jar
}