-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
81 lines (65 loc) · 2.16 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
plugins {
id 'java'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '6.1.0'
}
group 'lol.hcf'
version '4.1.2'
repositories {
mavenCentral()
maven {
url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots'
}
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots/'
}
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/hcf-lol/foundation")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GPR_USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("GPR_TOKEN")
}
}
}
dependencies {
compileOnly group: 'org.spigotmc', name: 'spigot-api', version: '1.8.8-R0.1-SNAPSHOT'
testCompileOnly group: 'org.spigotmc', name: 'spigot-api', version: '1.8.8-R0.1-SNAPSHOT'
compileOnly group: 'lol.hcf', name: 'antihashmap', version: '1.0.0'
compile group: 'org.ow2.asm', name: 'asm', version: '9.0'
compile group: 'org.ow2.asm', name: 'asm-tree', version: '9.0'
compile group: 'org.yaml', name: 'snakeyaml', version: '1.27'
compile group: 'redis.clients', name: 'jedis', version: '3.4.0'
compile group: 'org.mongodb', name: 'mongo-java-driver', version: '3.12.7'
}
java {
withSourcesJar()
withJavadocJar()
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/hcf-lol/foundation")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GPR_USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("GPR_TOKEN")
}
}
}
publications {
mavenPublish(MavenPublication) {
from components.java
groupId = project.group
artifactId = "foundation"
version project.version
}
}
}
shadowJar {
configurations = [project.configurations.compile]
archiveBaseName.set('shadow')
archiveClassifier.set('foundation')
archiveVersion.set(project.version)
relocate 'org.yaml', 'lol.hcf.foundation.org.yaml'
}