This repository has been archived by the owner on Aug 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
/
build.gradle
109 lines (95 loc) · 2.66 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
104
105
106
107
108
109
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.guardsquare:proguard-gradle:7.1.0'
}
}
plugins {
id 'application'
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.6.10'
id 'com.github.johnrengelman.shadow' version '7.0.0'
id 'org.jetbrains.compose' version "1.1.1"
}
group 'com.tb24'
version '6.0.0'
sourceCompatibility = 1.8
ext {
javaMainClass = 'com.tb24.discordbot.DiscordBot'
}
application {
mainClassName = javaMainClass
}
jar {
manifest {
attributes 'Main-Class': javaMainClass
}
}
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url 'https://libraries.minecraft.net' }
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.github.FabianFG:JFortniteParse:master-SNAPSHOT'
implementation 'com.mojang:brigadier:1.0.18'
implementation 'com.rethinkdb:rethinkdb-driver:2.4.4'
implementation 'com.tb24:epic-api:+'
//implementation 'dev.morphia.morphia:morphia-kotlin:2.2.3'
implementation('com.github.Amrsatrio:JDA:master-SNAPSHOT') { exclude module: 'opus-java' }
implementation 'net.jodah:expiringmap:0.5.10'
implementation 'net.sf.trove4j:trove4j:3.0.3'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
implementation 'org.graalvm.js:js:21.3.0'
implementation 'org.quartz-scheduler:quartz:2.3.2'
implementation 'org.jetbrains.compose.desktop:desktop-jvm-linux-arm64:1.1.1'
implementation 'org.jetbrains.compose.desktop:desktop-jvm-windows-x64:1.1.1'
testImplementation 'junit:junit:4.13.2'
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = '1.8'
freeCompilerArgs += [
'-Xallow-result-return-type',
'-Xno-call-assertions',
'-Xno-param-assertions',
'-Xno-receiver-assertions',
'-Xopt-in=kotlin.ExperimentalUnsignedTypes'
]
}
}
shadowJar {
baseName = project.name
classifier = ''
archiveVersion = ''
exclude "**/*.kotlin_builtins"
exclude "**/*.kotlin_metadata"
exclude "**/*.kotlin_module"
exclude 'META-INF/maven/**'
exclude '**/DEPENDENCIES'
exclude '**/LGPL2.1'
exclude '**/LICENSE'
exclude '**/LICENSE.txt'
exclude '**/NOTICE'
exclude '**/NOTICE.txt'
}
tasks.withType(AbstractArchiveTask) {
preserveFileTimestamps = false
reproducibleFileOrder = true
}
task proguard(type: proguard.gradle.ProGuardTask) {
configuration 'proguard-rules.pro'
printmapping 'build/mappings.txt'
injars jar.archiveFile
outjars 'build/libs/' + project.name + '-min.jar'
libraryjars System.getProperty('java.home') + '/lib/rt.jar'
// libraryjars configurations.runtimeClasspath.files
}
//release.finalizedBy(proguard)