From 103f0c2ec7636e1b57e78b5a5c5651bea5704bc2 Mon Sep 17 00:00:00 2001 From: Phodal Huang Date: Mon, 17 Feb 2020 16:55:31 +0800 Subject: [PATCH] build: add basic bintray support --- Makefile | 2 ++ build.gradle.kts | 5 +++++ gradle/chapi-module.gradle | 18 ++++++++++++++++++ 3 files changed, 25 insertions(+) diff --git a/Makefile b/Makefile index 46fa6d65..d68e3072 100644 --- a/Makefile +++ b/Makefile @@ -12,3 +12,5 @@ coverage: changelog: conventional-changelog -p angular -i CHANGELOG.md -s -r 0 +bintrayUpload: + ./gradlew bintrayUpload -Dbintray.user= -Dbintray.key= diff --git a/build.gradle.kts b/build.gradle.kts index b6fea3de..5ab85468 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,3 +1,5 @@ +import com.jfrog.bintray.gradle.BintrayExtension + plugins { base @@ -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 } diff --git a/gradle/chapi-module.gradle b/gradle/chapi-module.gradle index 2f6c1bd8..df79ed53 100644 --- a/gradle/chapi-module.gradle +++ b/gradle/chapi-module.gradle @@ -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) { @@ -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 + } +}