Skip to content

Commit

Permalink
build: add basic bintray support
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Feb 17, 2020
1 parent 48b6af0 commit 103f0c2
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ coverage:
changelog:
conventional-changelog -p angular -i CHANGELOG.md -s -r 0

bintrayUpload:
./gradlew bintrayUpload -Dbintray.user=<YOUR_USER_NAME> -Dbintray.key=<YOUR_API_KEY>
5 changes: 5 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import com.jfrog.bintray.gradle.BintrayExtension

plugins {
base

Expand All @@ -9,7 +11,10 @@ plugins {
jacoco
id("com.github.kt3k.coveralls") version "2.9.0"
id("maven-publish")

id("com.jfrog.artifactory") version "4.1.1"
id("com.jfrog.bintray") version "1.8.0"

// todo: erich domain testing & logic
id("nl.fabianm.kotlin.plugin.generated") version "1.5.0" // hack for jacoco generate code coverage
}
Expand Down
18 changes: 18 additions & 0 deletions gradle/chapi-module.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
apply plugin: "java"
apply plugin: "maven-publish"
apply plugin: "com.jfrog.bintray"
apply from: "$rootDir/gradle/publications.gradle"

task sourcesJar(type: Jar, dependsOn: classes) {
Expand All @@ -14,3 +15,20 @@ task javadocJar(type: Jar) {
from javadoc
}

bintray {
user = findProperty("bintray.user")
key = findProperty("bintray.key")
publish = true
pkg {
repo = "chapi"
name = "chapi"
userOrg = "phodal"
websiteUrl = "https://www.phodal.com"
githubRepo = "phodal/chapi"
vcsUrl = "https://github.com/phodal/chapi"
description = "Chapi is A common language meta information convertor, convert different languages to same meta-data model"
setLabels("kotlin")
setLicenses("MPL 2.0")
desc = description
}
}

0 comments on commit 103f0c2

Please sign in to comment.