Skip to content

Commit

Permalink
Add a dummy RFB plugin to allow classes to be used earlier in the loa…
Browse files Browse the repository at this point in the history
…ding process (#37)

* Add a dummy RFB plugin to allow classes to be used earlier in the loading process

* Remove useless buildscript version comment
  • Loading branch information
eigenraven authored Feb 28, 2024
1 parent f6f9939 commit a0dad2c
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 7 deletions.
5 changes: 0 additions & 5 deletions build.gradle

This file was deleted.

11 changes: 11 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

plugins {
id("com.gtnewhorizons.gtnhconvention")
}

tasks.processResources {
inputs.property("version", project.version.toString())
filesMatching("META-INF/rfb-plugin/*") {
expand("version" to project.version.toString())
}
}
2 changes: 2 additions & 0 deletions dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ dependencies {
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
testRuntimeOnly("org.junit.vintage:junit-vintage-engine")

compileOnly("com.gtnewhorizons.retrofuturabootstrap:RetroFuturaBootstrap:0.4.0") { transitive = false }

compileOnly('org.jetbrains:annotations:24.0.1')
compileOnly("org.projectlombok:lombok:1.18.22") {transitive = false }
annotationProcessor("org.projectlombok:lombok:1.18.22")
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/gtnewhorizon/gtnhlib/core/GTNHLibCore.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
public class GTNHLibCore implements IFMLLoadingPlugin {

/*
* Doesn't currently do anything, other than force the mod to load with coremods so Hodgepodge can use it's
* functions in mixins/asm
* Doesn't currently do anything, other than force the mod to load with coremods so Hodgepodge can use its functions
* in mixins/asm
*/
@Override
public String[] getASMTransformerClass() {
Expand Down
10 changes: 10 additions & 0 deletions src/main/java/com/gtnewhorizon/gtnhlib/rfb/GTNHLibRfbPlugin.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.gtnewhorizon.gtnhlib.rfb;

import com.gtnewhorizons.retrofuturabootstrap.api.RfbPlugin;

public class GTNHLibRfbPlugin implements RfbPlugin {
/*
* Doesn't currently do anything, other than force the mod to load with RFB plugins so Angelica can use its
* functions in mixins/asm
*/
}
9 changes: 9 additions & 0 deletions src/main/resources/META-INF/rfb-plugin/gtnhlib.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name=GTNHLib
version=${version}
additionalVersions=
className=com.gtnewhorizon.gtnhlib.rfb.GTNHLibRfbPlugin
transformerExclusions=
versionConstraints=
loadBefore=
loadAfter=
loadRequires=

0 comments on commit a0dad2c

Please sign in to comment.