-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.gradle
More file actions
123 lines (109 loc) · 3.7 KB
/
build.gradle
File metadata and controls
123 lines (109 loc) · 3.7 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
/*
* Copyright (C) 2016 Florian Stober
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
buildscript {
dependencies {
classpath 'org.hibernate.build.gradle:gradle-maven-publish-auth:2.0.1'
}
repositories {
maven {
url "https://repository.jboss.org/nexus/content/groups/public/"
}
mavenLocal()
mavenCentral()
}
}
plugins {
id "com.github.johnrengelman.shadow" version "5.2.0"
}
group 'de.codecrafter47.taboverlay'
version '1.3.7-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'maven-publish-auth'
sourceCompatibility = 1.8
repositories {
mavenLocal()
mavenCentral()
maven {
url "https://hub.spigotmc.org/nexus/content/repositories/snapshots/"
}
maven {
url "https://nexus.codecrafter47.de/content/repositories/public/"
}
maven {
url "https://repo.dmulloy2.net/nexus/repository/public/"
}
maven {
name "CodeMC"
url "https://repo.codemc.org/repository/maven-public"
}
maven {
url "https://repo.extendedclip.com/content/repositories/placeholderapi/"
}
}
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.34'
annotationProcessor 'org.projectlombok:lombok:1.18.34'
testCompileOnly 'org.projectlombok:lombok:1.18.34'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.34'
compileOnly "com.google.code.findbugs:jsr305:3.0.1"
compileOnly "org.spigotmc:spigot-api:1.17.1-R0.1-SNAPSHOT"
compileOnly "io.netty:netty-all:4.1.9.Final"
compileOnly 'com.comphenix.protocol:ProtocolLib:5.4.0'
compileOnly "me.clip:placeholderapi:2.11.6"
implementation "de.codecrafter47.taboverlay:taboverlaycommon-api:1.0-SNAPSHOT"
implementation "de.codecrafter47.taboverlay:taboverlaycommon-config:1.0-SNAPSHOT"
implementation "de.codecrafter47.data:api:1.0.2-SNAPSHOT"
implementation "de.codecrafter47.data:minecraft:1.0.2-SNAPSHOT"
implementation "de.codecrafter47.data.bukkit:api:1.0.2-SNAPSHOT"
implementation "de.codecrafter47.data:bukkit:1.0.2-SNAPSHOT"
implementation "codecrafter47.util:chat-utils:1.1-SNAPSHOT"
implementation "org.bstats:bstats-bukkit:1.4"
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
}
publishing {
repositories {
maven {
name "deployment"
url "https://nexus.codecrafter47.de/content/repositories/snapshots/"
}
}
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourceJar {
classifier "sources"
}
}
}
}
processResources {
filesMatching("plugin.yml") {
expand(project.properties)
}
}
shadowJar {
relocate 'codecrafter47.util', 'de.codecrafter47.taboverlay.libs.util'
relocate 'org.bstats', 'de.codecrafter47.taboverlay.libs.bstats'
relocate 'it.unimi.dsi.fastutil', 'de.codecrafter47.taboverlay.libs.fastutil'
relocate 'org.yaml.snakeyaml', 'de.codecrafter47.taboverlay.libs.snakeyaml'
relocate 'org.mineskin', 'de.codecrafter47.taboverlay.libs.mineskin'
classifier = null
minimize()
}