-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
120 lines (111 loc) · 3.32 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
111
112
113
114
115
116
117
118
119
120
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'java-library'
id 'maven-publish'
}
group = 'dev.rgbmc'
version = '1.1.0'
repositories {
mavenCentral()
maven {
name = 'spigotmc-repo'
url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'
}
maven {
name = 'sonatype'
url = 'https://oss.sonatype.org/content/groups/public/'
}
maven {
url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/'
}
maven {
url = "https://repo.fastmcmirror.org/content/repositories/releases/"
}
maven {
url = 'http://ptms.ink:8081/repository/releases/'
allowInsecureProtocol = true
}
maven { url 'https://jitpack.io' }
maven {
url = 'https://repo.rosewooddev.io/repository/public/'
}
maven {
url = 'https://mvn.lumine.io/repository/maven-public/'
}
maven {
url = 'https://repo.codemc.io/repository/maven-public/'
}
maven {
url = 'https://nexus.phoenixdevt.fr/repository/maven-public/'
}
}
dependencies {
implementation 'com.ezylang:EvalEx:3.0.2'
implementation 'com.ezylang:EvalEx-big-math:1.0.0'
implementation 'org.xerial:sqlite-jdbc:3.40.1.0'
implementation 'org.apache.groovy:groovy:4.0.10'
compileOnly 'org.spigotmc:spigot-api:1.20.1-R0.1-SNAPSHOT'
compileOnly 'me.clip:placeholderapi:2.11.2'
compileOnly 'org.fastmcmirror:flybuff-next:2.0.0-SNAPSHOT-e918cc1'
compileOnly 'pku.yim:magicgem:1.05'
compileOnly 'ink.ptms:Zaphkiel:2.0.14'
compileOnly 'com.github.MilkBowl:VaultAPI:1.7'
compileOnly 'org.black_ixx:playerpoints:3.2.5'
compileOnly 'io.lumine:Mythic-Dist:5.2.1'
compileOnly 'mythicmobs:mythic-dist:4.14.2'
compileOnly 'de.tr7zw:item-nbt-api-plugin:2.11.1'
compileOnly 'net.Indyuce:MMOItems-API:6.9.2-SNAPSHOT'
compileOnly 'io.lumine:MythicLib-dist:1.5.2-SNAPSHOT'
}
def targetJavaVersion = 11
java {
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
if (JavaVersion.current() < javaVersion) {
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
}
}
tasks.withType(JavaCompile).configureEach {
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
options.release = 11
}
options.encoding = 'UTF-8'
}
processResources {
def props = [version: version]
inputs.properties props
filteringCharset 'UTF-8'
filesMatching('plugin.yml') {
expand props
}
}
shadowJar {
relocate("com.ezylang.evalex", "dev.rgbmc.ultralucky.libs.evalex")
archiveClassifier = ""
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
publishing {
publications {
maven(MavenPublication) {
groupId "dev.rgbmc"
artifactId "UltraLucky"
version = this.version
artifact shadowJar
artifact sourcesJar
}
}
repositories {
maven {
url = "https://repo.fastmcmirror.org/content/repositories/releases/"
credentials {
username System.getenv("USERNAME")
password System.getenv("PASSWORD")
}
}
}
}