-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
87 lines (71 loc) · 2.16 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
plugins {
id 'com.gradleup.shadow' version '8.3.5'
id 'maven-publish'
id 'java-library'
}
allprojects {
apply plugin: 'java-library'
apply plugin: 'maven-publish'
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://repo.rosewooddev.io/repository/public/' }
}
dependencies {
compileOnly 'org.jetbrains:annotations:24.0.1'
}
publishing {
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
}
}
}
}
}
group = 'dev.rosewood'
dependencies {
implementation project(':Plugin')
implementation project(':Arcane')
implementation project(':NMS:Wrapper')
implementation project(path: ':NMS:v1_21_R3', configuration: 'reobf')
}
jar {
manifest {
attributes("paperweight-mappings-namespace": "spigot")
}
}
publishing {
publications {
shadow(MavenPublication) { publication ->
project.shadow.component(publication)
artifactId = 'roseparticles'
pom {
name = 'roseparticles'
}
}
}
}
shadowJar {
archiveClassifier.set(null)
relocate('dev.rosewood.rosegarden', 'dev.rosewood.roseparticles.lib.rosegarden')
exclude 'com/zaxxer/hikari/**/*.class'
exclude 'org/slf4j/**/*.class'
}
build.dependsOn shadowJar