Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Add Bintray CI deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
svenjacobs committed Jan 21, 2019
1 parent fcabaa0 commit 32414f2
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 16 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,10 @@ cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/

deploy:
provider: script
script: ./gradlew :core:bintrayUpload :android:bintrayUpload
skip_cleanup: true
on:
branch: master
28 changes: 27 additions & 1 deletion android/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import com.jfrog.bintray.gradle.BintrayExtension.PackageConfig
import com.jfrog.bintray.gradle.BintrayExtension.VersionConfig
import org.jetbrains.dokka.gradle.DokkaTask

plugins {
id("org.jetbrains.dokka")
id("digital.wup.android-maven-publish") version "3.6.2"
id("com.android.library")
id("com.jfrog.bintray")
kotlin("android")
`maven-publish`
}

apply(from = "../publishing.gradle.kts")
Expand Down Expand Up @@ -53,7 +57,7 @@ val javaDoc by tasks.registering(Jar::class) {

publishing {
publications {
register("mavenAar", MavenPublication::class) {
create<MavenPublication>("katana-android") {
from(components["android"])
artifact(sourcesJar.get())
artifact(javaDoc.get())
Expand All @@ -62,3 +66,25 @@ publishing {
}
}
}

bintray {
user = System.getenv("BINTRAY_USER")
key = System.getenv("BINTRAY_API_KEY")
override = false
publish = true

setPublications("katana-android")

pkg(delegateClosureOf<PackageConfig> {
repo = "katana"
name = "katana-android"
userOrg = "rewe-digital"
websiteUrl = "https://github.com/rewe-digital-incubator/katana"
vcsUrl = "https://github.com/rewe-digital-incubator/katana"
setLicenses("MIT")

version(delegateClosureOf<VersionConfig> {
name = "${project.version}"
})
})
}
15 changes: 1 addition & 14 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ plugins {
kotlin("jvm") version "1.3.11" apply false
`maven-publish`
id("org.jetbrains.dokka") version "0.9.17"
id("com.jfrog.bintray") version "1.8.4"
}

allprojects {
Expand All @@ -31,17 +32,3 @@ allprojects {
kotlinOptions.jvmTarget = "1.6"
}
}

subprojects {
apply {
plugin("org.gradle.maven-publish")
}

publishing {
repositories {
maven {
// TODO
}
}
}
}
28 changes: 27 additions & 1 deletion core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import com.jfrog.bintray.gradle.BintrayExtension.PackageConfig
import com.jfrog.bintray.gradle.BintrayExtension.VersionConfig
import org.jetbrains.dokka.gradle.DokkaTask

plugins {
id("com.jfrog.bintray")
id("org.jetbrains.dokka")
kotlin("jvm")
`maven-publish`
}

apply(from = "../publishing.gradle.kts")
Expand Down Expand Up @@ -48,7 +52,7 @@ val javaDoc by tasks.registering(Jar::class) {

publishing {
publications {
register("mavenJava", MavenPublication::class) {
create<MavenPublication>("katana-core") {
from(components["java"])
artifact(sourcesJar.get())
artifact(javaDoc.get())
Expand All @@ -57,3 +61,25 @@ publishing {
}
}
}

bintray {
user = System.getenv("BINTRAY_USER")
key = System.getenv("BINTRAY_API_KEY")
override = false
publish = true

setPublications("katana-core")

pkg(delegateClosureOf<PackageConfig> {
repo = "katana"
name = "katana-core"
userOrg = "rewe-digital"
websiteUrl = "https://github.com/rewe-digital-incubator/katana"
vcsUrl = "https://github.com/rewe-digital-incubator/katana"
setLicenses("MIT")

version(delegateClosureOf<VersionConfig> {
name = "${project.version}"
})
})
}

0 comments on commit 32414f2

Please sign in to comment.