50 lines
1.2 KiB
Groovy
50 lines
1.2 KiB
Groovy
/*
|
|
* This 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 Manual available at https://docs.gradle.org/6.0/userguide/java_library_plugin.html
|
|
*/
|
|
|
|
apply plugin: 'java'
|
|
apply plugin: 'eclipse'
|
|
|
|
repositories {
|
|
// Use jcenter for resolving dependencies.
|
|
// You can declare any Maven/Ivy/file repository here.
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
task apiJar(type: Jar) {
|
|
archiveFileName = "MurderatorAPI.jar"
|
|
group 'build'
|
|
description "Fait un jar avec juste l'api"
|
|
from(sourceSets.main.output) {
|
|
include "com/bernard/murder/model/**"
|
|
include "com/bernard/murder/audio/Serveur*.class"
|
|
include "com/bernard/murder/audio/Codes*.class"
|
|
}
|
|
}
|
|
|
|
|
|
jar {
|
|
manifest {
|
|
attributes(
|
|
'Main-Class': 'com.bernard.murder.view.LauncherFrame'
|
|
)
|
|
}
|
|
from {
|
|
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
|
|
implementation 'com.amihaiemil.web:eo-yaml:5.2.1'
|
|
implementation 'com.formdev:flatlaf:1.3'
|
|
|
|
implementation files('../../bernard/BernardLibs.git/build/libs/BernardLibs.jar')
|
|
|
|
}
|