-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
60 lines (47 loc) · 1.58 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
import static org.gradle.internal.os.OperatingSystem.*
plugins {
id 'java'
id 'maven'
id "org.jetbrains.kotlin.jvm" version "1.3.10"
id "com.github.johnrengelman.shadow" version '2.0.4'
}
// jitpack
group = 'com.github.kotlin-graphics'
ext {
moduleName = 'com.github.kotlin_graphics.kool'
lwjgl_version = "3.2.1-SNAPSHOT"
lwjgl_natives = current() == WINDOWS ? "windows" : current() == LINUX ? "linux" : "macos"
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib".toString()
implementation 'com.github.kotlin-graphics:uno-sdk:5156f73d30a703a3f8ab4744c7e926d13efd54e1'
implementation 'com.github.kotlin-graphics:kool:65887aeb21'
implementation 'com.github.kotlin-graphics:glm:ee261bb6aa'
["", "-jemalloc", "-opengl", "-jawt"].each {
implementation "org.lwjgl:lwjgl$it:$lwjgl_version"
if (it != "-jawt")
runtime "org.lwjgl:lwjgl$it:$lwjgl_version:natives-$lwjgl_natives"
}
compile fileTree(dir: '../openjdk-jfx/build/sdk/lib', include: ['*.jar'])
}
repositories {
mavenCentral()
maven { setUrl("https://oss.sonatype.org/content/repositories/snapshots/") }
maven { url 'https://jitpack.io' }
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
// archives javadocJar
}
jar {
inputs.property("moduleName", moduleName)
manifest.attributes('Automatic-Module-Name': moduleName)
}