aboutsummaryrefslogtreecommitdiff
path: root/fabric
diff options
context:
space:
mode:
authornea <romangraef@gmail.com>2022-07-29 20:51:53 +0200
committernea <romangraef@gmail.com>2022-07-29 20:51:53 +0200
commitf4bf70032a45b4daa7805ca38f2d820645dc9a6b (patch)
treedc91fa8e13b78ac9a7fcda24a26894e430f7fc84 /fabric
parent386ee78026801bf50d9cba24de541ed087f145d6 (diff)
downloadfirmament-f4bf70032a45b4daa7805ca38f2d820645dc9a6b.tar.gz
firmament-f4bf70032a45b4daa7805ca38f2d820645dc9a6b.tar.bz2
firmament-f4bf70032a45b4daa7805ca38f2d820645dc9a6b.zip
no arch
Diffstat (limited to 'fabric')
-rw-r--r--fabric/build.gradle.kts113
-rw-r--r--fabric/src/main/kotlin/moe/nea/notenoughupdates/FabricMain.kt10
-rw-r--r--fabric/src/main/resources/fabric.mod.json34
-rw-r--r--fabric/src/main/resources/notenoughupdates.mixins.json12
4 files changed, 0 insertions, 169 deletions
diff --git a/fabric/build.gradle.kts b/fabric/build.gradle.kts
deleted file mode 100644
index 1e39832..0000000
--- a/fabric/build.gradle.kts
+++ /dev/null
@@ -1,113 +0,0 @@
-plugins {
- id("com.github.johnrengelman.shadow") version "7.1.2"
-}
-
-architectury {
- platformSetupLoomIde()
- fabric()
-}
-
-loom {
- accessWidenerPath.set(project(":common").loom.accessWidenerPath)
- launches {
- named("client") {
- property("fabric.log.level", "info")
- }
- }
-}
-
-/**
- * @see: https://docs.gradle.org/current/userguide/migrating_from_groovy_to_kotlin_dsl.html
- * */
-val common: Configuration by configurations.creating
-val shadowCommon: Configuration by configurations.creating // Don't use shadow from the shadow plugin because we don't want IDEA to index this.
-val developmentFabric: Configuration = configurations.getByName("developmentFabric")
-configurations {
- compileClasspath.get().extendsFrom(configurations["common"])
- runtimeClasspath.get().extendsFrom(configurations["common"])
- developmentFabric.extendsFrom(configurations["common"])
-}
-
-dependencies {
- modImplementation("net.fabricmc:fabric-loader:${rootProject.property("fabric_loader_version")}")
- modApi("net.fabricmc.fabric-api:fabric-api:${rootProject.property("fabric_api_version")}")
- // Remove the next line if you don't want to depend on the API
- modApi("dev.architectury:architectury-fabric:${rootProject.property("architectury_version")}")
-
- common(project(":common", configuration = "namedElements")) { isTransitive = false }
- shadowCommon(project(":common", configuration = "transformProductionFabric")) { isTransitive = false }
- common(kotlin("stdlib-jdk8"))
- modRuntimeOnly("me.shedaniel:RoughlyEnoughItems-fabric:${rootProject.property("rei_version")}")
- modRuntimeOnly("me.djtheredstoner:DevAuth-fabric:${rootProject.property("devauth_version")}")
- modRuntimeOnly("maven.modrinth:modmenu:${rootProject.property("modmenu_version")}")
-}
-
-val javaComponent = components.getByName("java", AdhocComponentWithVariants::class)
-javaComponent.withVariantsFromConfiguration(configurations["sourcesElements"]) {
- skip()
-}
-
-tasks {
- processResources {
- inputs.property("version", project.version)
-
- filesMatching("fabric.mod.json") {
- expand("version" to project.version)
- }
- }
-
- shadowJar {
- exclude("architectury.common.json")
- /**
- * magic!
- * groovy -> kotlin dsl
- * [project.configurations.shadowCommon] -> listOf(project.configurations["shadowCommon"])
- * */
- configurations = listOf(project.configurations["shadowCommon"])
- archiveClassifier.set("dev-shadow")
- }
-
- remapJar {
- injectAccessWidener.set(true)
- /**
- * magic!
- * groovy -> kotlin dsl
- * shadowJar.archiveFile -> shadowJar.flatMap { it.archiveFile }
- * */
- inputFile.set(shadowJar.flatMap { it.archiveFile })
- dependsOn(shadowJar)
- /**
- * affect suffix of build jar name
- * if { archiveClassifier.set("fabric") }
- * name will be examplemod-1.0.0-fabric.jar
- */
- archiveClassifier.set("fabric")
- }
-
- jar {
- archiveClassifier.set("dev")
- }
-
- sourcesJar {
- val commonSources = project(":common").tasks.getByName("sourcesJar", Jar::class)
- dependsOn(commonSources)
- from(commonSources.archiveFile.map { zipTree(it) })
- }
-
-
-
- publishing {
- publications {
- create<MavenPublication>("mavenFabric") {
- artifactId = "${rootProject.property("archives_base_name")}-${project.name}"
- from(javaComponent)
- }
- }
-
- // See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
- repositories {
- // Add repositories to publish to here.
- }
- }
-}
-
diff --git a/fabric/src/main/kotlin/moe/nea/notenoughupdates/FabricMain.kt b/fabric/src/main/kotlin/moe/nea/notenoughupdates/FabricMain.kt
deleted file mode 100644
index 918100b..0000000
--- a/fabric/src/main/kotlin/moe/nea/notenoughupdates/FabricMain.kt
+++ /dev/null
@@ -1,10 +0,0 @@
-package moe.nea.notenoughupdates
-
-import moe.nea.notenoughupdates.NotEnoughUpdates.init
-import net.fabricmc.api.ModInitializer
-
-class FabricMain : ModInitializer {
- override fun onInitialize() {
- init()
- }
-}
diff --git a/fabric/src/main/resources/fabric.mod.json b/fabric/src/main/resources/fabric.mod.json
deleted file mode 100644
index 3ff8349..0000000
--- a/fabric/src/main/resources/fabric.mod.json
+++ /dev/null
@@ -1,34 +0,0 @@
-{
- "schemaVersion": 1,
- "id": "notenoughupdates",
- "version": "${version}",
- "name": "Not Enough Updates",
- "description": "Not Enough Updates - A mod for Hypixel Skyblock",
- "authors": [
- "nea89"
- ],
- "contact": {
- "homepage": "https://github.com/romangraef/TODO",
- "sources": "https://github.com/romangraef/TODO"
- },
- "license": "LGPL-3.0",
- "icon": "assets/notenoughupdates/icon.png",
- "environment": "client",
- "entrypoints": {
- "main": [
- "moe.nea.notenoughupdates.FabricMain"
- ],
- "rei": [
- "moe.nea.notenoughupdates.rei.NEUReiPlugin"
- ]
- },
- "mixins": [
- "notenoughupdates.mixins.json",
- "notenoughupdates-common.mixins.json"
- ],
- "depends": {
- "fabric": "*",
- "minecraft": ">=1.18.2",
- "architectury": ">=4.2.50"
- }
-}
diff --git a/fabric/src/main/resources/notenoughupdates.mixins.json b/fabric/src/main/resources/notenoughupdates.mixins.json
deleted file mode 100644
index ab40cb1..0000000
--- a/fabric/src/main/resources/notenoughupdates.mixins.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "required": true,
- "package": "net.examplemod.mixin.fabric",
- "compatibilityLevel": "JAVA_16",
- "client": [
- ],
- "mixins": [
- ],
- "injectors": {
- "defaultRequire": 1
- }
-} \ No newline at end of file