-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
103 lines (83 loc) · 3.03 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/*
* This file was generated by the Gradle "init" task.
*/
plugins {
id 'java'
id 'checkstyle'
id ("com.github.node-gradle.node") version "3.0.1"
id 'org.springframework.boot' version '3.2.0'
}
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
node {
}
// VERSIONS
ext {
SPRING_VERSION = "3.2.0"
LOMBOK_VERSION = "1.18.30"
}
dependencies {
//SPRING
implementation("org.springframework.boot:spring-boot-starter-data-rest:$SPRING_VERSION")
implementation("org.springframework.boot:spring-boot-starter-security:$SPRING_VERSION")
implementation("org.springframework.boot:spring-boot-starter-thymeleaf:$SPRING_VERSION")
implementation("org.springframework.boot:spring-boot-starter-web:$SPRING_VERSION")
implementation("org.springframework.boot:spring-boot-starter-tomcat:$SPRING_VERSION")
implementation("org.springframework.boot:spring-boot-starter-data-jpa:$SPRING_VERSION")
implementation("org.springframework.boot:spring-boot-devtools:$SPRING_VERSION")
implementation("org.springframework.boot:spring-boot-starter-websocket:$SPRING_VERSION")
implementation("org.springframework.boot:spring-boot-starter-validation:$SPRING_VERSION")
testImplementation("org.springframework.boot:spring-boot-starter-test:$SPRING_VERSION")
//LOMBOK
compileOnly("org.projectlombok:lombok:$LOMBOK_VERSION")
annotationProcessor("org.projectlombok:lombok:$LOMBOK_VERSION")
testCompileOnly("org.projectlombok:lombok:$LOMBOK_VERSION")
testAnnotationProcessor("org.projectlombok:lombok:$LOMBOK_VERSION")
//DATABASE
implementation("org.postgresql:postgresql:42.7.1")
runtimeOnly("com.h2database:h2:2.2.224")
//XDCC
implementation("com.github.pircbotx:pircbotx:2.3.1")
//UTILS
implementation("commons-io:commons-io:2.11.0")
//WEBJARS
implementation("org.webjars:webjars-locator-core:0.55")
implementation("org.webjars:jquery:3.7.1")
implementation("org.webjars:bootstrap:5.1.0")
implementation("org.webjars:font-awesome:5.15.3")
// JAX-B dependencies for JDK 9+
implementation "jakarta.xml.bind:jakarta.xml.bind-api:2.3.2"
implementation "org.glassfish.jaxb:jaxb-runtime:2.3.2"
}
group = "de.maggiwuerze"
description = "xdccloader"
version = "0.6.2"
java.sourceCompatibility = JavaVersion.VERSION_17
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
tasks.withType(Checkstyle) {
reports {
xml.required = false
html.required = true
}
}
jar {
manifest {
attributes(
'Class-Path': configurations.runtimeClasspath.files.collect { it.getName() }.join(' '),
'Main-Class': 'de.maggiwuerze.xdccloader.XdccloaderApplication'
)
}
}
task buildReactApp(type: NodeTask, dependsOn: "npmInstall") {
script = project.file('node_modules/webpack/bin/webpack.js')
args = [
'--mode', 'development'
]
}
processResources.dependsOn 'buildReactApp'
clean.delete << file('node_modules')
clean.delete << file('src/main/resources/static/built')