-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
44 lines (36 loc) · 923 Bytes
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
plugins {
id("java")
id("application")
}
repositories {
mavenCentral()
maven {
url = uri("https://mvn.repo.rccookie.de/releases")
}
}
sourceSets {
main {
resources {
setSrcDirs(listOf("src/main/assets")) // Add your custom sources directory here
}
}
}
dependencies {
implementation("org.greenfoot:greenfoot:3.7.0.11")
implementation("org.json:json:20210307")
}
version = "0.0.1"
group = "org.jantor"
tasks.register<JavaExec>("runScenario") {
mainClass.set("greenfoot.export.GreenfootScenarioApplication")
classpath = sourceSets["main"].runtimeClasspath
args = emptyList()
jvmArgs = listOf(
"--module-path", "C:\\Program Files\\Greenfoot\\lib\\javafx\\lib",
"--add-modules", "javafx.controls,javafx.fxml"
)
workingDir = file("$projectDir/src/main")
}
tasks.named("run") {
dependsOn("runScenario")
}