Skip to content

Commit

Permalink
Release 2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueTree242 committed Apr 27, 2024
2 parents f97e080 + 6a3d7dd commit 0bae74b
Show file tree
Hide file tree
Showing 83 changed files with 1,136 additions and 805 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: "Validate Gradle Wrapper"
on: [ push, pull_request ]

jobs:
validation:
name: "Validation"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v3
28 changes: 0 additions & 28 deletions Bungee/build.gradle

This file was deleted.

7 changes: 0 additions & 7 deletions Bungee/src/main/resources/bungee.yml

This file was deleted.

11 changes: 0 additions & 11 deletions Spigot/Modern/V1_19_3_NMS/build.gradle.kts

This file was deleted.

10 changes: 0 additions & 10 deletions Spigot/Modern/V1_19_NMS/build.gradle.kts

This file was deleted.

17 changes: 0 additions & 17 deletions Spigot/Modern/build.gradle.kts

This file was deleted.

12 changes: 0 additions & 12 deletions Spigot/src/main/resources/plugin.yml

This file was deleted.

59 changes: 0 additions & 59 deletions Velocity/build.gradle

This file was deleted.

90 changes: 0 additions & 90 deletions build.gradle

This file was deleted.

87 changes: 87 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
import net.kyori.blossom.BlossomExtension

/*
* LICENSE
* AdvancedPlHide
* -------------
* Copyright (C) 2021 - 2021 BlueTree242
* -------------
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* END
*/
plugins {
id("java")
id("com.github.johnrengelman.shadow") version "8.1.1"
id("net.kyori.blossom") version "1.3.1" apply false
id("io.papermc.paperweight.userdev") version "1.6.0" apply false
}
repositories {
mavenCentral()
}
val buildNumber = project.properties["buildNumber"]?.toString() ?: "NONE"
val commit = System.getenv("GIT_COMMIT") ?: System.getProperty("GIT_COMMIT") ?: System.getenv("GITHUB_SHA") ?: "UNKNOWN"
println("Build number is $buildNumber")
println("Commit hash is $commit")

tasks.build {
finalizedBy(tasks.shadowJar)
}
subprojects {
apply(plugin = "java")
apply(plugin = "maven-publish")
tasks.jar {
archiveBaseName = "AdvancedPlHide-" + project.name
archiveClassifier.set("")
}
dependencies {
compileOnly("org.jetbrains:annotations:24.1.0")
}
repositories {
mavenCentral()
}
java {
disableAutoTargetJvm()
}
tasks.compileJava {
options.release.set(8)
}
afterEvaluate {
if (plugins.hasPlugin("com.github.johnrengelman.shadow")) {
tasks.build {
finalizedBy(tasks.shadowJar)
}
}
}
}

subprojects {
if (name == "core") {
apply(plugin = "net.kyori.blossom")
extensions.configure<BlossomExtension> {
val main = "src/main/java/dev/bluetree242/advancedplhide/PluginInfo.java"
replaceToken("{version}", version, main)
replaceToken("{build_number}", buildNumber, main)
replaceToken("{commit}", commit, main)
replaceToken("{build_date}", System.currentTimeMillis(), main)
replaceToken("{description}", rootProject.description, main)
}
}
}

dependencies {
implementation(project(":spigot"))
implementation(project(":velocity"))
implementation(project(":bungee"))
}
46 changes: 46 additions & 0 deletions bungee/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/*
* LICENSE
* AdvancedPlHide
* -------------
* Copyright (C) 2021 - 2024 BlueTree242
* -------------
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this program. If not, see
* <http://www.gnu.org/licenses/gpl-3.0.html>.
* END
*/
plugins {
id("net.minecrell.plugin-yml.bungee") version "0.6.0"
id("com.github.johnrengelman.shadow")
}

repositories {
maven("https://oss.sonatype.org/content/repositories/snapshots")
maven("https://mvn.exceptionflug.de/repository/exceptionflug-public/")
maven("https://libraries.minecraft.net")
}

dependencies {
implementation(project(":core"))
compileOnly(libs.protocolize)
compileOnly(libs.bungee)
}

bungee {
name = rootProject.name
description = rootProject.description
version = project.version.toString()
main = "dev.bluetree242.advancedplhide.bungee.AdvancedPlHideBungee"
author = "BlueTree242"
depends = setOf("Protocolize")
}
Loading

0 comments on commit 0bae74b

Please sign in to comment.