forked from openrndr/openrndr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
50 lines (46 loc) · 1.67 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
plugins {
kotlin("multiplatform")
}
val lwjglVersion: String by rootProject.extra
val kotlinLanguageVersion: String by rootProject.extra
val kotlinLoggingVersion: String by rootProject.extra
val kotlinJvmTarget: String by rootProject.extra
val kotlinApiVersion: String by rootProject.extra
val jsoupVersion: String by rootProject.extra
kotlin {
jvm {
compilations.all {
kotlinOptions.jvmTarget = kotlinJvmTarget
kotlinOptions.apiVersion = kotlinApiVersion
kotlinOptions.languageVersion = kotlinLanguageVersion
}
testRuns["test"].executionTask.configure {
useJUnitPlatform()
}
}
sourceSets {
val commonTest by getting {
dependencies {
implementation(kotlin("test"))
}
}
val jvmMain by getting {
dependencies {
implementation(project(":openrndr-application"))
implementation(project(":openrndr-math"))
implementation(project(":openrndr-color"))
implementation("org.jsoup:jsoup:$jsoupVersion")
implementation("io.github.microutils:kotlin-logging:$kotlinLoggingVersion")
}
}
val jvmTest by getting {
dependencies {
runtimeOnly(project(":openrndr-jvm:openrndr-gl3-natives-windows"))
runtimeOnly(project(":openrndr-jvm:openrndr-gl3-natives-macos"))
runtimeOnly(project(":openrndr-jvm:openrndr-gl3-natives-linux-x64"))
runtimeOnly("org.slf4j:slf4j-simple:1.7.30")
runtimeOnly(project(":openrndr-nullgl"))
}
}
}
}