-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
82 lines (63 loc) · 2 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
plugins {
id 'java'
id 'maven-publish'
id 'io.github.goooler.shadow' version "8.1.8"
id 'com.gorylenko.gradle-git-properties' version "2.4.1"
}
group = 'me.mathsanalysis.lifesteal'
version = '1.0.0'
def group = 'me.mathsanalysis.lifesteal'
def artifact = "lifesteal"
repositories {
mavenCentral()
maven {url = uri('https://jitpack.io')}
maven {url = uri("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")}
maven {url = uri("https://oss.sonatype.org/content/groups/public/")}
maven {url = uri("https://repo.papermc.io/repository/maven-public/")}
maven {url = uri("https://repo.oraxen.com/releases")}
maven {url = uri('https://repo.extendedclip.com/content/repositories/placeholderapi/')}
}
dependencies {
compileOnly 'io.papermc.paper:paper-api:1.21.4-R0.1-SNAPSHOT'
compileOnly 'io.th0rgal:oraxen:1.186.1'
compileOnly 'me.clip:placeholderapi:2.11.6'
compileOnly 'org.projectlombok:lombok:1.18.36'
annotationProcessor 'org.projectlombok:lombok:1.18.36'
implementation 'com.zaxxer:HikariCP:6.2.1'
implementation 'org.mongodb:mongodb-driver-sync:5.2.1'
implementation 'net.kyori:adventure-api:4.18.0'
implementation 'com.github.cryptomorin:XSeries:13.0.0'
implementation 'net.kyori:adventure-platform-bukkit:4.3.4'
implementation 'io.github.revxrsal:lamp.common:4.0.0-rc.2'
implementation 'io.github.revxrsal:lamp.bukkit:4.0.0-rc.2'
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(23))
}
tasks {
compileJava {
dependsOn clean
options.encoding = 'UTF-8'
}
build {
dependsOn shadowJar
dependsOn publish
}
}
shadowJar {
archiveFileName = artifact + '-' + version + '.jar'
minimize()
}
jar {
archiveFileName = artifact + '-' + version + '.jar'
}
publishing {
publications {
maven(MavenPublication) {
groupId = group
artifactId = artifact
version = version
from components.java
}
}
}