-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
123 lines (108 loc) · 3.9 KB
/
build.gradle
File metadata and controls
123 lines (108 loc) · 3.9 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
114
115
116
117
118
119
120
121
122
123
plugins {
id 'java'
id 'org.springframework.boot' version '3.5.0'
id 'io.spring.dependency-management' version '1.1.7'
// id 'com.github.node-gradle.node' version '7.1.0'
}
group = 'com.nfssoundtrack'
version = '0.9'
java {
sourceCompatibility = '17'
}
repositories {
mavenCentral()
maven {
name 'm2-dv8tion'
url 'https://m2.dv8tion.net/releases'
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-webflux'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-devtools'
implementation 'org.springframework.boot:spring-boot-starter-json'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-aop'
implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity6'
implementation 'org.apache.poi:poi:5.5.1'
implementation 'org.apache.poi:poi-ooxml:5.5.1'
implementation 'org.apache.poi:poi-ooxml-full:5.5.1'
implementation 'net.dv8tion:JDA:6.2.0'
implementation 'org.mariadb.jdbc:mariadb-java-client:3.5.7'
implementation 'org.apache.commons:commons-text:1.15.0'
//these below are for this lyrics logic that so far is entirely retrieved from https://github.com/jagrosh/JLyrics
implementation 'org.jsoup:jsoup:1.21.2'
implementation 'com.typesafe:config:1.4.3'
implementation 'org.json:json:20251224'
//youtube api
implementation 'com.google.apis:google-api-services-youtube:v3-rev20260323-2.0.0'
implementation 'com.google.api-client:google-api-client:2.9.0'
implementation 'com.google.oauth-client:google-oauth-client-jetty:1.39.0'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
testImplementation 'org.springframework.boot:spring-boot-test-autoconfigure'
}
/*
// Node.js configuration for minification
node {
version = '22.17.0'
npmVersion = '11.4.2'
download = true
}
// Install minification tools
task installMinifyTools(type: NpmTask) {
args = ['install', 'terser', 'clean-css-cli']
}
// Minify JavaScript files (excluding admin folder)
task minifyJs(type: Exec, dependsOn: installMinifyTools) {
doFirst {
// Create output directory if it doesn't exist
file('src/main/resources/static/min/js').mkdirs()
// Get all JS files except admin folder
fileTree('src/main/resources/static/js') {
include '*.js'
exclude 'admin/**'
}.each { jsFile ->
def fileName = jsFile.name
def outputFile = file("src/main/resources/static/min/js/${fileName}")
// Minify each file individually
exec {
commandLine 'npx', 'terser', jsFile.absolutePath,
'--compress', '--mangle', '--output', outputFile.absolutePath
}
}
}
// Dummy command since we're doing the work in doFirst
commandLine 'echo', 'JavaScript minification completed'
}
// Minify CSS files
task minifyCss(type: Exec, dependsOn: installMinifyTools) {
doFirst {
// Create output directory if it doesn't exist
file('src/main/resources/static/min/css').mkdirs()
// Get all CSS files
fileTree('src/main/resources/static/css') {
include '*.css'
}.each { cssFile ->
def fileName = cssFile.name
def outputFile = file("src/main/resources/static/min/css/${fileName}")
// Minify each file individually
exec {
commandLine 'npx', 'cleancss', cssFile.absolutePath,
'--output', outputFile.absolutePath
}
}
}
// Dummy command since we're doing the work in doFirst
commandLine 'echo', 'CSS minification completed'
}
// Run minification before processing resources (can be disabled with -PskipMinify=true)
if (!project.hasProperty('skipMinify') || project.property('skipMinify') != 'true') {
processResources.dependsOn minifyJs, minifyCss
}
*/
tasks.named('test') {
useJUnitPlatform()
}