Hey Foundry fam ,
I’m currently working on an example using User-Defined Functions (UDFs) in Palantir Foundry where I’m combining Java logic (myUDF.java
) with a SQL transform (my.sql
). The setup involves:
- Java UDF at:
transform_java/src/main/java/myproject/myUDF.java
- SQL using it at:
transform_sql/src/main/resource/sql/my.sql
However, I’m running into a Gradle-related error while running the task. Below is the error message:
CopyEdit
Resolving Gradle dependencies
org.gradle.tooling.GradleConnectionException: Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradle-7.4.2-bin.zip'.
It seems like Foundry is failing to download the Gradle wrapper from the specified URL. Full screenshot attached.
What I’ve Tried:
- Ensured internet connectivity
- Checked the
.yml
config undertransform_sql/src/main/resource/udf.yml
- Java file seems fine, no syntax issues
- SQL is referencing the function properly
My Questions:
- Is this a network issue from the Foundry backend, or do I need to configure something manually in the project?
- Should I define a local Gradle wrapper or force Foundry to use a specific version internally?
- Is there a way to bypass this error just to test my UDF logic?
Any help, suggestions, or links would be massively appreciated
Thanks in advance!
– Roushan