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
/
build.gradle
86 lines (73 loc) · 1.79 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
86
buildscript {
repositories {
mavenCentral();
maven {
name = "sonatype";
url = "https://oss.sonatype.org/content/repositories/snapshots/";
}
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
plugins {
id 'java';
id 'eclipse';
id 'org.cadixdev.licenser' version '0.6.1';
id 'maven-publish';
}
group = 'com.playsawdust.chipper'
archivesBaseName = 'glow-audio'
version = '0.0.1'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(16)
}
}
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 {
//runtimeOnly 'com.google.guava:guava:28.2-jre'
implementation 'com.google.guava:guava:28.2-jre'
//runtimeOnly 'org.joml:joml:1.9.12'
implementation 'org.joml:joml:1.9.12'
implementation 'com.github.playsawdust:glow-io:main-SNAPSHOT'
implementation 'com.github.falkreon:TinyEvents:main-SNAPSHOT'
implementation lwjgl('openal')
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
license {
header = project.file('headers/mpl2.txt')
include '**/*.java'
}
publishing {
publications {
maven(MavenPublication) {
groupId = project.group
artifactId = project.archivesBaseName
version = project.version
from components.java
}
}
}