This repository was archived by the owner on May 18, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
117 lines (101 loc) · 3.12 KB
/
Copy pathbuild.gradle
File metadata and controls
117 lines (101 loc) · 3.12 KB
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
plugins {
id 'java-library'
id 'maven-publish'
id 'com.gradleup.shadow' version '8.3.5'
id 'net.kyori.blossom' version '1.3.1'
}
subprojects {
apply plugin: 'java-library'
apply plugin: 'maven-publish'
apply plugin: 'com.gradleup.shadow'
apply plugin: 'net.kyori.blossom'
group = 'de.skyslayer'
version = '0.0.66'
def repoUser = System.getenv('SLAYER_USER')
def repoPassword = System.getenv('SLAYER_TOKEN')
if (repoUser == null || repoPassword == null) {
throw new GradleException("SLAYER_USER und SLAYER_TOKEN Umgebungsvariablen müssen gesetzt sein")
}
repositories {
mavenCentral()
maven {
name 'paper-repo'
url 'https://repo.papermc.io/repository/maven-public/'
}
maven {
name 'jitpack-repo'
url 'https://jitpack.io'
}
maven {
name 'sonatype-repo'
url 'https://s01.oss.sonatype.org/content/repositories/snapshots/'
}
maven {
name 'invui-repo'
url 'https://repo.xenondevs.xyz/releases'
}
maven {
name 'panda-lang-repo'
url 'https://repo.panda-lang.org/releases'
}
}
dependencies {
compileOnly "org.projectlombok:lombok:$lombok"
annotationProcessor "org.projectlombok:lombok:$lombok"
}
shadowJar {
dependencies {
// LuckPerms plugin api, provided by plugin jar
exclude(dependency("net.luckperms:api:$luckPerms"))
// Log4J Core for console filtering, provided by server jars
exclude(dependency("org.apache.logging.log4j:log4j-core:$log4j"))
// relocate("com.google", "de.skyslayer.google")
// // Gson for Request serialization, provided by server jars
// exclude(dependency("com.google.code.gson:gson:$gson"))
}
archiveBaseName.set("skyslayer-" + project.name)
}
java {
withJavadocJar()
withSourcesJar()
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}
compileJava {
options.fork = true
options.encoding = 'UTF-8'
}
tasks.withType(Javadoc).configureEach {
options.addStringOption('Xdoclint:none', '-quiet')
failOnError = false
}
publishing {
repositories {
maven {
name = "SkySlayer"
url = "http://45.93.249.14:8080/private"
allowInsecureProtocol = true
credentials {
username = repoUser
password = repoPassword
}
}
}
publications {
maven(MavenPublication) {
from components.java
}
}
}
blossom {
replaceToken("core_version", version.toString())
}
processResources {
filesMatching("**/plugin.yml") {
it.expand([
"core_version": version.toString(),
])
}
}
}