Gradle Error While Running UDF Java + SQL Example in Palantir Foundry

Hey Foundry fam :waving_hand:,

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.

:magnifying_glass_tilted_left: What I’ve Tried:

  • Ensured internet connectivity :white_check_mark:
  • Checked the .yml config under transform_sql/src/main/resource/udf.yml :white_check_mark:
  • Java file seems fine, no syntax issues :white_check_mark:
  • SQL is referencing the function properly :white_check_mark:

:red_question_mark: My Questions:

  1. Is this a network issue from the Foundry backend, or do I need to configure something manually in the project?
  2. Should I define a local Gradle wrapper or force Foundry to use a specific version internally?
  3. Is there a way to bypass this error just to test my UDF logic?

Any help, suggestions, or links would be massively appreciated :folded_hands:

Thanks in advance!
– Roushan