Skip to content

Commit 0bae74b

Browse files
committed
Release 2.5
2 parents f97e080 + 6a3d7dd commit 0bae74b

83 files changed

Lines changed: 1136 additions & 805 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: "Validate Gradle Wrapper"
2+
on: [ push, pull_request ]
3+
4+
jobs:
5+
validation:
6+
name: "Validation"
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: gradle/wrapper-validation-action@v3

Bungee/build.gradle

Lines changed: 0 additions & 28 deletions
This file was deleted.

Bungee/src/main/resources/bungee.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

Spigot/Modern/V1_19_3_NMS/build.gradle.kts

Lines changed: 0 additions & 11 deletions
This file was deleted.

Spigot/Modern/V1_19_NMS/build.gradle.kts

Lines changed: 0 additions & 10 deletions
This file was deleted.

Spigot/Modern/build.gradle.kts

Lines changed: 0 additions & 17 deletions
This file was deleted.

Spigot/src/main/resources/plugin.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

Velocity/build.gradle

Lines changed: 0 additions & 59 deletions
This file was deleted.

build.gradle

Lines changed: 0 additions & 90 deletions
This file was deleted.

build.gradle.kts

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
import net.kyori.blossom.BlossomExtension
2+
3+
/*
4+
* LICENSE
5+
* AdvancedPlHide
6+
* -------------
7+
* Copyright (C) 2021 - 2021 BlueTree242
8+
* -------------
9+
* This program is free software: you can redistribute it and/or modify
10+
* it under the terms of the GNU General Public License as
11+
* published by the Free Software Foundation, either version 3 of the
12+
* License, or (at your option) any later version.
13+
*
14+
* This program is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* GNU General Public License for more details.
18+
*
19+
* You should have received a copy of the GNU General Public
20+
* License along with this program. If not, see
21+
* <http://www.gnu.org/licenses/gpl-3.0.html>.
22+
* END
23+
*/
24+
plugins {
25+
id("java")
26+
id("com.github.johnrengelman.shadow") version "8.1.1"
27+
id("net.kyori.blossom") version "1.3.1" apply false
28+
id("io.papermc.paperweight.userdev") version "1.6.0" apply false
29+
}
30+
repositories {
31+
mavenCentral()
32+
}
33+
val buildNumber = project.properties["buildNumber"]?.toString() ?: "NONE"
34+
val commit = System.getenv("GIT_COMMIT") ?: System.getProperty("GIT_COMMIT") ?: System.getenv("GITHUB_SHA") ?: "UNKNOWN"
35+
println("Build number is $buildNumber")
36+
println("Commit hash is $commit")
37+
38+
tasks.build {
39+
finalizedBy(tasks.shadowJar)
40+
}
41+
subprojects {
42+
apply(plugin = "java")
43+
apply(plugin = "maven-publish")
44+
tasks.jar {
45+
archiveBaseName = "AdvancedPlHide-" + project.name
46+
archiveClassifier.set("")
47+
}
48+
dependencies {
49+
compileOnly("org.jetbrains:annotations:24.1.0")
50+
}
51+
repositories {
52+
mavenCentral()
53+
}
54+
java {
55+
disableAutoTargetJvm()
56+
}
57+
tasks.compileJava {
58+
options.release.set(8)
59+
}
60+
afterEvaluate {
61+
if (plugins.hasPlugin("com.github.johnrengelman.shadow")) {
62+
tasks.build {
63+
finalizedBy(tasks.shadowJar)
64+
}
65+
}
66+
}
67+
}
68+
69+
subprojects {
70+
if (name == "core") {
71+
apply(plugin = "net.kyori.blossom")
72+
extensions.configure<BlossomExtension> {
73+
val main = "src/main/java/dev/bluetree242/advancedplhide/PluginInfo.java"
74+
replaceToken("{version}", version, main)
75+
replaceToken("{build_number}", buildNumber, main)
76+
replaceToken("{commit}", commit, main)
77+
replaceToken("{build_date}", System.currentTimeMillis(), main)
78+
replaceToken("{description}", rootProject.description, main)
79+
}
80+
}
81+
}
82+
83+
dependencies {
84+
implementation(project(":spigot"))
85+
implementation(project(":velocity"))
86+
implementation(project(":bungee"))
87+
}

0 commit comments

Comments
 (0)