Publish kotlin-metadata-jvm as a part of Kotlin distribution
and add a corresponding POM test. #KT-63161 Fixed
This commit is contained in:
committed by
Space Team
parent
09e89db82f
commit
ed30221f42
@@ -2,6 +2,7 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
description = "Kotlin JVM metadata manipulation library"
|
||||
group = "org.jetbrains.kotlin"
|
||||
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
@@ -10,23 +11,6 @@ plugins {
|
||||
id("org.jetbrains.dokka")
|
||||
}
|
||||
|
||||
/*
|
||||
* To publish this library use `:kotlin-metadata-jvm:publish` task and specify the following parameters
|
||||
*
|
||||
* - `-PdeployVersion=1.2.nn`: the version of the standard library dependency to put into .pom
|
||||
* - `-PkotlinxMetadataDeployVersion=0.0.n`: the version of the library itself
|
||||
* - `-Pdeploy-url=repository_url`: (optional) the url of repository to deploy to;
|
||||
* if not specified, the local directory repository `build/repo` will be used
|
||||
* - `-Pkotlin.build.deploy-username=username`: (optional) the username to authenticate in the deployment repository
|
||||
* - `-Pkotlin.build.deploy-password=password`: (optional) the password to authenticate in the deployment repository
|
||||
*/
|
||||
group = "org.jetbrains.kotlin"
|
||||
val deployVersion = findProperty("kotlinxMetadataDeployVersion") as String?
|
||||
version = deployVersion ?: "0.1-SNAPSHOT"
|
||||
|
||||
//kotlin {
|
||||
// explicitApiWarning()
|
||||
//}
|
||||
|
||||
sourceSets {
|
||||
"main" { projectDefault() }
|
||||
@@ -57,9 +41,7 @@ kotlin {
|
||||
}
|
||||
}
|
||||
|
||||
if (deployVersion != null) {
|
||||
publish()
|
||||
}
|
||||
publish()
|
||||
|
||||
val runtimeJar = runtimeJarWithRelocation {
|
||||
from(mainSourceSet.output)
|
||||
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.jetbrains.kotlin</groupId>
|
||||
<artifactId>kotlin-metadata-jvm</artifactId>
|
||||
<version>ArtifactsTest.version</version>
|
||||
<name>Kotlin Metadata Jvm</name>
|
||||
<description>Kotlin JVM metadata manipulation library</description>
|
||||
<url>https://kotlinlang.org/</url>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>The Apache License, Version 2.0</name>
|
||||
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
||||
</license>
|
||||
</licenses>
|
||||
<developers>
|
||||
<developer>
|
||||
<name>Kotlin Team</name>
|
||||
<organization>JetBrains</organization>
|
||||
<organizationUrl>https://www.jetbrains.com</organizationUrl>
|
||||
</developer>
|
||||
</developers>
|
||||
<scm>
|
||||
<connection>scm:git:https://github.com/JetBrains/kotlin.git</connection>
|
||||
<developerConnection>scm:git:https://github.com/JetBrains/kotlin.git</developerConnection>
|
||||
<url>https://github.com/JetBrains/kotlin</url>
|
||||
</scm>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.jetbrains.kotlin</groupId>
|
||||
<artifactId>kotlin-stdlib</artifactId>
|
||||
<version>ArtifactsTest.version</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
Reference in New Issue
Block a user