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"
|
project.group = "com.insanusmokrassar"
|
||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
@ -24,7 +24,7 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
jvm("jvm8")
|
jvm()
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
commonMain {
|
commonMain {
|
||||||
@ -35,9 +35,11 @@ kotlin {
|
|||||||
api "com.soywiz.korlibs.klock:klock:$klockVersion"
|
api "com.soywiz.korlibs.klock:klock:$klockVersion"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
jvm8Main {
|
jvmMain {
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$kotlin_coroutines_version"
|
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.code.style=official
|
||||||
kotlin_version=1.3.50
|
kotlin_version=1.3.60
|
||||||
kotlin_coroutines_version=1.3.2
|
kotlin_coroutines_version=1.3.2
|
||||||
|
|
||||||
gradle_bintray_plugin_version=1.8.4
|
gradle_bintray_plugin_version=1.8.4
|
||||||
|
|
||||||
klockVersion=1.7.3
|
klockVersion=1.7.3
|
||||||
|
|
||||||
|
project_bintray_repo=InsanusMokrassar
|
||||||
project_public_name=Krontab
|
project_public_name=Krontab
|
||||||
project_public_description=It is analog of crontab util for Kotlin Coroutines
|
project_public_description=It is analog of crontab util for Kotlin Coroutines
|
||||||
project_url=https://git.insanusmokrassar.com/InsanusMokrassar/krontab
|
project_url=https://git.insanusmokrassar.com/InsanusMokrassar/krontab
|
||||||
project_vcs=https://git.insanusmokrassar.com/InsanusMokrassar/krontab.git
|
project_vcs=https://git.insanusmokrassar.com/InsanusMokrassar/krontab.git
|
||||||
|
|
||||||
|
kotlin.incremental.multiplatform=true
|
||||||
|
@ -1,51 +1,57 @@
|
|||||||
apply plugin: 'maven-publish'
|
apply plugin: 'maven-publish'
|
||||||
apply plugin: 'signing'
|
apply plugin: 'signing'
|
||||||
|
|
||||||
task javadocJar(type: Jar) {
|
task javadocsJar(type: Jar) {
|
||||||
archiveClassifier.set 'javadoc'
|
classifier = 'javadoc'
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
afterEvaluate {
|
||||||
jvm("jvm8") {
|
project.publishing.publications.all {
|
||||||
mavenPublication {
|
// rename artifacts
|
||||||
groupId "${project.group}"
|
groupId "${project.group}"
|
||||||
artifactId "${project.name}-jvm"
|
if (it.name.contains('kotlinMultiplatform')) {
|
||||||
version "${project.version}"
|
artifactId = "${project.name}"
|
||||||
|
} else {
|
||||||
artifact(javadocJar)
|
artifactId = "${project.name}-$name"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications.all {
|
||||||
jvm8 {
|
artifact javadocsJar
|
||||||
pom.withXml {
|
|
||||||
asNode().children().last() + {
|
|
||||||
resolveStrategy = Closure.DELEGATE_FIRST
|
|
||||||
name "${project_public_name}"
|
|
||||||
description "${project_public_description}"
|
|
||||||
url "${project_url}"
|
|
||||||
|
|
||||||
scm {
|
pom.withXml {
|
||||||
developerConnection "scm:git:[fetch=]${project_vcs}[push=]${project_vcs}"
|
asNode().children().last() + {
|
||||||
url "${project_vcs}"
|
resolveStrategy = Closure.DELEGATE_FIRST
|
||||||
|
|
||||||
|
description "${project_public_description}"
|
||||||
|
name "${project_public_name}"
|
||||||
|
url "${project_url}"
|
||||||
|
|
||||||
|
scm {
|
||||||
|
developerConnection "scm:git:[fetch=]${project_vcs}[push=]${project_vcs}"
|
||||||
|
url "${project_vcs}"
|
||||||
|
}
|
||||||
|
|
||||||
|
developers {
|
||||||
|
developer {
|
||||||
|
id "InsanusMokrassar"
|
||||||
|
name "Ovsyannikov Alexey"
|
||||||
|
email "ovsyannikov.alexey95@gmail.com"
|
||||||
}
|
}
|
||||||
|
developer {
|
||||||
developers {
|
id "mi-ast"
|
||||||
developer {
|
name "Michail Astafiev"
|
||||||
id "InsanusMokrassar"
|
email "astaf65@gmail.com"
|
||||||
name "Ovsyannikov Alexey"
|
|
||||||
email "ovsyannikov.alexey95@gmail.com"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
licenses {
|
licenses {
|
||||||
license {
|
license {
|
||||||
name "The Apache Software License, Version 2.0"
|
name "The Apache Software License, Version 2.0"
|
||||||
url "${project_url}/src/master/LICENSE"
|
url "${project_url}/src/master/LICENSE"
|
||||||
distribution "repo"
|
distribution "repo"
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -55,5 +61,5 @@ publishing {
|
|||||||
|
|
||||||
signing {
|
signing {
|
||||||
useGpgCmd()
|
useGpgCmd()
|
||||||
sign publishing.publications.jvm8
|
sign(publishing.publications)
|
||||||
}
|
}
|
||||||
|
@ -1,30 +1,27 @@
|
|||||||
apply plugin: 'com.jfrog.bintray'
|
apply plugin: 'com.jfrog.bintray'
|
||||||
|
|
||||||
ext {
|
|
||||||
projectBintrayDir = "${project.group}/".replace(".", "/") + "${project.name}/${project.version}"
|
|
||||||
}
|
|
||||||
|
|
||||||
apply from: "maven.publish.gradle"
|
apply from: "maven.publish.gradle"
|
||||||
|
|
||||||
bintray {
|
bintray {
|
||||||
user = project.hasProperty('BINTRAY_USER') ? project.property('BINTRAY_USER') : System.getenv('BINTRAY_USER')
|
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')
|
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 {
|
pkg {
|
||||||
repo = 'InsanusMokrassar'
|
repo = "$project_bintray_repo"
|
||||||
name = "${project.name}"
|
name = "${project.name}"
|
||||||
vcsUrl = "${project_url}"
|
vcsUrl = "${project_url}"
|
||||||
licenses = ['Apache-2.0']
|
licenses = ['Apache-2.0']
|
||||||
version {
|
version {
|
||||||
name = "${project.version}"
|
name = "${project.version}"
|
||||||
released = new Date()
|
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