-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
113 lines (88 loc) · 2.97 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
113 lines (88 loc) · 2.97 KB
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
import org.gradle.kotlin.dsl.support.kotlinCompilerOptions
/*
* This file was generated by the Gradle 'init' task.
*/
//println(gradle.startParameter.taskNames);
plugins {
`java-library`
`maven-publish`
id("org.openjfx.javafxplugin") version "0.1.0"
id("io.realm.kotlin") version "1.16.0"
kotlin("jvm") version "1.9.24"
}
sourceSets {
main {
resources {
srcDirs( "src/main/resources")
}
}
}
kotlin {
jvmToolchain(17)
}
javafx {
modules("javafx.graphics", "javafx.media", "javafx.fxml")
}
repositories {
mavenLocal()
maven {
url = uri("https://repo.maven.apache.org/maven2/")
}
maven {
url = uri("https://maven.google.com/")
}
}
dependencies {
api(libs.com.github.tulskiy.jkeymaster)
api(libs.org.slf4j.slf4j.jdk14)
api(libs.org.json.json)
implementation("io.realm.kotlin:library-base:1.16.0")
implementation("org.jetbrains.kotlin:kotlin-reflect:1.9.24")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.0")
// Java FX 22 requires minimum JDK 17
implementation("org.openjfx:javafx-fxml:22.0.2:win")
implementation("org.openjfx:javafx-graphics:22.0.2:win")
implementation("org.openjfx:javafx-media:22.0.2:win")
// implementation("org.openjfx:javafx-fxml:22.0.2:linux")
// implementation("org.openjfx:javafx-graphics:22.0.2:linux")
// implementation("org.openjfx:javafx-media:22.0.2:linux")
//
// implementation("org.openjfx:javafx-fxml:22.0.2:mac")
// implementation("org.openjfx:javafx-graphics:22.0.2:mac")
// implementation("org.openjfx:javafx-media:22.0.2:mac")
// Needed by Realm DB
implementation("org.jetbrains.kotlinx:atomicfu:0.24.0")
// https://mvnrepository.com/artifact/com.tagtraum/audioplayer4j-complete
implementation("com.tagtraum:audioplayer4j-complete:0.9.4")
// Temporarily removed in favor of local fix.
// See libs\com\tagtraum\ffsampledsp\README.md
// https://mvnrepository.com/artifact/com.tagtraum/ffsampledsp-complete
// Original: implementation("com.tagtraum:ffsampledsp-complete:0.9.53")
implementation(files("libs\\com\\tagtraum\\ffsampledsp\\ffsampledsp-complete-0.9.53-fix.jar"))
// For reading mp3 length properly.
implementation("com.mpatric:mp3agic:0.9.1")
// For SearchableComboBox
implementation("org.controlsfx:controlsfx:11.2.1")
}
tasks.withType<ProcessResources> {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
tasks.withType<Jar> {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes["Main-Class"] = "osu_mp3.Main"
}
from(configurations.compileClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
}
java {
modularity.inferModulePath = false
}
group = "org.supernova1114"
version = "1.0.0"
description = "An Osu! music player."
java.sourceCompatibility = JavaVersion.VERSION_17
publishing {
publications.create<MavenPublication>("maven") {
from(components["java"])
}
}