82 lines
1.8 KiB
Groovy
82 lines
1.8 KiB
Groovy
/*
|
|
* This build file was generated by the Gradle 'init' task.
|
|
*
|
|
* This generated file contains a sample Java Library project to get you started.
|
|
* For more details take a look at the Java Libraries chapter in the Gradle
|
|
* user guide available at https://docs.gradle.org/4.3/userguide/java_library_plugin.html
|
|
*/
|
|
|
|
// Apply the java-library plugin to add support for Java Library
|
|
apply plugin: 'java-library'
|
|
apply plugin: 'eclipse'
|
|
apply plugin: 'java'
|
|
|
|
compileJava.options.encoding = 'UTF-8'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
|
|
maven {
|
|
name 'm2-dv8tion'
|
|
url 'https://m2.dv8tion.net/releases'
|
|
}
|
|
}
|
|
|
|
sourceSets {
|
|
main {
|
|
java {
|
|
srcDir '/src/main/java'
|
|
|
|
exclude 'com/bernard/juliabot/internalddon/**'
|
|
}
|
|
}
|
|
}
|
|
|
|
task apiJar(type: Jar) {
|
|
archiveFileName = "JuliabotAPI.jar"
|
|
group 'build'
|
|
description "Fait un jar avec juste l'api"
|
|
from(sourceSets.main.output) {
|
|
include "com/bernard/juliabot/api/**"
|
|
}
|
|
}
|
|
|
|
task internalddonJar(type: Jar) {
|
|
archiveFileName = "JuliabotInternaddon_beta.jar"
|
|
group 'build'
|
|
description "Fait un jar avec juste l'addon interne"
|
|
from(sourceSets.main.output) {
|
|
include "com/bernard/juliabot/internaddon/**"
|
|
}
|
|
}
|
|
|
|
task execute(type:JavaExec) {
|
|
group 'execution'
|
|
description "Compile et execute le fichier jar"
|
|
mainClass = 'com.bernard.juliabot.Julia'
|
|
classpath = sourceSets.main.runtimeClasspath
|
|
}
|
|
|
|
task copyDependencies(type: Copy) {
|
|
group 'build'
|
|
from configurations.default
|
|
into 'dependencies'
|
|
}
|
|
|
|
dependencies {
|
|
|
|
implementation 'org.slf4j:slf4j-nop:1.7.25'
|
|
|
|
implementation 'net.dv8tion:JDA:4.4.0_352'
|
|
|
|
implementation 'com.thedeanda:lorem:2.1'
|
|
|
|
implementation 'commons-io:commons-io:2.6'
|
|
|
|
implementation group: 'org.postgresql', name: 'postgresql', version: '42.2.22'
|
|
|
|
implementation 'com.github.mpkorstanje:simmetrics-core:4.1.1'
|
|
|
|
}
|
|
|