mirror of
https://github.com/InsanusMokrassar/krontab.git
synced 2024-11-22 16:23:55 +00:00
update bintray publish scripts
This commit is contained in:
parent
4b7d7ce3b4
commit
b2b17b1ad2
@ -1,4 +1,4 @@
|
||||
project.version = "0.1.0"
|
||||
project.version = "0.1.1"
|
||||
project.group = "com.insanusmokrassar"
|
||||
|
||||
buildscript {
|
||||
@ -24,7 +24,7 @@ repositories {
|
||||
}
|
||||
|
||||
kotlin {
|
||||
jvm("jvm8")
|
||||
jvm()
|
||||
|
||||
sourceSets {
|
||||
commonMain {
|
||||
@ -35,9 +35,11 @@ kotlin {
|
||||
api "com.soywiz.korlibs.klock:klock:$klockVersion"
|
||||
}
|
||||
}
|
||||
jvm8Main {
|
||||
jvmMain {
|
||||
dependencies {
|
||||
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlin_coroutines_version"
|
||||
|
||||
api "com.soywiz.korlibs.klock:klock:$klockVersion"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,12 +1,15 @@
|
||||
kotlin.code.style=official
|
||||
kotlin_version=1.3.50
|
||||
kotlin_version=1.3.60
|
||||
kotlin_coroutines_version=1.3.2
|
||||
|
||||
gradle_bintray_plugin_version=1.8.4
|
||||
|
||||
klockVersion=1.7.3
|
||||
|
||||
project_bintray_repo=InsanusMokrassar
|
||||
project_public_name=Krontab
|
||||
project_public_description=It is analog of crontab util for Kotlin Coroutines
|
||||
project_url=https://git.insanusmokrassar.com/InsanusMokrassar/krontab
|
||||
project_vcs=https://git.insanusmokrassar.com/InsanusMokrassar/krontab.git
|
||||
|
||||
kotlin.incremental.multiplatform=true
|
||||
|
@ -1,30 +1,32 @@
|
||||
apply plugin: 'maven-publish'
|
||||
apply plugin: 'signing'
|
||||
|
||||
task javadocJar(type: Jar) {
|
||||
archiveClassifier.set 'javadoc'
|
||||
task javadocsJar(type: Jar) {
|
||||
classifier = 'javadoc'
|
||||
}
|
||||
|
||||
kotlin {
|
||||
jvm("jvm8") {
|
||||
mavenPublication {
|
||||
afterEvaluate {
|
||||
project.publishing.publications.all {
|
||||
// rename artifacts
|
||||
groupId "${project.group}"
|
||||
artifactId "${project.name}-jvm"
|
||||
version "${project.version}"
|
||||
|
||||
artifact(javadocJar)
|
||||
if (it.name.contains('kotlinMultiplatform')) {
|
||||
artifactId = "${project.name}"
|
||||
} else {
|
||||
artifactId = "${project.name}-$name"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
jvm8 {
|
||||
publications.all {
|
||||
artifact javadocsJar
|
||||
|
||||
pom.withXml {
|
||||
asNode().children().last() + {
|
||||
resolveStrategy = Closure.DELEGATE_FIRST
|
||||
name "${project_public_name}"
|
||||
|
||||
description "${project_public_description}"
|
||||
name "${project_public_name}"
|
||||
url "${project_url}"
|
||||
|
||||
scm {
|
||||
@ -38,6 +40,11 @@ publishing {
|
||||
name "Ovsyannikov Alexey"
|
||||
email "ovsyannikov.alexey95@gmail.com"
|
||||
}
|
||||
developer {
|
||||
id "mi-ast"
|
||||
name "Michail Astafiev"
|
||||
email "astaf65@gmail.com"
|
||||
}
|
||||
}
|
||||
|
||||
licenses {
|
||||
@ -50,10 +57,9 @@ publishing {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
signing {
|
||||
useGpgCmd()
|
||||
sign publishing.publications.jvm8
|
||||
sign(publishing.publications)
|
||||
}
|
||||
|
@ -1,30 +1,27 @@
|
||||
apply plugin: 'com.jfrog.bintray'
|
||||
|
||||
ext {
|
||||
projectBintrayDir = "${project.group}/".replace(".", "/") + "${project.name}/${project.version}"
|
||||
}
|
||||
|
||||
apply from: "maven.publish.gradle"
|
||||
|
||||
bintray {
|
||||
user = project.hasProperty('BINTRAY_USER') ? project.property('BINTRAY_USER') : System.getenv('BINTRAY_USER')
|
||||
key = project.hasProperty('BINTRAY_KEY') ? project.property('BINTRAY_KEY') : System.getenv('BINTRAY_KEY')
|
||||
publications = ["jvm8"]
|
||||
filesSpec {
|
||||
into projectBintrayDir
|
||||
from signJvm8Publication
|
||||
rename "pom.*\\.xml(.*)", "${project.name}-${project.version}.pom\$1"
|
||||
rename "(.*)jvm8-(.*)", "\$1\$2"
|
||||
}
|
||||
pkg {
|
||||
repo = 'InsanusMokrassar'
|
||||
repo = "$project_bintray_repo"
|
||||
name = "${project.name}"
|
||||
vcsUrl = "${project_url}"
|
||||
licenses = ['Apache-2.0']
|
||||
version {
|
||||
name = "${project.version}"
|
||||
released = new Date()
|
||||
vcsTag = name
|
||||
vcsTag = "${project.version}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bintrayUpload.doFirst {
|
||||
publications = publishing.publications.collect {
|
||||
it.name
|
||||
}
|
||||
}
|
||||
|
||||
bintrayUpload.dependsOn publishToMavenLocal
|
||||
|
Loading…
Reference in New Issue
Block a user