-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
57 lines (46 loc) · 1.8 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.5.20"
id("application")
}
application {
mainClass.set("SketchLibraryKt")
}
group = "net.solvetheriddle"
version = "0.1"
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
// implementation(kotlin("stdlib-jdk8")) // Probably included automatically
// implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0")
// Local (copied from Processing4)
implementation(jarsFrom("libs/processing"))
implementation(jarsFrom("libs/contributed/sound"))
implementation(jarsFrom("libs/contributed/VideoExport"))
implementation(jarsFrom("libs/contributed/themidibus"))
implementation(jarsFrom("libs/contributed/peasycam"))
implementation(jarsFrom("libs/contributed/gicentreUtils"))
// Installed in local maven
// implementation(group = "org.processing", name = "core", version = "3.5.4")
// implementation(group = "org.processing", name = "core", version = "4.0a2")
// Public maven (outdated version)
// implementation(group = "org.processing", name = "core", version = "3.3.7")
// implementation(group = "org.processing", name = "video", version = "3.3.7")
// implementation(group = "org.processing", name = "pdf", version = "3.3.7")
// implementation(group = "org.processing", name = "net", version = "3.3.7")
// implementation(group = "org.processing", name = "serial", version = "3.3.7")
// // 3rd party
// implementation("net.compartmental.code:minim:2.2.2")
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions.jvmTarget = "11"
fun jarsFrom(folder: String): ConfigurableFileTree {
return fileTree(
mapOf(
"dir" to folder,
"include" to listOf("*.jar")
)
)
}