forked from Rosewood-Development/PlayerPoints
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
94 lines (80 loc) · 2.85 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
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'com.github.johnrengelman.shadow' version '8.1.1'
id 'java-library'
id 'maven-publish'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
group = 'org.black_ixx'
version = '3.3.0'
java {
disableAutoTargetJvm()
}
repositories {
mavenCentral()
maven { url = 'https://repo.rosewooddev.io/repository/public/' }
maven { url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
maven { url = 'https://oss.sonatype.org/content/repositories/snapshots/' }
maven { url = 'https://repo.codemc.org/repository/maven-public' }
maven { url = 'https://nexus.hc.to/content/repositories/pub_releases' }
maven { url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/' }
maven { url = 'https://repo.dakanilabs.com/repository/public' }
maven { url = 'https://repo.maven.apache.org/maven2' }
maven { url = 'https://jitpack.io' }
}
dependencies {
api 'dev.rosewood:rosegarden:1.4.6'
compileOnly 'org.spigotmc:spigot-api:1.21.3-R0.1-SNAPSHOT'
compileOnly 'com.github.milkbowl:vault:1.7.3'
compileOnly 'me.lokka30:treasury-api:1.2.1'
compileOnly 'com.vexsoftware:votifier:2.7.2'
compileOnly 'me.clip:placeholderapi:2.11.3'
compileOnly 'org.jetbrains:annotations:24.0.1'
compileOnly 'me.realized:tokenmanager:3.2.5'
compileOnly 'su.nightexpress:gamepoints:1.3.1'
compileOnly 'su.nexmedia:nexengine:2.2.0'
}
compileJava {
options.compilerArgs += ['-parameters']
options.fork = true
options.encoding = 'UTF-8'
}
processResources {
from (sourceSets.main.resources.srcDirs) {
include '**/*.yml'
filter ReplaceTokens, tokens: ["version": project.property("version")]
duplicatesStrategy DuplicatesStrategy.INCLUDE
}
}
shadowJar {
archiveClassifier.set(null)
minimize()
relocate('dev.rosewood.rosegarden', 'org.black_ixx.playerpoints.libs.rosegarden')
}
publishing {
publications {
shadow(MavenPublication) { publication ->
project.shadow.component(publication)
artifactId = 'playerpoints'
pom {
name = 'playerpoints'
}
}
}
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