AlgoGenetique/build.gradle

46 lines
991 B
Groovy
Raw Normal View History

2024-10-11 21:46:06 +02:00
import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
2024-10-11 19:31:10 +02:00
plugins {
id 'java'
2024-10-11 21:46:06 +02:00
id 'application'
id 'com.github.johnrengelman.shadow' version '7.0.0'
2024-10-11 19:31:10 +02:00
}
group = 'fr.nabil'
version = '1.0-SNAPSHOT'
2024-10-11 21:46:06 +02:00
mainClassName = project.properties['main'] ?: 'Main'
2024-10-11 19:31:10 +02:00
repositories {
mavenCentral()
2024-10-11 21:46:06 +02:00
// maven {
// url "https://s01.oss.sonatype.org/content/repositories/staging/"
// metadataSources { artifact() }
// }
2024-10-11 19:31:10 +02:00
}
dependencies {
2024-10-11 21:46:06 +02:00
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
2024-10-11 19:31:10 +02:00
implementation 'uk.co.electronstudio.jaylib:jaylib:5.0.+'
}
2024-10-11 21:46:06 +02:00
application {
if(DefaultNativePlatform.currentOperatingSystem.isMacOsX()) {
applicationDefaultJvmArgs = ['-XstartOnFirstThread']
}
}
2024-10-11 19:31:10 +02:00
test {
useJUnitPlatform()
2024-10-11 21:46:06 +02:00
}
distributions {
main {
contents {
into('resources'){
from 'resources'
}
}
}
2024-10-11 19:31:10 +02:00
}