53 lines
No EOL
1.3 KiB
Groovy
53 lines
No EOL
1.3 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'application'
|
|
}
|
|
|
|
group 'BOT'
|
|
|
|
version '1.0.1'
|
|
|
|
def jdaVersion = '4.4.0_350'
|
|
def jsonsimpleVersion = '1.1.1'
|
|
def jodatimeVersion = '2.10.13'
|
|
def self4JVersion = '1.7.32'
|
|
def JSON = '4.13.0'
|
|
|
|
mainClassName = 'MissingIDent'
|
|
sourceCompatibility = 1.8
|
|
compileJava.options.encoding = 'UTF-8'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven {
|
|
name 'm2-dv8tion'
|
|
url 'https://m2.dv8tion.net/releases'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
compile "net.dv8tion:JDA:$jdaVersion"
|
|
compile group: 'com.googlecode.json-simple', name: 'json-simple', version: jsonsimpleVersion
|
|
compile group: 'joda-time', name: 'joda-time', version: jodatimeVersion
|
|
compile group: 'org.slf4j', name: 'slf4j-api', version: self4JVersion
|
|
compile group: 'org.slf4j', name: 'slf4j-jdk14', version: self4JVersion
|
|
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
|
|
} |