forked from Rosewood-Development/RoseLoot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
132 lines (117 loc) · 4.67 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
121
122
123
124
125
126
127
128
129
130
131
132
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'com.github.johnrengelman.shadow' version '8.1.1'
id 'java-library'
id 'maven-publish'
}
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
group = 'dev.rosewood'
version = '1.2.17'
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
disableAutoTargetJvm()
}
compileJava {
options.compilerArgs += ['-parameters']
options.fork = true
options.encoding = 'UTF-8'
}
repositories {
mavenCentral()
maven { url = 'https://repo.papermc.io/repository/maven-public/' }
maven { url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
maven { url = 'https://repo.rosewooddev.io/repository/public/' }
maven { url = 'https://repo.codemc.org/repository/maven-public/' }
maven { url = 'https://repo.luminescent.dev/repository/public-releases/' }
maven { url = 'https://repo.auxilor.io/repository/maven-public/' }
maven { url = 'https://erethon.de/repo/' }
maven { url = 'https://maven.playpro.com/' }
maven { url = 'https://mvn.lumine.io/repository/maven-public/' }
maven { url = 'https://r.irepo.space/maven/' }
maven { url = 'https://libraries.minecraft.net/' }
maven { url = 'https://jitpack.io/' }
}
dependencies {
compileOnly 'io.papermc.paper:paper-api:1.21-R0.1-SNAPSHOT'
compileOnly 'com.mojang:authlib:1.5.21'
compileOnly 'org.jetbrains:annotations:23.0.0'
compileOnly 'com.github.milkbowl:vault:1.7.3'
compileOnly 'me.lokka30:treasury-api:1.1.1'
compileOnly 'org.black_ixx:playerpoints:3.1.0'
compileOnly 'me.realized:tokenmanager:3.2.5'
compileOnly 'su.nightexpress:coinsengine:2.2.0.1'
compileOnly 'su.nightexpress:nightcore:2.5.1'
compileOnly 'io.lumine:MythicLib-dist:1.3.1'
compileOnly 'net.Indyuce:MMOItems:6.7.3'
compileOnly 'net.Indyuce:MMOCore:1.9.3'
compileOnly 'com.github.jojodmo:ItemBridge:master-SNAPSHOT'
compileOnly 'com.ssomar:score:3.9.72'
compileOnly 'com.github.LoneDev6:api-itemsadder:2.5.5'
compileOnly 'de.erethon:caliburn:1.0.3'
compileOnly 'com.github.oraxen:oraxen:1.161.0'
compileOnly 'nl.knokko:customitems:9.18'
compileOnly 'com.github.emanondev:ItemEdit:2.17'
compileOnly 'thirtyvirus.uber:uberitems:2.6'
compileOnly 'dev.luminescent:DeezItems:1.1.1@jar'
compileOnly 'com.github.Slimefun:Slimefun4:RC-37'
compileOnly 'io.lumine:Mythic-Dist:5.1.0-SNAPSHOT'
compileOnly 'pers.neige.neigeitems:NeigeItems:1.14.27'
compileOnly 'com.willfp:eco:6.71.4'
compileOnly 'com.willfp:EcoSkills:3.58.0'
compileOnly 'me.wolfyscript:customcrafting:3.16.6.2'
compileOnly 'com.wolfyscript:utilities:4.16.4.1'
compileOnly 'dev.rosewood:rosestacker:1.5.24-SNAPSHOT'
compileOnly 'me.casperge:realisticseasons:8.1.3'
compileOnly 'com.dfsek.terra:api:6.1.2-BETA+9abac34b8'
compileOnly 'com.dfsek.terra:common:6.1.2-BETA+9abac34b8'
compileOnly 'com.dfsek.terra:bukkit:6.1.2-BETA+9abac34b8'
compileOnly 'de.tr7zw:item-nbt-api-plugin:2.13.1'
compileOnly 'net.coreprotect:coreprotect:21.0'
compileOnly 'com.github.Xiao-MoMi:Custom-Fishing:2.2.0'
compileOnly 'dev.krakenied:blocktracker:1.0.5'
compileOnly 'com.arcaniax:HeadDatabase-API:1.3.1', {
exclude group: 'org.spigotmc'
}
api 'dev.rosewood:rosegarden:1.4.0'
}
shadowJar {
archiveClassifier.set(null)
minimize()
relocate('dev.rosewood.rosegarden', 'dev.rosewood.roseloot.lib.rosegarden')
exclude 'com/zaxxer/hikari/**/*.class'
exclude 'org/slf4j/**/*.class'
}
processResources {
from (sourceSets.main.resources.srcDirs) {
include '**/*.yml'
filter ReplaceTokens, tokens: ["version": project.property("version")]
duplicatesStrategy DuplicatesStrategy.INCLUDE
}
}
publishing {
publications {
shadow(MavenPublication) { publication ->
project.shadow.component(publication)
artifactId = 'roseloot'
pom {
name = 'roseloot'
}
}
}
repositories {
if (project.hasProperty('mavenUser') && project.hasProperty('mavenPassword')) {
maven {
credentials {
username project.mavenUser
password project.mavenPassword
}
def releasesRepoUrl = 'https://repo.rosewooddev.io/repository/public-releases/'
def snapshotsRepoUrl = 'https://repo.rosewooddev.io/repository/public-snapshots/'
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
}
}
}
}
build.dependsOn shadowJar
publishShadowPublicationToMavenRepository.dependsOn jar