-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
85 lines (71 loc) · 2.53 KB
/
build.gradle
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import org.gradle.internal.os.OperatingSystem
group 'com.uonsocialcoding.voxelengine'
version '1.0-SNAPSHOT'
apply plugin: 'idea'
apply plugin: 'kotlin'
apply plugin: 'java'
apply plugin: 'org.jetbrains.dokka'
project.ext.lwjglVersion = "3.1.6"
switch (OperatingSystem.current()) {
case OperatingSystem.WINDOWS:
project.ext.lwjglNatives = "natives-windows"
break
case OperatingSystem.LINUX:
project.ext.lwjglNatives = "natives-linux"
break
case OperatingSystem.MAC_OS:
project.ext.lwjglNatives = "natives-macos"
break
}
buildscript {
ext.kotlin_version = '1.2.41'
ext.dokka_version = '0.9.16'
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version"
}
}
repositories {
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile 'io.github.microutils:kotlin-logging:1.5.4'
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.6.1'
compile "org.lwjgl:lwjgl:$lwjglVersion"
compile "org.lwjgl:lwjgl-assimp:$lwjglVersion"
compile "org.lwjgl:lwjgl-bgfx:$lwjglVersion"
compile "org.lwjgl:lwjgl-glfw:$lwjglVersion"
compile "org.lwjgl:lwjgl-nanovg:$lwjglVersion"
compile "org.lwjgl:lwjgl-nuklear:$lwjglVersion"
compile "org.lwjgl:lwjgl-openal:$lwjglVersion"
compile "org.lwjgl:lwjgl-opengl:$lwjglVersion"
compile "org.lwjgl:lwjgl-par:$lwjglVersion"
compile "org.lwjgl:lwjgl-stb:$lwjglVersion"
compile "org.lwjgl:lwjgl-vulkan:$lwjglVersion"
compile "org.lwjgl:lwjgl:$lwjglVersion:$lwjglNatives"
compile "org.lwjgl:lwjgl-assimp:$lwjglVersion:$lwjglNatives"
compile "org.lwjgl:lwjgl-bgfx:$lwjglVersion:$lwjglNatives"
compile "org.lwjgl:lwjgl-glfw:$lwjglVersion:$lwjglNatives"
compile "org.lwjgl:lwjgl-nanovg:$lwjglVersion:$lwjglNatives"
compile "org.lwjgl:lwjgl-nuklear:$lwjglVersion:$lwjglNatives"
compile "org.lwjgl:lwjgl-openal:$lwjglVersion:$lwjglNatives"
compile "org.lwjgl:lwjgl-opengl:$lwjglVersion:$lwjglNatives"
compile "org.lwjgl:lwjgl-par:$lwjglVersion:$lwjglNatives"
compile "org.lwjgl:lwjgl-stb:$lwjglVersion:$lwjglNatives"
}
dokka {
outputFormat = 'html'
outputDirectory = "docs"
includes = ['.github/MAINTAINERS.md', '.github/CONTRIBUTING.md']
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}