Update gradle
This commit is contained in:
1 parent
7df7d7c628
commit
5531d8ff71
5 files changed
+1
-133
No files matched your search
@@ -1,28 +0,0 @@
|
|||||||
name: Java CI with Gradle
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ "main" ]
|
|
||||||
pull_request:
|
|
||||||
branches: [ "main" ]
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Set up JDK 11
|
|
||||||
uses: actions/setup-java@v3
|
|
||||||
with:
|
|
||||||
java-version: '17'
|
|
||||||
distribution: 'temurin'
|
|
||||||
cache: 'gradle'
|
|
||||||
- name: Build with Gradle
|
|
||||||
uses: gradle/gradle-build-action@32bab5b15a50e1b08ae1565fc18471b42da9665b
|
|
||||||
with:
|
|
||||||
arguments: build
|
|
||||||
@@ -1,44 +0,0 @@
|
|||||||
plugins {
|
|
||||||
id("fabric-loom")
|
|
||||||
id("com.gradleup.shadow") version "8.3.6" // Import Shadow plugin.
|
|
||||||
}
|
|
||||||
|
|
||||||
val shade: Configuration by configurations.creating
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compileOnly(libs.luckperms)
|
|
||||||
compileOnly(libs.miniplaceholders)
|
|
||||||
implementation(projects.luckpermsExpansionCommon)
|
|
||||||
shade(projects.luckpermsExpansionCommon)
|
|
||||||
minecraft(libs.minecraft)
|
|
||||||
mappings(loom.officialMojangMappings())
|
|
||||||
modImplementation(libs.fabric.loader)
|
|
||||||
modImplementation(libs.fabric.api)
|
|
||||||
modImplementation(libs.adventure.platform.fabric)
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks {
|
|
||||||
processResources {
|
|
||||||
filteringCharset = Charsets.UTF_8.name()
|
|
||||||
filesMatching("fabric.mod.json") {
|
|
||||||
expand("version" to project.version)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
remapJar {
|
|
||||||
inputFile.set(shadowJar.get().archiveFile)
|
|
||||||
archiveFileName.set("MiniPlaceholders-LuckPerms-Expansion-Fabric-${project.version}.jar")
|
|
||||||
doLast {
|
|
||||||
copy {
|
|
||||||
from(archiveFile)
|
|
||||||
into("${rootProject.projectDir}/build")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
shadowJar {
|
|
||||||
configurations = listOf(shade)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
java {
|
|
||||||
withSourcesJar()
|
|
||||||
}
|
|
||||||
-28
@@ -1,28 +0,0 @@
|
|||||||
package io.github.miniplaceholders.expansion.luckperms.fabric;
|
|
||||||
|
|
||||||
import io.github.miniplaceholders.expansion.luckperms.common.CommonExpansion;
|
|
||||||
import net.fabricmc.api.ModInitializer;
|
|
||||||
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerLifecycleEvents;
|
|
||||||
import net.luckperms.api.LuckPerms;
|
|
||||||
import net.luckperms.api.LuckPermsProvider;
|
|
||||||
import net.minecraft.server.level.ServerPlayer;
|
|
||||||
import org.slf4j.Logger;
|
|
||||||
import org.slf4j.LoggerFactory;
|
|
||||||
|
|
||||||
public final class FabricMod implements ModInitializer {
|
|
||||||
public static final Logger LOGGER = LoggerFactory.getLogger("miniplaceholders-luckperms-expansion");
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onInitialize() {
|
|
||||||
LOGGER.info("Starting LuckPerms Expansion for Fabric");
|
|
||||||
|
|
||||||
ServerLifecycleEvents.SERVER_STARTED.register(server -> {
|
|
||||||
final LuckPerms luckPerms = LuckPermsProvider.get();
|
|
||||||
new CommonExpansion(luckPerms).commonBuilder()
|
|
||||||
.filter(ServerPlayer.class)
|
|
||||||
.build()
|
|
||||||
.register();
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
{
|
|
||||||
"schemaVersion": 1,
|
|
||||||
"id": "miniplaceholders-luckperms-expansion",
|
|
||||||
"version": "${version}",
|
|
||||||
"name": "MiniPlaceholders-LuckPerms-Expansion",
|
|
||||||
"authors": [
|
|
||||||
"4drian3d"
|
|
||||||
],
|
|
||||||
"contact": {
|
|
||||||
"homepage": "https://github.com/MiniPlaceholders/LuckPerms-Expansion",
|
|
||||||
"sources": "https://github.com/MiniPlaceholders/LuckPerms-Expansion",
|
|
||||||
"issues": "https://github.com/MiniPlaceholders/LuckPerms-Expansion/issues"
|
|
||||||
},
|
|
||||||
"license": "GPL",
|
|
||||||
"environment": "server",
|
|
||||||
"entrypoints": {
|
|
||||||
"main": [
|
|
||||||
"io.github.miniplaceholders.expansion.luckperms.fabric.FabricMod"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"depends": {
|
|
||||||
"fabricloader": ">=0.14.22",
|
|
||||||
"fabric": "*",
|
|
||||||
"java": ">=17",
|
|
||||||
"minecraft": ">=1.20.1",
|
|
||||||
"miniplaceholders": ">=2.2.1",
|
|
||||||
"luckperms": ">=5.4.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+1
-4
@@ -4,7 +4,6 @@ rootProject.name = "MiniPlaceholders-LuckPerms"
|
|||||||
dependencyResolutionManagement {
|
dependencyResolutionManagement {
|
||||||
repositories {
|
repositories {
|
||||||
maven("https://repo.papermc.io/repository/maven-public/")
|
maven("https://repo.papermc.io/repository/maven-public/")
|
||||||
//maven("https://oss.sonatype.org/content/repositories/snapshots")
|
|
||||||
}
|
}
|
||||||
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
|
||||||
}
|
}
|
||||||
@@ -13,18 +12,16 @@ pluginManagement {
|
|||||||
repositories {
|
repositories {
|
||||||
gradlePluginPortal()
|
gradlePluginPortal()
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
maven("https://maven.fabricmc.net/")
|
|
||||||
maven("https://maven.quiltmc.org/repository/release/")
|
maven("https://maven.quiltmc.org/repository/release/")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
arrayOf("common", "paper", "velocity", "sponge", "fabric").forEach {
|
arrayOf("common", "paper", "velocity", "sponge").forEach {
|
||||||
include("luckperms-expansion-$it")
|
include("luckperms-expansion-$it")
|
||||||
project(":luckperms-expansion-$it").projectDir = file(it)
|
project(":luckperms-expansion-$it").projectDir = file(it)
|
||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
|
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
|
||||||
id("fabric-loom") version "1.4.4"
|
|
||||||
id("org.spongepowered.gradle.plugin") version "2.2.0"
|
id("org.spongepowered.gradle.plugin") version "2.2.0"
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user