[kotlin] Stop using the kotlinIdeRepository when downloading JPS artifacts

^KTIJ-31806 fixed


(cherry picked from commit 24be1de8c33ce982c687cea465788b734e2cd89a)

IJ-CR-148096

GitOrigin-RevId: 43fb2db2bbdfde8fbf4788aabcde5f90e8725502
This commit is contained in:
Frederik Haselmeier
2024-10-29 15:59:10 +01:00
committed by intellij-monorepo-bot
parent e020e4a58b
commit 80f8eaa8d0

View File

@@ -1,7 +1,6 @@
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.kotlin.idea.compiler.configuration
import com.intellij.jarRepository.RemoteRepositoryDescription
import com.intellij.openapi.progress.ProgressIndicator
import com.intellij.openapi.project.Project
import com.intellij.openapi.util.NlsContexts
@@ -16,12 +15,6 @@ internal class LazyKotlinMavenArtifactDownloader(
private val artifactIsPom: Boolean = false,
) : AbstractLazyFileOutputProducer<Unit, DownloadContext>("${this::class.java.name}-$artifactId-$version") {
private val kotlinIdeRepository = RemoteRepositoryDescription(
/* id = */ "KotlinIDE-Plug",
/* name = */ "KotlinIDE-Plugin Repository",
/* url = */ "https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-ide-plugin-dependencies/"
)
override fun produceOutput(input: Unit, computationContext: DownloadContext): List<File> {
computationContext.indicator.text = computationContext.indicatorDownloadText
return KotlinArtifactsDownloader.downloadMavenArtifacts(
@@ -30,7 +23,7 @@ internal class LazyKotlinMavenArtifactDownloader(
computationContext.project,
computationContext.indicator,
artifactIsPom,
listOf(kotlinIdeRepository)
listOf()
)
}