can not resolve plugin artifact .foojay-resolver-convention in Oracle Linux
Hi there,
I encountered one error when I build my app in Oracle Linux (9.2 or 9.3) with openJDK 21
env: gradle: 8.6 java: 21 os: Oracle Linux 9.2
Here is my settings.gradle
plugins {
id "org.gradle.toolchains.foojay-resolver-convention" version "0.8.0"
}
rootProject.name = 'one'
include 'one-api-app'
include 'one-web-app'
include 'one-common'
How to reproduce:
step 1: gradle init (multiple subproject) step2: gradle build
Settings file '/opt/XXXX/data/settings.gradle' line: 10
- What went wrong: Plugin [id: 'org.gradle.toolchains.foojay-resolver-convention', version: '0.7.0'] was not found in any of the following sources:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'org.gradle.toolchains.foojay-resolver-convention:org.gradle.toolchains.foojay-resolver-convention.gradle.plugin:0.7.0') Searched in the following repositories: Gradle Central Plugin Repository
- Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. Get more help at https://help.gradle.org.
Check your proxy settings. I am trying to build it offline and that's when it throws an error
This effectively looks like a network error in reaching the Gradle plugin portal.
Running with --stacktrace and/or --info should give you more information to understand the underlying exception.
There is nothing that can be done from this plugin, as Gradle fails before resolving it.