MissingIdentifier/build.gradle

51 lines
1.4 KiB
Groovy
Raw Normal View History

2021-03-04 19:04:20 +01:00
plugins {
id 'java'
id 'application'
}
group 'BOT'
2021-03-05 17:33:43 +01:00
version '1.0.0'
2021-03-04 19:04:20 +01:00
def jdaVersion = '4.2.0_225'
def jsonsimpleVersion = '1.1.1'
def jodatimeVersion = '2.10.6'
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 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-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
}