[Build] Fix buildscripts deprecation warnings
#KTI-1221 In Progress
This commit is contained in:
committed by
Space Team
parent
1588b07472
commit
01276bbe49
@@ -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"
|
||||
|
||||
@@ -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"]
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user