Fixed module deploy
This commit is contained in:
parent
404bcfd28a
commit
52e01dceac
@ -8,7 +8,7 @@ plugins {
|
||||
}
|
||||
|
||||
group = "scientifik"
|
||||
version = "0.1.1"
|
||||
version = "0.1.2"
|
||||
|
||||
repositories {
|
||||
gradlePluginPortal()
|
||||
|
@ -38,6 +38,10 @@ open class ScientifikPublishPlugin : Plugin<Project> {
|
||||
project.plugins.apply("maven-publish")
|
||||
val extension = project.extensions.create<ScientifikExtension>("scientifik")
|
||||
|
||||
if (extension.kdoc) {
|
||||
project.plugins.apply("org.jetbrains.dokka")
|
||||
}
|
||||
|
||||
project.afterEvaluate {
|
||||
|
||||
val bintrayRepo = project.bintrayRepo
|
||||
@ -48,6 +52,9 @@ open class ScientifikPublishPlugin : Plugin<Project> {
|
||||
return@afterEvaluate
|
||||
}
|
||||
|
||||
project.plugins.apply("com.jfrog.bintray")
|
||||
project.plugins.apply("com.jfrog.artifactory")
|
||||
|
||||
project.configure<PublishingExtension> {
|
||||
repositories {
|
||||
maven("https://bintray.com/mipt-npm/$bintrayRepo")
|
||||
@ -86,8 +93,6 @@ open class ScientifikPublishPlugin : Plugin<Project> {
|
||||
}
|
||||
|
||||
if (extension.kdoc) {
|
||||
project.plugins.apply("org.jetbrains.dokka")
|
||||
|
||||
|
||||
extensions.findByType<KotlinMultiplatformExtension>()?.apply {
|
||||
val dokka by tasks.getting(DokkaTask::class) {
|
||||
@ -171,8 +176,6 @@ open class ScientifikPublishPlugin : Plugin<Project> {
|
||||
|
||||
}
|
||||
|
||||
project.plugins.apply("com.jfrog.bintray")
|
||||
|
||||
project.configure<BintrayExtension> {
|
||||
user = project.findProperty("bintrayUser") as? String ?: System.getenv("BINTRAY_USER")
|
||||
key = project.findProperty("bintrayApiKey") as? String? ?: System.getenv("BINTRAY_API_KEY")
|
||||
@ -205,8 +208,6 @@ open class ScientifikPublishPlugin : Plugin<Project> {
|
||||
// }
|
||||
}
|
||||
|
||||
project.plugins.apply("com.jfrog.artifactory")
|
||||
|
||||
project.configure<ArtifactoryPluginConvention> {
|
||||
val artifactoryUser: String? by project
|
||||
val artifactoryPassword: String? by project
|
||||
|
Loading…
Reference in New Issue
Block a user