-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbuild.gradle
More file actions
84 lines (68 loc) · 2.37 KB
/
Copy pathbuild.gradle
File metadata and controls
84 lines (68 loc) · 2.37 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
plugins {
id 'java-library'
id 'maven-publish'
id "com.github.johnrengelman.shadow" version "8.1.1"
}
repositories {
mavenLocal()
maven {
url = uri('https://hub.spigotmc.org/nexus/content/repositories/snapshots/')
}
maven {
url = uri('https://repo.papermc.io/repository/maven-public/')
}
maven { url 'https://jitpack.io' }
maven {
url = uri('https://repo.extendedclip.com/content/repositories/placeholderapi/')
}
maven {
url = uri('https://repo.maven.apache.org/maven2/')
}
}
dependencies {
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
compileOnly("org.bstats:bstats-bukkit:3.0.1")
compileOnly 'io.papermc.paper:paper-api:1.21.4-R0.1-SNAPSHOT'
compileOnly 'com.github.MilkBowl:VaultAPI:1.7.1'
compileOnly 'me.clip:placeholderapi:2.11.5'
compileOnly files('libraries/tebex-bukkit-2.0.0.jar')
compileOnly files('libraries/BuycraftX.jar')
compileOnly 'org.projectlombok:lombok:1.18.30'
annotationProcessor 'org.projectlombok:lombok:1.18.30'
testCompileOnly 'org.projectlombok:lombok:1.18.30'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.30'
}
shadowJar {
relocate('okhttp3', 'org.metadevs.buycraftapi.libraries.okhttp3')
relocate('okio', 'org.metadevs.buycraftapi.libraries.okio')
relocate('kotlin', 'org.metadevs.buycraftapi.libraries.kotlin')
relocate("org.bstats", "me.clip.placeholderapi.metrics")
relocate('org.jetbrains.annotations', 'org.metadevs.buycraftapi.libraries.jetbrains.annotations')
minimize()
archiveFileName = 'BuyCraftAPI-' + version + '.jar'
}
jar {
manifest {
attributes(
'Implementation-Title': 'BuyCraftAPI',
'Implementation-Version': version,
'Implementation-Vendor': 'BuyCraft',
'Implementation-Vendor-Id': 'org.metadevs.buycraftapi',
'Specification-Title': 'BuyCraftAPI',
'Specification-Version': version,
'Specification-Vendor': 'BuyCraft',
'Main-Class': 'org.metadevs.buycraftapi.BuyCraftAPI'
)
}
}
build.dependsOn(shadowJar)
group = 'org.metadevs.buycraftapi'
description = 'BuyCraftAPI'
java.sourceCompatibility = JavaVersion.VERSION_17
publishing {
publications {
maven(MavenPublication) {
from(components.java)
}
}
}