mirror of
https://github.com/Suiranoil/SkinRestorer.git
synced 2026-01-16 04:42:12 +00:00
architectury
This commit is contained in:
49
fabric/build.gradle
Normal file
49
fabric/build.gradle
Normal file
@@ -0,0 +1,49 @@
|
||||
plugins {
|
||||
id 'com.github.johnrengelman.shadow'
|
||||
}
|
||||
|
||||
architectury {
|
||||
platformSetupLoomIde()
|
||||
fabric()
|
||||
}
|
||||
|
||||
configurations {
|
||||
common {
|
||||
canBeResolved = true
|
||||
canBeConsumed = false
|
||||
}
|
||||
compileClasspath.extendsFrom common
|
||||
runtimeClasspath.extendsFrom common
|
||||
developmentFabric.extendsFrom common
|
||||
|
||||
// Files in this configuration will be bundled into your mod using the Shadow plugin.
|
||||
// Don't use the `shadow` configuration from the plugin itself as it's meant for excluding files.
|
||||
shadowBundle {
|
||||
canBeResolved = true
|
||||
canBeConsumed = false
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
modImplementation "net.fabricmc:fabric-loader:$rootProject.fabric_loader_version"
|
||||
|
||||
common(project(path: ':common', configuration: 'namedElements')) { transitive false }
|
||||
shadowBundle project(path: ':common', configuration: 'transformProductionFabric')
|
||||
}
|
||||
|
||||
processResources {
|
||||
inputs.property 'version', project.version
|
||||
|
||||
filesMatching('fabric.mod.json') {
|
||||
expand version: project.version
|
||||
}
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
configurations = [project.configurations.shadowBundle]
|
||||
archiveClassifier = 'dev-shadow'
|
||||
}
|
||||
|
||||
remapJar {
|
||||
input.set shadowJar.archiveFile
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package net.lionarius.skinrestorer.fabric;
|
||||
|
||||
import net.fabricmc.api.DedicatedServerModInitializer;
|
||||
import net.lionarius.skinrestorer.SkinRestorer;
|
||||
|
||||
public final class SkinRestorerFabric implements DedicatedServerModInitializer {
|
||||
@Override
|
||||
public void onInitializeServer() {
|
||||
SkinRestorer.onInitialize();
|
||||
}
|
||||
}
|
||||
29
fabric/src/main/resources/fabric.mod.json
Normal file
29
fabric/src/main/resources/fabric.mod.json
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"id": "skinrestorer",
|
||||
"version": "${version}",
|
||||
"name": "Skin Restorer",
|
||||
"description": "A server-side mod for restoring skins on offline servers.",
|
||||
"authors": [
|
||||
"Lionarius"
|
||||
],
|
||||
"contact": {
|
||||
"homepage": "https://modrinth.com/mod/skinrestorer",
|
||||
"sources": "https://github.com/Suiranoil/SkinRestorer",
|
||||
"issues": "https://github.com/Suiranoil/SkinRestorer/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"environment": "server",
|
||||
"entrypoints": {
|
||||
"server": [
|
||||
"net.lionarius.skinrestorer.fabric.SkinRestorer"
|
||||
]
|
||||
},
|
||||
"mixins": [
|
||||
"skinrestorer.mixins.json"
|
||||
],
|
||||
"depends": {
|
||||
"fabricloader": ">=0.15.10",
|
||||
"minecraft": ">=1.21"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user