-
Notifications
You must be signed in to change notification settings - Fork 40
/
build.gradle
113 lines (99 loc) · 4 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
plugins {
id 'com.github.johnrengelman.shadow' version '8.1.1' apply false
id 'maven-publish'
id 'java'
}
jar {
manifest {
attributes("paperweight-mappings-namespace": "spigot")
}
}
allprojects {
apply plugin: 'java-library'
apply plugin: 'com.github.johnrengelman.shadow'
group = 'dev.rosewood'
version = '1.5.30-SNAPSHOT'
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
disableAutoTargetJvm()
}
repositories {
mavenCentral()
maven { url = 'https://repo.rosewooddev.io/repository/public/' }
maven { url = 'https://libraries.minecraft.net' }
maven { url = 'https://repo.papermc.io/repository/maven-public/' }
maven { url = 'https://s01.oss.sonatype.org/content/repositories/snapshots/' }
maven { url = 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
maven { url = 'https://repo.bg-software.com/repository/api/' }
maven { url = 'https://bitbucket.org/kangarko/libraries/raw/master' }
maven { url = 'https://maven.enginehub.org/repo/' }
maven { url = 'https://repo.md-5.net/content/repositories/public/' }
maven { url = 'https://repo.codemc.org/repository/maven-public' }
maven { url = 'https://repo.extendedclip.com/content/repositories/placeholderapi/' }
maven { url = 'https://mvn.lumine.io/repository/maven-public/' }
maven { url = 'https://maven.playpro.com' }
maven { url = 'https://repo.fvdh.dev/releases' }
maven { url = 'https://nexus.neetgames.com/repository/maven-releases/' }
maven { url = 'https://jitpack.io' }
maven {
url = 'https://repo.rosewooddev.io/repository/maven-public'
credentials {
username project.mavenUser
password project.mavenPassword
authentication {
basic(BasicAuthentication)
}
}
}
}
dependencies {
compileOnly 'org.jetbrains:annotations:24.0.1'
}
}
dependencies {
implementation project(':Plugin')
implementation project(':NMS:Wrapper')
implementation project(':NMS:v1_16_R3')
implementation project(path: ':NMS:v1_17_R1', configuration: 'remapped')
implementation project(path: ':NMS:v1_18_R2', configuration: 'remapped')
implementation project(path: ':NMS:v1_19_R3', configuration: 'remapped')
implementation project(path: ':NMS:v1_20_R3', configuration: 'remapped')
implementation project(path: ':NMS:v1_20_R4', configuration: 'remapped')
implementation project(path: ':NMS:v1_21_R1', configuration: 'remapped')
implementation project(path: ':NMS:v1_21_R2', configuration: 'remapped')
}
shadowJar {
archiveClassifier.set(null)
relocate('dev.rosewood.rosegarden', 'dev.rosewood.rosestacker.lib.rosegarden')
relocate('dev.rosewood.guiframework', 'dev.rosewood.rosestacker.lib.guiframework')
exclude 'com/zaxxer/hikari/**/*.class'
exclude 'org/slf4j/**/*.class'
}
publishing {
publications {
shadow(MavenPublication) { publication ->
project.shadow.component(publication)
artifactId = 'rosestacker'
pom {
name = 'rosestacker'
}
}
}
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