-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
72 lines (62 loc) · 1.81 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
plugins {
id "java"
id "application"
}
base {
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
compileJava.options.encoding = compileTestJava.options.encoding = javadoc.options.encoding = "UTF-8"
group = project.maven_group ?: rootProject.maven_group
archivesName = project.maven_name ?: rootProject.maven_name
version = project.maven_version ?: rootProject.maven_version
}
configurations {
include
implementation.extendsFrom include
api.extendsFrom include
}
repositories {
mavenCentral()
maven {
name = "Lenni0451"
url = "https://maven.lenni0451.net/everything"
}
}
dependencies {
include "net.raphimc:NoteBlockLib:2.1.3"
include "net.raphimc:audio-mixer:2.0.0-SNAPSHOT"
include "org.jcraft:jorbis:0.0.17"
include "com.formdev:flatlaf:3.5.2"
include "net.lenni0451.commons:swing:1.6.1"
include "org.lwjgl:lwjgl:3.3.4"
include "org.lwjgl:lwjgl-openal:3.3.4"
include "org.lwjgl:lwjgl-stb:3.3.4"
["natives-windows", "natives-windows-arm64", "natives-linux", "natives-linux-arm64", "natives-macos", "natives-macos-arm64"].each {
include "org.lwjgl:lwjgl:3.3.4:$it"
include "org.lwjgl:lwjgl-openal:3.3.4:$it"
include "org.lwjgl:lwjgl-stb:3.3.4:$it"
}
include "net.java.dev.jna:jna:5.15.0"
}
application {
mainClass = "net.raphimc.noteblocktool.Main"
}
java {
withSourcesJar()
}
jar {
dependsOn configurations.include
from {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
configurations.include.collect {
zipTree(it)
}
} {
exclude "META-INF/*.RSA", "META-INF/*.SF", "META-INF/*.DSA"
}
manifest {
attributes(
"Main-Class": application.mainClass,
"Multi-Release": "true"
)
}
}