-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
162 lines (135 loc) · 3.7 KB
/
build.gradle
File metadata and controls
162 lines (135 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
plugins {
id 'maven-publish'
id "com.github.johnrengelman.shadow" version "7.1.2"
id 'kr.entree.spigradle' version '2.2.4'
id 'java'
}
//java {
// toolchain.languageVersion.set(JavaLanguageVersion.of(1.8))
//}
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
compileJava.options.encoding = 'UTF-8'
group 'minecraft.core'
version '0.0.22'
configurations {
provided
compile.extendsFrom provided
}
dependencies {
implementation project(':Compatibility')
implementation project(':Core')
implementation project(':NMS:NMS-API')
implementation project(':NMS:NMS-v1_8_R1')
implementation project(':NMS:NMS-v1_8_R2')
implementation project(':NMS:NMS-v1_8_R3')
implementation project(':NMS:NMS-v1_9_R1')
implementation project(':NMS:NMS-v1_9_R2')
implementation project(':NMS:NMS-v1_10_R1')
implementation project(':NMS:NMS-v1_11_R1')
implementation project(':NMS:NMS-v1_12_R1')
implementation project(':NMS:NMS-v1_13_R1')
implementation project(':NMS:NMS-v1_13_R2')
implementation project(':NMS:NMS-v1_14_R1')
implementation project(':NMS:NMS-v1_15_R1')
implementation project(':NMS:NMS-v1_16_R1')
implementation project(':NMS:NMS-v1_16_R2')
implementation project(':NMS:NMS-v1_16_R3')
implementation project(':NMS:NMS-v1_17_R1')
implementation project(':NMS:NMS-v1_18_R1')
}
shadowJar {
archiveClassifier.set('')
archiveBaseName.set(project.name)
}
sourceSets {
main {
java {
srcDirs 'src/'
}
resources {
srcDirs "src/"
}
}
}
task copyJar {
copy {
from jar
into project.test1
}
copy {
from jar
into project.test2
}
copy {
from jar
into project.test3
}
copy {
from jar
into project.test4
}
}
build.dependsOn copyJar
publishing {
publications {
maven(MavenPublication) {
groupId = project.group
artifactId = project.name
version = project.version
from components.java
}
}
repositories {
maven {
url "https://maven.pkg.jetbrains.space/now-hosting/p/mzp-plugin/mzp-core"
credentials {
username = project.username
password = project.password
}
}
maven {
url = uri("https://papermc.io/repo/repository/maven-public/")
}
maven {
url = uri("https://papermc.io/repo/repository/maven-public/")
}
maven {
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
// As of Gradle 5.1, you can limit this to only those
// dependencies you expect from it
content {
includeGroup 'org.bukkit'
includeGroup 'org.spigotmc'
}
}
maven { url = 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url = 'https://oss.sonatype.org/content/repositories/central' }
// mavenCentral()
mavenLocal()
}
}
jar {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
exclude "generated/**"
// Add dependency to the JAR file
// from {
// configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
// }
// JAR name
archiveFileName = project.name + "-" + project.version + ".jar"
}
// Spigot plugin.yml
spigot {
main = 'minecraft.core.zocker.pro.Main'
website = 'https://minecraft.plugin.zocker.pro/'
apiVersion = '1.13'
authors = ['ludgart']
softDepends = ['Vault']
// libraries = []
commands {
core {
aliases = ['cores']
}
}
}