-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
61 lines (47 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
plugins {
id 'application'
id 'org.springframework.boot' version '2.5.3'
id 'com.github.johnrengelman.shadow' version '7.0.0'
}
allprojects {
apply plugin: 'java'
apply plugin: 'io.spring.dependency-management'
group = 'io.github.holovid'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
maven { url = 'https://jitpack.io' }
}
dependencies {
compileOnly "org.jetbrains:annotations:21.0.1"
testImplementation "org.springframework.boot:spring-boot-starter-test"
implementation "org.springframework.boot:spring-boot-starter-web"
implementation "org.springframework.shell:spring-shell-starter:2.0.1.RELEASE"
implementation "org.slf4j:slf4j-api"
implementation "com.google.code.gson:gson:2.8.7"
implementation "ws.schild:jave-core:3.1.1"
// TODO: replace win64 with linux64 (temporarily add any of other other if you need to test the project on them)
implementation "ws.schild:jave-nativebin-win64:3.1.1"
//implementation "ws.schild:jave-nativebin-linux64:3.1.1"
//implementation "ws.schild:jave-nativebin-osx64:3.1.1"
implementation "com.github.sealedtx:java-youtube-downloader:2.5.2"
}
// btw: File -> Settings -> Build, Execution, Deployment -> Build Tools -> Gradle
sourceCompatibility = JavaVersion.VERSION_16
targetCompatibility = JavaVersion.VERSION_16
compileJava {
options.compilerArgs += ["-parameters"]
options.fork = true
options.forkOptions.executable = 'javac'
options.encoding = 'UTF-8'
}
}
shadowJar {
archiveFileName = "HolovidServer-${project.version}.jar"
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
application {
mainClassName = 'io.github.holovid.server.HolovidServerApplication'
}