From 7265b7479a824f9e8e9b36d6b05fe2b900c7656a Mon Sep 17 00:00:00 2001 From: Ayoree Date: Mon, 16 Feb 2026 22:24:57 +0700 Subject: [PATCH 1/2] Added note for building with VS Code Updated IDE configuration notes for Eclipse and VS Code users to clarify additional setup requirements. --- owo/config/getting-started.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/owo/config/getting-started.md b/owo/config/getting-started.md index 3282ad6..29e60a1 100644 --- a/owo/config/getting-started.md +++ b/owo/config/getting-started.md @@ -55,15 +55,21 @@ public class MyModInitializer implements ModInitializer { } ``` -::: info Note for Eclipse IDE users -If you are using Eclipse IDE, you will need to do some additional configuration to get the generated class to register. +::: info Note for `Eclipse` and `VS Code` IDE users. +If you are using one of this IDE's, you will need to do some additional configuration to get the generated class to register. In your build.gradle, add the following: +##### Eclipse: ```groovy sourceSets.main.java.srcDirs += [ 'src/main/generatedJava' ] compileJava.options.generatedSourceOutputDirectory = file("${projectDir}/src/main/generatedJava/") ``` +##### VS Code: +```groovy +sourceSets.main.java.srcDirs += [ 'build/generated/sources/annotationProcessor/java/main' ] +compileJava.options.generatedSourceOutputDirectory = file("${projectDir}/build/generated/sources/annotationProcessor/java/main/") +``` -This will ensure that the generated class ends up the correct directory, and that it gets picked up by Eclipse. Just make sure to replace `` with the path of your `ConfigModel`'s package. For example if your `ConfigModel` class is at: `com.example.config.MyConfigModel`, you would use `com/example/config`. +This will ensure that the generated class ends up the correct directory, and that it gets picked up by your IDE. Just make sure to replace `` with the path of your `ConfigModel`'s package. For example if your `ConfigModel` class is at: `com.example.config.MyConfigModel`, you would use `com/example/config`. ::: And that's it! You can now use your config values everywhere. From 6e3eba696756d9abe04336c9e58de2e22938c99a Mon Sep 17 00:00:00 2001 From: Ayoree Date: Mon, 16 Feb 2026 22:27:39 +0700 Subject: [PATCH 2/2] Update owo/config/getting-started.md Co-authored-by: Noaaan --- owo/config/getting-started.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/owo/config/getting-started.md b/owo/config/getting-started.md index 29e60a1..2cb2af1 100644 --- a/owo/config/getting-started.md +++ b/owo/config/getting-started.md @@ -56,7 +56,7 @@ public class MyModInitializer implements ModInitializer { ``` ::: info Note for `Eclipse` and `VS Code` IDE users. -If you are using one of this IDE's, you will need to do some additional configuration to get the generated class to register. +If you are using one of these IDE's, you will need to do some additional configuration to get the generated class to register. In your build.gradle, add the following: ##### Eclipse: ```groovy