This repository has been archived by the owner on Nov 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
79 lines (64 loc) · 1.61 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
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "net.minecrell.licenser:net.minecrell.licenser.gradle.plugin:0.4.1"
}
}
apply plugin: 'java-library'
//apply plugin: 'maven-publish'
// grumble grumble...
if (!project.getPlugins().hasPlugin('net.minecrell.licenser')) {
apply plugin: 'net.minecrell.licenser'
}
group = 'com.playsawdust.chipper'
archivesBaseName = 'Glow'
version = '0.0.1'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(15)
}
}
def lwjgl(String... modules) {
def ver = '3.2.4-SNAPSHOT'
def platforms = [ 'linux', 'macos', 'windows' ]
def rtrn = []
rtrn.add(dependencies.create("org.lwjgl:lwjgl:${ver}"))
modules.each { module ->
rtrn.add(dependencies.create("org.lwjgl:lwjgl-${module}:${ver}"))
}
platforms.each { platform ->
rtrn.add(dependencies.create("org.lwjgl:lwjgl:${ver}:natives-${platform}"))
modules.each { module ->
rtrn.add(dependencies.create("org.lwjgl:lwjgl-${module}:${ver}:natives-${platform}"))
}
}
return rtrn
}
repositories {
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url 'https://jitpack.io' }
}
dependencies {
api 'org.slf4j:slf4j-api:1.7.9'
api 'com.google.guava:guava:28.2-jre'
api 'com.github.falkreon:Splinter:-SNAPSHOT'
api 'blue.endless:jankson:1.2.0'
api 'org.joml:joml:1.9.12'
implementation lwjgl('glfw', 'openal', 'opengl', 'stb')
}
license {
header = file('headers/mpl2.txt')
include '**/*.java'
}
java {
//withJavadocJar()
//withSourcesJar()
}
tasks.withType(GenerateModuleMetadata) {
enabled = false
}