Skip to content

Commit

Permalink
Update project, use tags
Browse files Browse the repository at this point in the history
  • Loading branch information
ACGaming committed May 27, 2024
1 parent 3f7c9a4 commit f1ee81e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
11 changes: 6 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
id 'maven-publish'
id 'org.jetbrains.gradle.plugin.idea-ext' version '1.1.7'
id 'eclipse'
id 'com.gtnewhorizons.retrofuturagradle' version '1.3.33'
id 'com.gtnewhorizons.retrofuturagradle' version '1.3.35'
id 'com.matthewprenger.cursegradle' version '1.4.0'
}

Expand Down Expand Up @@ -66,11 +66,11 @@ minecraft {
// Add any properties you want to swap out for a dynamic value at build time here
// Any properties here will be added to a class at build time, the name can be configured below
// Example:
// injectedTags.put('VERSION', project.version)
// injectedTags.put('MOD_ID', project.archives_base_name)
injectedTags.put('VERSION', project.version)
injectedTags.put('MOD_ID', project.mod_id)
}

// Generate a group.archives_base_name.Tags class
// Generate a group.mod_id.Tags class
tasks.injectTags.configure {
// Change Tags class' name here:
outputClassName.set("${project.group}.${project.mod_id}.Tags")
Expand Down Expand Up @@ -105,6 +105,7 @@ dependencies {
}
if (project.use_mixins.toBoolean()) {
implementation 'zone.rong:mixinbooter:9.1'
implementation 'com.cleanroommc:configanytime:3.0'
}

// Example of deobfuscating a dependency
Expand All @@ -116,7 +117,7 @@ dependencies {

if (project.use_mixins.toBoolean()) {
// Change your mixin refmap name here:
String mixin = modUtils.enableMixins('org.spongepowered:mixin:0.8.3', "mixins.${project.mod_id}.refmap.json")
String mixin = modUtils.enableMixins('zone.rong:mixinbooter:9.1', "mixins.${project.mod_id}.refmap.json")
api(mixin) {
transitive = false
}
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ org.gradle.jvmargs = -Xmx3G

# Mod Information
mod_id = crimsonrevelations
mod_version = 1.0
maven_group = com.icarus
mod_version = 1.0.0
maven_group = mod.icarus
archives_base_name = New-Crimson-Revelations

# If any properties changes below this line, run `gradlew setupDecompWorkspace` and refresh gradle again to ensure everything is working correctly.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

@Mod(modid = CrimsonRevelations.MODID, name = CrimsonRevelations.NAME, version = CrimsonRevelations.VERSION, dependencies = CrimsonRevelations.DEPENDENCIES)
public class CrimsonRevelations {
public static final String MODID = "crimsonrevelations";
public static final String MODID = Tags.MOD_ID;
public static final String NAME = "New Crimson Revelations";
public static final String VERSION = "1.0";
public static final String VERSION = Tags.VERSION;
public static final String DEPENDENCIES = "required-after:mixinbooter@[8.0,);required-after:thaumcraft@[1.12.2-6.1.BETA26,);after:thaumicaugmentation";
public static final CreativeTabs tabCR = new CRCreativeTabs(CreativeTabs.CREATIVE_TAB_ARRAY.length, "CrimsonRevelationsTab");

Expand Down

0 comments on commit f1ee81e

Please sign in to comment.