-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle.kts
57 lines (46 loc) · 1.68 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 magik.createGithubPublication
import magik.github
import org.jetbrains.kotlin.gradle.dsl.KotlinCompile
import org.lwjgl.lwjgl
import org.lwjgl.Lwjgl.Module.*
plugins {
kotlin("jvm") version embeddedKotlinVersion
id("org.lwjgl.plugin") version "0.0.34"
id("elect86.magik") version "0.3.2"
`maven-publish`
// id("com.github.johnrengelman.shadow") version "8.1.1"
}
repositories {
mavenCentral()
github("kotlin-graphics/mary")
}
dependencies {
api("kotlin.graphics:glm:0.9.9.1-11")
// https://mvnrepository.com/artifact/com.twelvemonkeys.imageio/imageio-core
listOf(/*"-batik",*/ "-bmp", "-core", "-icns", "-iff", "-jpeg", "-metadata", "-pcx", "-pdf", "-pict", "-pnm",
"-psd", "-sgi", "-tga", "-thumbsdb", "-tiff"/*, "-reference", "-clippath", "-hdr"*/).forEach {
implementation("com.twelvemonkeys.imageio:imageio$it:3.9.4")
}
// https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-transcoder
//implementation "org.apache.xmlgraphics:batik-transcoder:1.12"
lwjgl { implementation(jemalloc, opengl) }
testImplementation("io.kotest:kotest-runner-junit5:5.5.5")
testImplementation("io.kotest:kotest-assertions-core:5.5.5")
}
kotlin.jvmToolchain { languageVersion.set(JavaLanguageVersion.of(8)) }
tasks {
withType<KotlinCompile<*>>().all {
kotlinOptions { freeCompilerArgs += listOf("-opt-in=kotlin.RequiresOptIn") }
}
test { useJUnitPlatform() }
}
publishing {
publications {
createGithubPublication {
from(components["java"])
suppressAllPomMetadataWarnings()
}
}
repositories { github { domain = "kotlin-graphics/mary" } }
}
java.withSourcesJar()