-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
110 lines (89 loc) · 2.17 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
import org.apache.tools.ant.filters.ReplaceTokens
apply plugin: 'maven-publish'
apply plugin: 'java-library'
apply plugin: 'eclipse'
jar.archiveName = project.name + '.jar'
configurations {
shade
compile.extendsFrom shade
}
repositories {
mavenCentral()
// Spigot
maven {
url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}
// Bungeecord
maven {
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
// HolographicDisplays
maven {
url 'https://ci.filoghost.me/plugin/repository/everything/'
}
// Citizens
maven {
url "http://repo.citizensnpcs.co/"
}
//Jitpack
maven {
url 'https://jitpack.io'
}
maven {
url 'https://maven.pkg.github.com/Sitrica/SourCore/'
credentials {
username = "Sitrica"
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_PACKAGES_KEY")
}
}
}
dependencies {
// Spigot
implementation (group: 'org.spigotmc', name: 'spigot-api', version: '1.14.4-R0.1-SNAPSHOT')
// AnvilGUI
shade (group: 'com.github.WesJD', name: 'AnvilGUI', version: 'master-SNAPSHOT')
// Smart-Invs
shade (group: 'fr.minuskube.inv', name: 'smart-invs', version: '1.2.7')
// H2 Database
shade (group: 'com.h2database', name: 'h2', version: '1.4.199')
// Sitrica Core
shade (group: 'com.sitrica', name: 'core', version: '1.0.9')
}
configurations {
runtime.exclude group: 'org.bstats', module: 'bstats-bukkit-lite'
}
publishing {
repositories {
maven {
name = project.name
url = uri("https://maven.pkg.github.com/Sitrica/" + project.name)
credentials {
username = 'Sitrica'
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_PACKAGES_KEY")
}
}
}
publications {
gpr(MavenPublication) {
version = project.property("version")
groupId = 'com.sitrica'
artifactId = project.name
from(components.java)
}
}
}
processResources {
from (sourceSets.main.resources.srcDirs) {
filter ReplaceTokens, tokens: ["version": project.property("version")]
include '**/*.yml'
}
}
jar {
configurations.shade.each { dep ->
from (project.zipTree(dep)) {
exclude '**/*.php'
exclude '**/*.yml'
exclude 'META-INF', 'META-INF/**'
}
}
}