-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
71 lines (57 loc) · 1.56 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
plugins {
id 'com.github.johnrengelman.shadow' version '5.1.0'
id 'java'
}
apply plugin: 'java'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'maven-publish'
import org.apache.tools.ant.filters.ReplaceTokens
repositories {
mavenLocal()
maven {
url = 'https://hub.spigotmc.org/nexus/content/groups/public/'
}
maven {
url = 'https://oss.sonatype.org/content/groups/public/'
}
maven {
url = 'http://repo.maven.apache.org/maven2'
}
}
dependencies {
compileOnly 'org.spigotmc:spigot-api:1.16.1-R0.1-SNAPSHOT'
compileOnly 'me.droreo002:OreoCore:16.0'
compileOnly 'com.Acrobot:ChestShop:1.0'
compileOnly 'org.projectlombok:lombok:1.18.4'
annotationProcessor 'org.projectlombok:lombok:1.18.8'
}
def pluginName = rootProject.name
def spigotDirectory = "Spigot 1.16"
group = 'me.droreo002'
version = '4.8'
targetCompatibility = '1.8'
shadowJar {
archiveFileName = pluginName + '-' + project.version + '.jar'
destinationDirectory = file("C:\\Users\\Anom\\Desktop\\" + spigotDirectory + "\\plugins")
mergeServiceFiles()
dependencies {
include(dependency('co.aikar:.*'))
include(dependency('com.zaxxer:.*'))
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
processResources {
from(sourceSets.main.resources.srcDirs) {
include '**/*.yml'
filter(ReplaceTokens, tokens: [version: project.version])
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}