/* * 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' // In this section you declare where to find the dependencies of your project repositories { // Use jcenter for resolving your dependencies. // You can declare any Maven/Ivy/file repository here. jcenter() } sourceSets { main { java { srcDir '/src/main/java' exclude 'com/bernard/juliabot/internalddon/**' } } } task apiJar(type: Jar) { archiveName = "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) { archiveName = "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" main = 'com.bernard.juliabot.Julia' classpath = sourceSets.main.runtimeClasspath } task copyDependencies(type: Copy) { group 'build' from configurations.compile into 'dependencies' } dependencies { // This dependency is exported to consumers, that is to say found on their compile classpath. api 'org.apache.commons:commons-math3:3.6.1' // This dependency is used internally, and not exposed to consumers on their own compile classpath. implementation 'com.google.guava:guava:23.0' // Use JUnit test framework testImplementation 'junit:junit:4.12' compile 'org.slf4j:slf4j-nop:1.7.25' compile 'net.dv8tion:JDA:3.8.1_439' compile 'com.thedeanda:lorem:2.1' // https://mvnrepository.com/artifact/mysql/mysql-connector-java compile group: 'mysql', name: 'mysql-connector-java', version: '8.0.15' }