Gradle build fails on Mac OS

Hi,

I have a workflow that tests the build on different OSes.

https://github.com/reactor/reactor-netty/actions/runs/57443581

The build is not OK on MAC OS and fails with the log below (the build does not fail on the other OSes)

> Could not resolve all dependencies for configuration ':compile'.
   > Could not resolve io.netty:netty-handler-proxy:4.1.48.Final-SNAPSHOT.
     Required by:
         project :
      > Could not resolve io.netty:netty-handler-proxy:4.1.48.Final-SNAPSHOT.
         > Unable to load Maven meta-data from https://oss.sonatype.org/content/repositories/snapshots/io/netty/netty-handler-proxy/4.1.48.Final-SNAPSHOT/maven-metadata.xml.
            > Could not get resource 'https://oss.sonatype.org/content/repositories/snapshots/io/netty/netty-handler-proxy/4.1.48.Final-SNAPSHOT/maven-metadata.xml'.
               > Could not GET 'https://oss.sonatype.org/content/repositories/snapshots/io/netty/netty-handler-proxy/4.1.48.Final-SNAPSHOT/maven-metadata.xml'. Received status code 403 from server: Forbidden
      > Could not resolve io.netty:netty-handler-proxy:4.1.48.Final-SNAPSHOT.
         > Unable to load Maven meta-data from https://oss.sonatype.org/content/repositories/releases/io/netty/netty-handler-proxy/4.1.48.Final-SNAPSHOT/maven-metadata.xml.
            > Could not get resource 'https://oss.sonatype.org/content/repositories/releases/io/netty/netty-handler-proxy/4.1.48.Final-SNAPSHOT/maven-metadata.xml'.
               > Could not GET 'https://oss.sonatype.org/content/repositories/releases/io/netty/netty-handler-proxy/4.1.48.Final-SNAPSHOT/maven-metadata.xml'. Received status code 403 from server: Forbidden

What could be the problem?

Thanks,
Violeta

Hi @violetagg ,

This is due to macOS hosted runner ip is blocked by Maven center, and now they have re-enabled the ip.

I forked your repo and the issue is gone on my side.  Please check your workflow for confirmation.

Here is my answer in similar ticket.

Thanks.

It is working now

Thanks

Hi, I seem to be having the exact same problem. Is there a way I could check if the Mac’s IP is blocked and/or unblock it myself? Also I’m quite new to the Gradle world, how does one “enable Gradle caching on their workflow”? Thanks in advance for the help!