[Build] Fix buildscripts deprecation warnings

#KTI-1221 In Progress
This commit is contained in:
Alexander.Likhachev
2023-06-07 17:58:38 +02:00
committed by Space Team
parent 1588b07472
commit 01276bbe49
4 changed files with 9 additions and 7 deletions
@@ -22,10 +22,12 @@ addBomCheckTask()
extensions.extraProperties["kotlin.stdlib.default.dependency"] = "false"
// common plugin bundle configuration
configure<PluginBundleExtension> {
website = "https://kotlinlang.org/"
vcsUrl = "https://github.com/jetbrains/kotlin"
tags = listOf("kotlin")
gradlePlugin {
website.set("https://kotlinlang.org/")
vcsUrl.set("https://github.com/jetbrains/kotlin")
plugins.configureEach {
tags.add("kotlin")
}
}
publishing {
@@ -5816,7 +5816,7 @@ Task pluginTest(String name, String pluginName, Closure configureClosure) {
from {
sourceSets[pluginName].output
}
baseName = pluginName
archiveBaseName = pluginName
destinationDirectory = buildDir
}
def taskName = "$name-with-$pluginName"
+1 -1
View File
@@ -38,7 +38,7 @@ task preparePublication {
project.ext.isDeployStagingRepoGenerationRequired = project.ext.isSonatypeRelease && deployUrlFromParameters == null
ext.repoUrl = deployUrlFromParameters ?: "file://${rootProject.buildDir}/repo".toString()
ext.repoUrl = (deployUrlFromParameters ?: "file://${rootProject.buildDir}/repo").toString()
logger.info("Deployment repository preliminary url: ${ext.repoUrl} ($repoProvider)")
ext.username = properties["deployRepoUsername"] ?: properties["kotlin.${repoProvider}.user"]
+1 -1
View File
@@ -25,7 +25,7 @@ sourceSets {
}
fun runPillTask(taskName: String) {
val jarFile = configurations.archives.artifacts.single { it.type == "jar" }.file
val jarFile = configurations.archives.get().artifacts.single { it.type == "jar" }.file
val cl = URLClassLoader(arrayOf(jarFile.toURI().toURL()), (object {}).javaClass.classLoader)
val pillImporterClass = Class.forName("org.jetbrains.kotlin.pill.PillImporter", true, cl)