MultiLoader-Template icon indicating copy to clipboard operation
MultiLoader-Template copied to clipboard

Dependancy Issue - MacOS - `lwjgl-freetype`

Open kieran-lawrence opened this issue 1 year ago • 2 comments

Hello!

When trying to build the project in IntelliJ I hit the following issue:

Could not find lwjgl-freetype-3.3.3-natives-macos-patch.jar (org.lwjgl:lwjgl-freetype:3.3.3).
Searched in the following locations:
    https://repo.maven.apache.org/maven2/org/lwjgl/lwjgl-freetype/3.3.3/lwjgl-freetype-3.3.3-natives-macos-patch.jar

Looks like this was a temporary patch as the file is no longer available. Possible solution might be to update the gradle version.

If anyone else runs into this issue (guessing it's MacOS only by the filename 😜) I managed to get past it by adding the following to the root build.gradle

subprojects {
    apply plugin: 'java'
    apply plugin: 'idea'
    apply plugin: 'java-library'

    repositories {
        // Fix issue with lwjgl-freetype not being found on macOS / ForgeGradle issue
        //
        // Could not resolve all files for configuration ':_compileJava_1'.
        // Could not find lwjgl-freetype-3.3.3-natives-macos-patch.jar (org.lwjgl:lwjgl-freetype:3.3.3).
        maven {
            url "https://libraries.minecraft.net"
            content {
                includeModule("org.lwjgl", "lwjgl-freetype")
            }
        }
        mavenCentral()
        maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
        maven { url "https://repo.lucko.me/" }
        maven { url "https://jitpack.io" }
    }
}

kieran-lawrence avatar Sep 27 '24 06:09 kieran-lawrence

Hello!

When trying to build the project in IntelliJ I hit the following issue:

Could not find lwjgl-freetype-3.3.3-natives-macos-patch.jar (org.lwjgl:lwjgl-freetype:3.3.3).
Searched in the following locations:
    https://repo.maven.apache.org/maven2/org/lwjgl/lwjgl-freetype/3.3.3/lwjgl-freetype-3.3.3-natives-macos-patch.jar

Looks like this was a temporary patch as the file is no longer available. Possible solution might be to update the gradle version.

If anyone else runs into this issue (guessing it's MacOS only by the filename 😜) I managed to get past it by adding the following to the root build.gradle

subprojects {
    apply plugin: 'java'
    apply plugin: 'idea'
    apply plugin: 'java-library'

    repositories {
        // Fix issue with lwjgl-freetype not being found on macOS / ForgeGradle issue
        //
        // Could not resolve all files for configuration ':_compileJava_1'.
        // Could not find lwjgl-freetype-3.3.3-natives-macos-patch.jar (org.lwjgl:lwjgl-freetype:3.3.3).
        maven {
            url "https://libraries.minecraft.net"
            content {
                includeModule("org.lwjgl", "lwjgl-freetype")
            }
        }
        mavenCentral()
        maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
        maven { url "https://repo.lucko.me/" }
        maven { url "https://jitpack.io" }
    }
}

you does my man

Yefancy avatar Oct 13 '24 13:10 Yefancy

This doesn't fix it for me (in my project, at least), but the weirdest thing is that this issue only shows up when building in intellij, not when i run ./gradlew build from the command line.

artemisSystem avatar Oct 16 '24 06:10 artemisSystem