Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependancy Issue - MacOS - lwjgl-freetype #75

Open
kieran-lawrence opened this issue Sep 27, 2024 · 2 comments
Open

Dependancy Issue - MacOS - lwjgl-freetype #75

kieran-lawrence opened this issue Sep 27, 2024 · 2 comments

Comments

@kieran-lawrence
Copy link

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" }
    }
}
@Yefancy
Copy link

Yefancy commented Oct 13, 2024

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

@artemisSystem
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants