forked from nafu-at/NeoJukePro
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
93 lines (82 loc) · 2.51 KB
/
build.gradle
File metadata and controls
93 lines (82 loc) · 2.51 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
83
84
85
86
87
88
89
90
91
92
93
plugins {
id 'java'
id 'java-library'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '7.1.2'
}
group 'page.nafuchoco'
version '3.0.1'
jar {
manifest {
attributes("Main-Class": "page.nafuchoco.neojukepro.api.NeoJukeBot",
"Implementation-Title": "NeoJukePro",
"Implementation-Version": getArchiveVersion().get()
)
}
}
shadowJar {
archiveFileName.set("NeoJukePro." + archiveExtension.get())
}
task sourcesJar(type: Jar, dependsOn: 'classes') {
from sourceSets.main.allSource
archiveClassifier.set('sources')
}
task javadocJar(type: Jar, dependsOn: 'javadoc') {
from javadoc.destinationDir
archiveClassifier.set('javadoc')
}
javadoc {
options.charSet = 'UTF-8'
options.encoding = 'UTF-8'
}
task beforeDeploy {
dependsOn('sourcesJar', 'javadocJar', 'shadowJar')
}
publishing {
publications {
mavenAar(MavenPublication) {
from components.java
afterEvaluate {
artifact javadocJar
artifact sourcesJar
}
}
}
}
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url 'https://m2.dv8tion.net/releases' }
}
dependencies {
// Logger
implementation 'org.slf4j:slf4j-api:2.0.4'
implementation 'ch.qos.logback:logback-core:1.4.5'
implementation 'ch.qos.logback:logback-classic:1.4.5'
implementation 'io.sentry:sentry-logback:6.8.0'
compileOnly 'org.projectlombok:lombok:1.18.24'
annotationProcessor 'org.projectlombok:lombok:1.18.22'
testCompileOnly 'org.projectlombok:lombok:1.18.22'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.22'
// ClientLib
compileOnly 'com.github.NeoBotDevelopment:NeoBotApi:1.1.0'
implementation 'com.squareup.okhttp3:okhttp:4.10.0'
api 'com.github.walkyst:lavaplayer-fork:1.3.99.1'
// Parser
implementation 'com.google.code.gson:gson:2.10'
implementation 'com.fasterxml.jackson.core:jackson-core:2.14.1'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.14.1'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.14.1'
// Commons Library
implementation 'commons-io:commons-io:2.11.0'
implementation 'commons-codec:commons-codec:1.15'
implementation 'org.apache.commons:commons-lang3:3.12.0'
}
processResources {
def props = [version: version]
inputs.properties props
filteringCharset 'UTF-8'
filesMatching('module.yaml') {
expand props
}
}