-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle.kts
53 lines (43 loc) · 1.28 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
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 {
implementation(kotlin("reflect"))
api("kotlin.graphics:gli:0.8.3.0-22")
lwjgl {
implementation(glfw, jemalloc, openal, opengl, opengles, stb)
testImplementation(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()