Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 0 additions & 34 deletions .github/workflows/gradle.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: release.yml
on:
push:
tags:
- "v*"

jobs:
build-and-release:
runs-on: ubuntu-latest
permissions:
contents: write # Essential for creating the release

steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Required for changelog generation to see history

- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '21'
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v4
- name: Make Gradle Wrapper Executable
run: chmod +x ./gradlew
- name: Build Shaded JARs
run: ./gradlew clean shadowJar
- name: Remove Unshaded JAR
run: rm build/target/BlueBridgeCore-*-NoDependencies.jar
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: |
build/target/BlueBridgeCore-*.jar
build/target/BlueBridgeGP-*.jar
build/target/BlueBridgeWG-*.jar
build/target/BlueBridgeWB-*.jar
14 changes: 2 additions & 12 deletions BlueBridgeCore/build.gradle
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
buildscript {
repositories {
gradlePluginPortal()
}
dependencies {
classpath 'com.gradleup.shadow:shadow-gradle-plugin:8.3.0'
}
}

plugins {
id 'com.gradleup.shadow' version '8.3.0'
}


dependencies {
provided 'com.github.BlueMap-Minecraft:BlueMapAPI:2.6.2'
compileOnly 'de.bluecolored:bluemap-api:2.7.7'
// https://mvnrepository.com/artifact/org.apache.commons/commons-text
implementation 'org.apache.commons:commons-text:1.9'
implementation 'org.apache.commons:commons-text:1.15.0'
}

tasks.build.dependsOn tasks.shadowJar
Expand Down
1 change: 0 additions & 1 deletion BlueBridgeCore/settings.gradle

This file was deleted.

38 changes: 35 additions & 3 deletions BlueBridgeGP/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
plugins {
id 'com.gradleup.shadow' version '8.3.0'
}

dependencies {
implementation project(':BlueBridgeCore')
provided 'com.github.BlueMap-Minecraft:BlueMapAPI:2.6.2'
implementation 'com.github.TechFortress:GriefPrevention:16.18'
compileOnly project(':BlueBridgeCore')
compileOnly 'de.bluecolored:bluemap-api:2.7.7'
compileOnly 'com.github.GriefPrevention:GriefPrevention:16.18.5'
}

tasks.build.dependsOn tasks.shadowJar

jar {
archiveClassifier = 'NoDependencies'
}

shadowJar {
zip64 = true
mergeServiceFiles()
relocate 'org.apache.commons.text', 'de.mark225.shadow.org.apache.commons.text'
relocate 'org.apache.commons.lang3', 'de.mark225.shadow.org.apache.commons.lang3'
archiveClassifier = ''
def exclude_modules = project
.configurations
.provided
.resolvedConfiguration
.getLenientConfiguration()
.getAllModuleDependencies()
.collect {
it.name
}
dependencies {
exclude(dependency {
exclude_modules.contains(it.name)
})
}
}
2 changes: 0 additions & 2 deletions BlueBridgeGP/settings.gradle

This file was deleted.

36 changes: 34 additions & 2 deletions BlueBridgeWB/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,36 @@
plugins {
id 'com.gradleup.shadow' version '8.3.0'
}

dependencies {
implementation project(':BlueBridgeCore')
provided 'com.github.BlueMap-Minecraft:BlueMapAPI:2.6.2'
compileOnly project(':BlueBridgeCore')
compileOnly 'de.bluecolored:bluemap-api:2.7.7'
}

tasks.build.dependsOn tasks.shadowJar

jar {
archiveClassifier = 'NoDependencies'
}

shadowJar {
zip64 = true
mergeServiceFiles()
relocate 'org.apache.commons.text', 'de.mark225.shadow.org.apache.commons.text'
relocate 'org.apache.commons.lang3', 'de.mark225.shadow.org.apache.commons.lang3'
archiveClassifier = ''
def exclude_modules = project
.configurations
.provided
.resolvedConfiguration
.getLenientConfiguration()
.getAllModuleDependencies()
.collect {
it.name
}
dependencies {
exclude(dependency {
exclude_modules.contains(it.name)
})
}
}
38 changes: 35 additions & 3 deletions BlueBridgeWG/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,41 @@
plugins {
id 'com.gradleup.shadow' version '8.3.0'
}

repositories {
maven { url "https://maven.enginehub.org/repo/" }
}

dependencies {
implementation project(':BlueBridgeCore')
provided 'com.github.BlueMap-Minecraft:BlueMapAPI:2.6.2'
provided 'com.sk89q.worldguard:worldguard-bukkit:7.0.14'
compileOnly project(':BlueBridgeCore')
compileOnly 'de.bluecolored:bluemap-api:2.7.7'
compileOnly 'com.sk89q.worldguard:worldguard-bukkit:7.0.14'
}

tasks.build.dependsOn tasks.shadowJar

jar {
archiveClassifier = 'NoDependencies'
}

shadowJar {
zip64 = true
mergeServiceFiles()
relocate 'org.apache.commons.text', 'de.mark225.shadow.org.apache.commons.text'
relocate 'org.apache.commons.lang3', 'de.mark225.shadow.org.apache.commons.lang3'
archiveClassifier = ''
def exclude_modules = project
.configurations
.provided
.resolvedConfiguration
.getLenientConfiguration()
.getAllModuleDependencies()
.collect {
it.name
}
dependencies {
exclude(dependency {
exclude_modules.contains(it.name)
})
}
}
2 changes: 0 additions & 2 deletions BlueBridgeWG/settings.gradle

This file was deleted.

11 changes: 6 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ subprojects {

apply plugin: 'java'

version '2.2'
version '2.3'

//Add maintainers here (separated by a comma and space). This will be added to the plugin.yml.
def authors = 'Mark_225'
Expand All @@ -24,6 +24,7 @@ subprojects {
name = "papermc"
url = uri("https://repo.papermc.io/repository/maven-public/")
}
maven { url 'https://repo.bluecolored.de/releases' }
}

configurations {
Expand All @@ -32,12 +33,12 @@ subprojects {
}

dependencies {
compileOnly("io.papermc.paper:paper-api:1.21.8-R0.1-SNAPSHOT")
provided 'com.flowpowered:flow-math:1.0.3'
compileOnly("io.papermc.paper:paper-api:1.21.10-R0.1-SNAPSHOT")
compileOnly 'com.flowpowered:flow-math:1.0.3'
}

tasks.withType(Jar) {
destinationDirectory = file("$rootDir/build/target")
tasks.withType(Jar).configureEach {
it.destinationDirectory = file("$rootDir/build/target")
}

processResources {
Expand Down
7 changes: 2 additions & 5 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
rootProject.name = 'BlueBridge'

include ':BlueBridgeCore'
include ':BlueBridgeWG'
include ':BlueBridgeGP'

project(':BlueBridgeCore').projectDir = "$rootDir/BlueBridgeCore" as File
project(':BlueBridgeWG').projectDir = "$rootDir/BlueBridgeWG" as File
project(':BlueBridgeGP').projectDir = "$rootDir/BlueBridgeGP" as File
include 'BlueBridgeWB'
include ':BlueBridgeWB'