-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
68 lines (56 loc) · 1.7 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
plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version "7.1.2"
}
group 'dev.gnomebot'
version '1.0.0'
archivesBaseName = 'gnome-bot'
mainClassName = 'dev.gnomebot.app.App'
compileJava.options.encoding = 'UTF-8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
allprojects {
configurations.all {
resolutionStrategy.cacheChangingModulesFor 60, 'seconds'
}
}
repositories {
mavenCentral()
//maven { url 'https://jitpack.io' }
maven {
url "https://maven.latvian.dev/releases"
content {
includeGroup "dev.latvian.apps"
}
}
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots'
}
}
dependencies {
implementation('dev.latvian.apps:tiny-java-server:1.0.0-build.25')
implementation('dev.latvian.apps:ansi:1.0.0-build.9')
implementation('dev.latvian.apps:json:1.0.0-build.4')
// implementation('net.dv8tion:JDA:5.2.1')
implementation('dev.latvian.apps:webutils:1.1.0-build.66')
implementation('com.discord4j:discord4j-core:3.3.0-SNAPSHOT') { changing = true }
implementation('org.mongodb:mongodb-driver-sync:5.0.0')
implementation('org.slf4j:slf4j-simple:2.0.7')
implementation('com.google.guava:guava:31.1-jre') { exclude group: "com.google.code.findbugs" }
implementation('com.liferay:org.apache.commons.fileupload:1.2.2.LIFERAY-PATCHED-1')
compileOnly('org.jetbrains:annotations:24.0.1')
}
jar {
manifest {
attributes 'Implementation-Version': archiveVersion, 'Main-Class': mainClassName
}
}
processResources {
inputs.property "version", project.version
filesMatching("build.json") {
expand "version": project.version
}
}
tasks.shadowJar.dependsOn tasks.processResources