Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin portal redirects to JCenter but JCenter certificate is not vaild. #171

Closed
anatawa12 opened this issue Nov 26, 2022 · 1 comment
Closed
Labels
a:bug Something isn't working

Comments

@anatawa12
Copy link

anatawa12 commented Nov 26, 2022

Due to JCenter's certificates revocation, We can't use plugins from portal with dependencies from maven central.

Expected Behavior

We can download dependencies from maven central.

Current Behavior

We cannot dependencies from maven central due to jcenter's problem.

Context

This problem affected to many projects that uses Gradle Plugin Portal.

Related issues

Steps to Reproduce

I picked up the Kotlin Gradle Plugin here because I often use that, but many of plugin from plugin portal should be affected.

  1. Clear gradle cache with renaming/deleting ~/.gradle/caches
  2. Create build.gradle with the following content
  3. Run gradle
plugins {
  id "org.jetbrains.kotlin.jvm" version "1.7.21"
}

Workaround

Appending the following buildscript block before the plugins block. This block will work for both groovy and kotlin script.

buildscript {
  repositories {
    mavenCentral()
  }
}

Your Environment

$ neofetch --off --color_blocks off
anatawa12@anatawa12-book.local
------------------------------
OS: macOS 13.0 22A380 arm64
Host: MacBookPro18,4
Kernel: 22.1.0
Uptime: 1 day, 1 hour, 18 mins
Packages: 212 (brew)
Shell: zsh 5.8.1
Resolution: 3360x1890, 1800x1169, 1280x800, 1600x900
DE: Aqua
WM: Quartz Compositor
WM Theme: Blue (Light)
Terminal: iTerm2
Terminal Font: Monaco 12
CPU: Apple M1 Max
GPU: Apple M1 Max
Memory: 7436MiB / 65536MiB

$ java -version
openjdk version "1.8.0_332"
OpenJDK Runtime Environment (Zulu 8.62.0.19-CA-macos-aarch64) (build 1.8.0_332-b09)
OpenJDK 64-Bit Server VM (Zulu 8.62.0.19-CA-macos-aarch64) (build 25.332-b09, mixed mode)
$ gradle --version

------------------------------------------------------------
Gradle 7.6
------------------------------------------------------------

Build time:   2022-11-25 13:35:10 UTC
Revision:     daece9dbc5b79370cc8e4fd6fe4b2cd400e150a8

Kotlin:       1.7.10
Groovy:       3.0.13
Ant:          Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM:          1.8.0_332 (Azul Systems, Inc. 25.332-b09)
OS:           Mac OS X 13.0 aarch64

@anatawa12
Copy link
Author

Closing due to upstream fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant