Skip to content

Commit

Permalink
refactor: rename projects to remove "platform"
Browse files Browse the repository at this point in the history
  • Loading branch information
raoulvdberge committed Jul 9, 2024
1 parent 84280b9 commit f510250
Show file tree
Hide file tree
Showing 15 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ refinedarchitect {
}

base {
archivesName.set("refinedarchitect-template-platform-common")
archivesName.set("refinedarchitect-template-common")
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.refinedmods.refinedarchitect.template.platform.common;
package com.refinedmods.refinedarchitect.template.common;

import net.minecraft.core.registries.BuiltInRegistries;
import net.minecraft.world.level.block.Blocks;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ParametersAreNonnullByDefault
package com.refinedmods.refinedarchitect.template.platform.forge;
package com.refinedmods.refinedarchitect.template.common;

import javax.annotation.ParametersAreNonnullByDefault;
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
refinedarchitect {
modId = "refinedarchitecttemplate"
fabric()
compileWithProject(project(":refinedarchitect-template-platform-common"))
compileWithProject(project(":refinedarchitect-template-common"))
publishing {
// maven = true
// curseForge = "123"
Expand All @@ -14,5 +14,5 @@ refinedarchitect {
}

base {
archivesName.set("refinedarchitect-template-platform-fabric")
archivesName.set("refinedarchitect-template-fabric")
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.refinedmods.refinedarchitect.template.platform.fabric;
package com.refinedmods.refinedarchitect.template.fabric;

import net.fabricmc.api.ClientModInitializer;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.refinedmods.refinedarchitect.template.platform.fabric;
package com.refinedmods.refinedarchitect.template.fabric;

import com.refinedmods.refinedarchitect.template.platform.common.Common;
import com.refinedmods.refinedarchitect.template.common.Common;

import net.fabricmc.api.ModInitializer;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ParametersAreNonnullByDefault
package com.refinedmods.refinedarchitect.template.platform.common;
package com.refinedmods.refinedarchitect.template.fabric;

import javax.annotation.ParametersAreNonnullByDefault;
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
"environment": "*",
"entrypoints": {
"main": [
"com.refinedmods.refinedarchitect.template.platform.fabric.ModInitializerImpl"
"com.refinedmods.refinedarchitect.template.fabric.ModInitializerImpl"
],
"client": [
"com.refinedmods.refinedarchitect.template.platform.fabric.ClientModInitializerImpl"
"com.refinedmods.refinedarchitect.template.fabric.ClientModInitializerImpl"
]
},
"custom": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
refinedarchitect {
modId = "refinedarchitecttemplate"
neoForge()
compileWithProject(project(":refinedarchitect-template-platform-common"))
compileWithProject(project(":refinedarchitect-template-common"))
publishing {
// maven = true
// curseForge = "123"
Expand All @@ -14,5 +14,5 @@ refinedarchitect {
}

base {
archivesName.set("refinedarchitect-template-platform-neoforge")
archivesName.set("refinedarchitect-template-neoforge")
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.refinedmods.refinedarchitect.template.platform.forge;
package com.refinedmods.refinedarchitect.template.forge;

import net.neoforged.bus.api.SubscribeEvent;
import net.neoforged.fml.event.lifecycle.FMLClientSetupEvent;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.refinedmods.refinedarchitect.template.platform.forge;
package com.refinedmods.refinedarchitect.template.forge;

import com.refinedmods.refinedarchitect.template.platform.common.Common;
import com.refinedmods.refinedarchitect.template.common.Common;

import net.neoforged.api.distmarker.Dist;
import net.neoforged.bus.api.IEventBus;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ParametersAreNonnullByDefault
package com.refinedmods.refinedarchitect.template.platform.fabric;
package com.refinedmods.refinedarchitect.template.forge;

import javax.annotation.ParametersAreNonnullByDefault;
6 changes: 3 additions & 3 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ pluginManagement {
}

rootProject.name = "refinedarchitect-template"
include("refinedarchitect-template-platform-common")
include("refinedarchitect-template-platform-neoforge")
include("refinedarchitect-template-platform-fabric")
include("refinedarchitect-template-common")
include("refinedarchitect-template-neoforge")
include("refinedarchitect-template-fabric")

0 comments on commit f510250

Please sign in to comment.