Unable to add Gradle include

IDE: Fire
Version: 10.0.0.2385
Target: Java
Description:
I have manually added a Gradle package in the project and, when trying to build it, I get the following error:

HTTP Error 404 trying to load 'https://maven.google.com/io/javalin/javalin/maven%2Dmetadata.xml'
HTTP Error 0 trying to load 'https://repo1.maven.org/maven2/io/javalin/javalin/maven%2Dmetadata.xml'
HTTP Error 0 trying to load 'https://jcenter.bintray.com/io/javalin/javalin/maven%2Dmetadata.xml'
E: Gradle package io.javalin:javalin Version 2.7.0 not found in any repositories.

When manually loading the 2nd link in Firefox, I get a proper XML with 2.7.0 being the latest version.

Steps:
Create a new Java Console project, open the .elements file in a text editor and add <GradleReference Include="io.javalin:javalin:2.7.0" /> inside the proper <ItemGroup>.

Curious. we had some issues with HTTP Error 0 a while back, but those should be fixed in 2385. I’ll have a look. thanx!

1 Like

Ok, turns out the “HTTP Error 0” (as I can reproduce it) is a badly reported Timeout. I’ve fixed the error reporting for that. That said, for me the second repo times out, but the package is found ok in the third one.

Problem is, it still fails because that package has some badly format version numbers that EBuild did not handle (2.0.3.R3 vs 2.0.3R0, note the extra ., and one just called m1 which afaik isn’t valid).

I have made the version code more robust so it handles the extra . and just ignored invalid version specs. If you would like I can send you a new build later today, and we can see if the also narrows down or fixes there HTTP Error 0 for you?

What’s your account name on remobjects.com?

—marc

Uploaded a new build to your Personal Downloads folder. Check out https://docs.elementscompiler.com/Fire/Setup/Mac/ExternalCompiler/ for steps on how to make Fire use a newer external compiler. (Friday’s build will also have this fix integrated with the shipping Fire, of course).

yours,
marc

I can’t really setup the external compiler. Where could I find the Friday build of Fire?

I’ve uploaded Friday’s Fire build to your Personal Downloads folder, now.

If I may ask, what problems did you run into with the external compiler?

thanx,
marc