GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Update to archloom 1.3.polyfrost.3 / pgt 0.2.9 / oneconfig v0.2.1 · Intiiii/OneConfigExampleMod@8b8ea57

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • build.gradle.kts
  • gradle/wrapper
    • gradle-wrapper.properties
  • root.gradle.kts
  • settings.gradle.kts
  • src/main
    • java/org/polyfrost/example
      • ExampleMod.java
      • command
        • ExampleCommand.java
      • config
        • TestConfig.java
      • hud
        • TestHud.java
      • mixin
        • MinecraftMixin.java
    • resources
      • mixins.examplemod.json
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎build.gradle.kts‎

Copy file name to clipboardExpand all lines: build.gradle.kts
+18-19Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
@file:Suppress("UnstableApiUsage", "PropertyName")
22

3-
import cc.polyfrost.gradle.util.noServerRunConfigs
3+
import org.polyfrost.gradle.util.noServerRunConfigs
44
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
55

66
// Adds support for kotlin, and adds the Polyfrost Gradle Toolkit
77
// which we use to prepare the environment.
88
plugins {
99
kotlin("jvm")
10-
id("cc.polyfrost.multi-version")
11-
id("cc.polyfrost.defaults.repo")
12-
id("cc.polyfrost.defaults.java")
13-
id("cc.polyfrost.defaults.loom")
10+
id("org.polyfrost.multi-version")
11+
id("org.polyfrost.defaults.repo")
12+
id("org.polyfrost.defaults.java")
13+
id("org.polyfrost.defaults.loom")
1414
id("com.github.johnrengelman.shadow")
15-
id("net.kyori.blossom") version "1.3.0"
15+
id("net.kyori.blossom") version "1.3.1"
1616
id("signing")
1717
java
1818
}
@@ -38,7 +38,7 @@ blossom {
3838
version = mod_version
3939
// Sets the group, make sure to change this to your own. It can be a website you own backwards or your GitHub username.
4040
// e.g. com.github.<your username> or com.<your domain>
41-
group = "cc.polyfrost"
41+
group = "org.polyfrost"
4242

4343
// Sets the name of the output jar (the one you put in your mods folder and send to other people)
4444
// It outputs all versions of the mod into the `build` directory.
@@ -52,16 +52,13 @@ loom {
5252
// If you're developing a server-side mod, you can remove this line.
5353
noServerRunConfigs()
5454

55-
// Adds the tweak class if we are building legacy version of forge as per the documentation (https://docs.polyfrost.cc)
55+
// Adds the tweak class if we are building legacy version of forge as per the documentation (https://docs.polyfrost.org)
5656
if (project.platform.isLegacyForge) {
57-
launchConfigs.named("client") {
58-
arg("--tweakClass", "cc.polyfrost.oneconfig.loader.stage0.LaunchWrapperTweaker")
59-
60-
// This is enabled so OneConfig can read our Mixins and automatically apply them.
61-
property(
62-
"mixin.debug.export",
63-
"true"
64-
)
57+
runConfigs {
58+
"client" {
59+
programArgs("--tweakClass", "cc.polyfrost.oneconfig.loader.stage0.LaunchWrapperTweaker")
60+
property("mixin.debug.export", "true")
61+
}
6562
}
6663
}
6764
// Configures the mixins if we are building for forge, useful for when we are dealing with cross-platform projects.
@@ -88,13 +85,15 @@ sourceSets {
8885

8986
// Adds the Polyfrost maven repository so that we can get the libraries necessary to develop the mod.
9087
repositories {
91-
maven("https://repo.polyfrost.cc/releases")
88+
maven("https://repo.polyfrost.org/releases")
9289
}
9390

9491
// Configures the libraries/dependencies for your mod.
9592
dependencies {
9693
// Adds the OneConfig library, so we can develop with it.
97-
modCompileOnly("cc.polyfrost:oneconfig-$platform:0.2.0-alpha+")
94+
modCompileOnly("cc.polyfrost:oneconfig-$platform:0.2.1-alpha+")
95+
96+
modRuntimeOnly("me.djtheredstoner:DevAuth-${if (platform.isFabric) "fabric" else if (platform.isLegacyForge) "forge-legacy" else "forge-latest"}:1.1.2")
9897

9998
// If we are building for legacy forge, includes the launch wrapper with `shade` as we configured earlier.
10099
if (platform.isLegacyForge) {
@@ -172,7 +171,7 @@ tasks {
172171
}
173172

174173
remapJar {
175-
input.set(shadowJar.get().archiveFile)
174+
inputFile.set(shadowJar.get().archiveFile)
176175
archiveClassifier.set("")
177176
}
178177

Collapse file

‎gradle/wrapper/gradle-wrapper.properties‎

Copy file name to clipboardExpand all lines: gradle/wrapper/gradle-wrapper.properties
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME
Collapse file

‎root.gradle.kts‎

Copy file name to clipboardExpand all lines: root.gradle.kts
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
2-
kotlin("jvm") version "1.6.21" apply false
3-
id("cc.polyfrost.multi-version.root")
2+
kotlin("jvm") version "1.8.22" apply false
3+
id("org.polyfrost.multi-version.root")
44
id("com.github.johnrengelman.shadow") version "7.1.2" apply false
55
}
66

Collapse file

‎settings.gradle.kts‎

Copy file name to clipboardExpand all lines: settings.gradle.kts
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ pluginManagement {
44
repositories {
55
gradlePluginPortal()
66
mavenCentral()
7-
maven("https://repo.polyfrost.cc/releases") // Adds the Polyfrost maven repository to get Polyfrost Gradle Toolkit
7+
maven("https://repo.polyfrost.org/releases") // Adds the Polyfrost maven repository to get Polyfrost Gradle Toolkit
88
}
99
plugins {
10-
val pgtVersion = "0.1.28" // Sets the default versions for Polyfrost Gradle Toolkit
11-
id("cc.polyfrost.multi-version.root") version pgtVersion
10+
val pgtVersion = "0.2.9" // Sets the default versions for Polyfrost Gradle Toolkit
11+
id("org.polyfrost.multi-version.root") version pgtVersion
1212
}
1313
}
1414

Collapse file

‎…ava/cc/polyfrost/example/ExampleMod.java‎ ‎…va/org/polyfrost/example/ExampleMod.java‎src/main/java/cc/polyfrost/example/ExampleMod.java renamed to src/main/java/org/polyfrost/example/ExampleMod.java src/main/java/cc/polyfrost/example/ExampleMod.java renamed to src/main/java/org/polyfrost/example/ExampleMod.java

Copy file name to clipboardExpand all lines: src/main/java/org/polyfrost/example/ExampleMod.java
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
package cc.polyfrost.example;
1+
package org.polyfrost.example;
22

3-
import cc.polyfrost.example.command.ExampleCommand;
4-
import cc.polyfrost.example.config.TestConfig;
3+
import org.polyfrost.example.command.ExampleCommand;
4+
import org.polyfrost.example.config.TestConfig;
55
import cc.polyfrost.oneconfig.events.event.InitializationEvent;
66
import net.minecraftforge.fml.common.Mod;
77
import cc.polyfrost.oneconfig.utils.commands.CommandManager;
Collapse file

‎…rost/example/command/ExampleCommand.java‎ ‎…rost/example/command/ExampleCommand.java‎src/main/java/cc/polyfrost/example/command/ExampleCommand.java renamed to src/main/java/org/polyfrost/example/command/ExampleCommand.java src/main/java/cc/polyfrost/example/command/ExampleCommand.java renamed to src/main/java/org/polyfrost/example/command/ExampleCommand.java

Copy file name to clipboardExpand all lines: src/main/java/org/polyfrost/example/command/ExampleCommand.java
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
package cc.polyfrost.example.command;
1+
package org.polyfrost.example.command;
22

3-
import cc.polyfrost.example.ExampleMod;
3+
import org.polyfrost.example.ExampleMod;
44
import cc.polyfrost.oneconfig.utils.commands.annotations.Command;
55
import cc.polyfrost.oneconfig.utils.commands.annotations.Main;
66

Collapse file

‎…polyfrost/example/config/TestConfig.java‎ ‎…polyfrost/example/config/TestConfig.java‎src/main/java/cc/polyfrost/example/config/TestConfig.java renamed to src/main/java/org/polyfrost/example/config/TestConfig.java src/main/java/cc/polyfrost/example/config/TestConfig.java renamed to src/main/java/org/polyfrost/example/config/TestConfig.java

Copy file name to clipboardExpand all lines: src/main/java/org/polyfrost/example/config/TestConfig.java
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
package cc.polyfrost.example.config;
1+
package org.polyfrost.example.config;
22

3-
import cc.polyfrost.example.ExampleMod;
4-
import cc.polyfrost.example.hud.TestHud;
3+
import org.polyfrost.example.ExampleMod;
4+
import org.polyfrost.example.hud.TestHud;
55
import cc.polyfrost.oneconfig.config.Config;
66
import cc.polyfrost.oneconfig.config.annotations.Dropdown;
77
import cc.polyfrost.oneconfig.config.annotations.HUD;
Collapse file

‎…va/cc/polyfrost/example/hud/TestHud.java‎ ‎…a/org/polyfrost/example/hud/TestHud.java‎src/main/java/cc/polyfrost/example/hud/TestHud.java renamed to src/main/java/org/polyfrost/example/hud/TestHud.java src/main/java/cc/polyfrost/example/hud/TestHud.java renamed to src/main/java/org/polyfrost/example/hud/TestHud.java

Copy file name to clipboardExpand all lines: src/main/java/org/polyfrost/example/hud/TestHud.java
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
package cc.polyfrost.example.hud;
1+
package org.polyfrost.example.hud;
22

33
import cc.polyfrost.oneconfig.hud.SingleTextHud;
4+
import org.polyfrost.example.config.TestConfig;
45

56
/**
67
* An example OneConfig HUD that is started in the config and displays text.
78
*
8-
* @see cc.polyfrost.example.config.TestConfig#hud
9+
* @see TestConfig#hud
910
*/
1011
public class TestHud extends SingleTextHud {
1112
public TestHud() {
Collapse file

‎…yfrost/example/mixin/MinecraftMixin.java‎ ‎…yfrost/example/mixin/MinecraftMixin.java‎src/main/java/cc/polyfrost/example/mixin/MinecraftMixin.java renamed to src/main/java/org/polyfrost/example/mixin/MinecraftMixin.java src/main/java/cc/polyfrost/example/mixin/MinecraftMixin.java renamed to src/main/java/org/polyfrost/example/mixin/MinecraftMixin.java

Copy file name to clipboardExpand all lines: src/main/java/org/polyfrost/example/mixin/MinecraftMixin.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package cc.polyfrost.example.mixin;
1+
package org.polyfrost.example.mixin;
22

33
import net.minecraft.client.Minecraft;
44
import org.spongepowered.asm.mixin.Mixin;
Collapse file

‎src/main/resources/mixins.examplemod.json‎

Copy file name to clipboardExpand all lines: src/main/resources/mixins.examplemod.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compatibilityLevel": "JAVA_8",
33
"minVersion": "0.7",
4-
"package": "cc.polyfrost.example.mixin",
4+
"package": "org.polyfrost.example.mixin",
55
"refmap": "mixins.examplemod.refmap.json",
66
"injectors": {
77
"maxShiftBy": 5

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.