commit 16b8315b7e66dc9751d64b77e48a1bbed8290e7d Author: EliteMasterEric Date: Sat Nov 25 01:43:52 2023 -0500 Hello world app diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..c5f3f6b --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "java.configuration.updateBuildConfiguration": "interactive" +} \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle new file mode 100644 index 0000000..7f753ef --- /dev/null +++ b/app/build.gradle @@ -0,0 +1,46 @@ +/* + * This file contains a sample Java application project. + */ + +plugins { + // Apply the application plugin to add support for building a CLI application in Java. + id 'application' +} + +repositories { + // Maven Central for core dependencies + mavenCentral() +} + + +version = '1.0.0' +group = "com.elitemastereric" +archivesBaseName = "helloworld" + +sourceCompatibility = JavaVersion.VERSION_16 +targetCompatibility = JavaVersion.VERSION_16 + +dependencies { + implementation "com.google.guava:guava:21.0" +} + +application { + // Define the main class for the application. + mainClass = 'com.elitemastereric.helloworld.Launch' +} + +jar { + manifest { + // Define main class for use with java -jar + attributes( + 'Main-Class': application.mainClass + ) + } +} + +task buildAndCopy(type: Copy) { + group 'build' + dependsOn 'assemble' + from "build/libs/" + into "../run/" +} \ No newline at end of file diff --git a/app/src/main/java/com/elitemastereric/helloworld/Launch.java b/app/src/main/java/com/elitemastereric/helloworld/Launch.java new file mode 100644 index 0000000..43fb5a3 --- /dev/null +++ b/app/src/main/java/com/elitemastereric/helloworld/Launch.java @@ -0,0 +1,8 @@ +package com.elitemastereric.helloworld; + +public class Launch { + public static void main(String[] args) { + Main main = new Main(); + main.execute(); + } +} diff --git a/app/src/main/java/com/elitemastereric/helloworld/Main.java b/app/src/main/java/com/elitemastereric/helloworld/Main.java new file mode 100644 index 0000000..ce2149a --- /dev/null +++ b/app/src/main/java/com/elitemastereric/helloworld/Main.java @@ -0,0 +1,17 @@ +package com.elitemastereric.helloworld; + +public class Main { + public Main() {} + + public void execute() { + System.out.println(getGreeting()); + } + + /* + * Returns a greeting. + * This is the function which will act as the target of our Mixin. + */ + public String getGreeting() { + return "Hello World!"; + } +} diff --git a/app/src/main/java/com/elitemastereric/helloworld/README.md b/app/src/main/java/com/elitemastereric/helloworld/README.md new file mode 100644 index 0000000..809566d --- /dev/null +++ b/app/src/main/java/com/elitemastereric/helloworld/README.md @@ -0,0 +1 @@ +This is the app which is the target for the mod loader. \ No newline at end of file