// build.gradle
plugins {
    id "org.springframework.boot" version "2.5.6"
}

repositories {
    mavenLocal()
    maven {
        credentials {
            username getProperty('NEXUS_USERNAME')
            password getProperty('NEXUS_PASSWORD')
        }
        url "${getProperty('NEXUS_URL')}/content/groups/public"
    }
    mavenCentral()
}

Results in:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'royalty-report-service'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not resolve org.springframework.boot:spring-boot-buildpack-platform:2.5.6.
     Required by:
         project : > org.springframework.boot:org.springframework.boot.gradle.plugin:2.5.6 > org.springframework.boot:spring-boot-gradle-plugin:2.5.6
      > Could not resolve org.springframework.boot:spring-boot-buildpack-platform:2.5.6.
         > Could not get resource 'https://plugins.gradle.org/m2/org/springframework/boot/spring-boot-buildpack-platform/2.5.6/spring-boot-buildpack-platform-2.5.6.pom'.
            > Could not GET 'https://jcenter.bintray.com/org/springframework/boot/spring-boot-buildpack-platform/2.5.6/spring-boot-buildpack-platform-2.5.6.pom'.
               > PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
   > Could not resolve org.springframework.boot:spring-boot-loader-tools:2.5.6.
     Required by:
         project : > org.springframework.boot:org.springframework.boot.gradle.plugin:2.5.6 > org.springframework.boot:spring-boot-gradle-plugin:2.5.6
      > Could not resolve org.springframework.boot:spring-boot-loader-tools:2.5.6.
         > Could not get resource 'https://plugins.gradle.org/m2/org/springframework/boot/spring-boot-loader-tools/2.5.6/spring-boot-loader-tools-2.5.6.pom'.
            > Could not GET 'https://jcenter.bintray.com/org/springframework/boot/spring-boot-loader-tools/2.5.6/spring-boot-loader-tools-2.5.6.pom'.

... and so on...

Poms like https://plugins.gradle.org/m2/org/springframework/boot/spring-boot-buildpack-platform/2.5.6/spring-boot-buildpack-platform-2.5.6.pom end up with a redirect to Bintray.

Comment From: bclozel

It looks like the invalid bintray certificate just got renewed. As for the underlying problem here, there's not so much we can do here - please follow up on the official Gradle forums.

Comment From: dmitriid

@bclozel Thank you! I didn't realize it was an issue with Bintray until I posted this issue.

It's still a bit weird it redirects to Bintray because I vaguely remember that spring boot plugin is no longer published there.