46 lines
No EOL
979 B
Groovy
46 lines
No EOL
979 B
Groovy
import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
|
|
|
|
plugins {
|
|
id 'java'
|
|
id 'application'
|
|
id 'com.gradleup.shadow' version '8.3.0'
|
|
}
|
|
|
|
group = 'fr.nabil'
|
|
version = '1.0-SNAPSHOT'
|
|
mainClassName = project.properties['main'] ?: 'Main'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
// maven {
|
|
// url "https://s01.oss.sonatype.org/content/repositories/staging/"
|
|
// metadataSources { artifact() }
|
|
// }
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
|
|
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
|
|
implementation 'uk.co.electronstudio.jaylib:jaylib:5.0.+'
|
|
}
|
|
|
|
application {
|
|
if(DefaultNativePlatform.currentOperatingSystem.isMacOsX()) {
|
|
applicationDefaultJvmArgs = ['-XstartOnFirstThread']
|
|
}
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
|
|
distributions {
|
|
main {
|
|
contents {
|
|
into('resources'){
|
|
from 'resources'
|
|
}
|
|
}
|
|
}
|
|
} |