Change group of kotlinx.metadata to org.jetbrains.kotlinx
Allow to override version of the resulting artifact with a property. Setup publishing of the library when its deployment version is specified.
This commit is contained in:
@@ -6,8 +6,19 @@ plugins {
|
|||||||
kotlin("jvm")
|
kotlin("jvm")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Change this version before publishing
|
/*
|
||||||
version = "0.1-SNAPSHOT"
|
* To publish this library use `:kotlinx-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
|
||||||
|
* - `-PdeployRepoUrl=repository_url`: (optional) the url of repository to deploy to;
|
||||||
|
* if not specified, the local directory repository `build/repo` will be used
|
||||||
|
* - `-PdeployRepoUsername=username`: (optional) the username to authenticate in the deployment repository
|
||||||
|
* - `-PdeployRepoPassword=password`: (optional) the password to authenticate in the deployment repository
|
||||||
|
*/
|
||||||
|
group = "org.jetbrains.kotlinx"
|
||||||
|
val deployVersion = findProperty("kotlinxMetadataDeployVersion") as String?
|
||||||
|
version = deployVersion ?: "0.1-SNAPSHOT"
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
"main" { projectDefault() }
|
"main" { projectDefault() }
|
||||||
@@ -59,7 +70,10 @@ sourcesJar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
javadocJar()
|
javadocJar()
|
||||||
// publish()
|
|
||||||
|
if (deployVersion != null) {
|
||||||
|
publish()
|
||||||
|
}
|
||||||
|
|
||||||
projectTest {
|
projectTest {
|
||||||
workingDir = rootDir
|
workingDir = rootDir
|
||||||
|
|||||||
Reference in New Issue
Block a user