-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
62 lines (53 loc) · 1.49 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'io.github.fvarrui:javapackager:1.7.2'
classpath 'com.google.code.gson:gson:2.8.0'
}
}
plugins {
id 'java'
}
apply plugin: 'io.github.fvarrui.javapackager.plugin'
group 'me.third.right.youtubedl'
version '1.6'
repositories {
maven { url 'https://jitpack.io' }
mavenCentral()
}
sourceCompatibility = '17'
targetCompatibility = '17'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
sourceSets {
configureEach {
dependencies {
implementation 'com.fasterxml.jackson.core:jackson-annotations:2.14.1'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.14.1'
//Lombok
compileOnly 'org.projectlombok:lombok:1.18.20'
annotationProcessor 'org.projectlombok:lombok:1.18.20'
implementation 'com.google.code.gson:gson:2.8.0'
}
}
}
javapackager {
// common configuration
mainClass = 'me.third.right.youtubedl.YTDL'
bundleJre = true
generateInstaller = false
copyDependencies = true
jreMinVersion = "17"
}
task packageMyAppForLinux(type: io.github.fvarrui.javapackager.gradle.PackageTask) {
platform = "linux"
createTarball = true
}
task packageMyAppForWindows(type: io.github.fvarrui.javapackager.gradle.PackageTask) {
platform = "windows"
createZipball = true
}
build.dependsOn(dependsOn: [ 'packageMyAppForLinux', 'packageMyAppForWindows' ])