From 0e1f0e3e7b2b465c22bf796deb09ed8da1e1c24b Mon Sep 17 00:00:00 2001 From: henteko Date: Tue, 28 Feb 2017 17:20:16 +0900 Subject: [PATCH] fix bintray release --- build.gradle | 31 +++++++++++++++++++++---------- release.sh | 2 +- 2 files changed, 22 insertions(+), 11 deletions(-) diff --git a/build.gradle b/build.gradle index d7ba1d00..21738de1 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,6 @@ apply plugin: 'groovy' apply plugin: 'maven' -apply plugin: 'com.novoda.bintray-release' +apply plugin: 'com.jfrog.bintray' group = 'com.deploygate' archivesBaseName = 'gradle' @@ -38,14 +38,25 @@ artifacts { } // Release -publish { - userOrg = 'deploygate' - groupId = group - repoName = 'maven' - artifactId = archivesBaseName - publishVersion = '1.1.0' - desc = 'Gradle Plugin for DeployGate' - website = 'https://github.com/DeployGate/gradle-deploygate-plugin' +bintray { + user = System.getenv('BINTRAY_USER') + key = System.getenv('BINTRAY_KEY') + pkg { + repo = 'maven' + name = 'com.deploygate:gradle' + userOrg = 'deploygate' + licenses = ['Apache-2.0'] + websiteUrl = 'https://github.com/DeployGate/gradle-deploygate-plugin' + issueTrackerUrl = 'https://github.com/DeployGate/gradle-deploygate-plugin/issues' + vcsUrl = 'https://github.com/DeployGate/gradle-deploygate-plugin.git' + githubRepo = 'DeployGate/gradle-deploygate-plugin' + version { + name = '1.1.0' + released = new Date() + } + } + + configurations = ['archives'] } buildscript { @@ -53,6 +64,6 @@ buildscript { jcenter() } dependencies { - classpath 'com.novoda:bintray-release:0.4.0' + classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3' } } diff --git a/release.sh b/release.sh index 2e1c044c..2181d582 100755 --- a/release.sh +++ b/release.sh @@ -1,3 +1,3 @@ #!/usr/bin/env bash -./gradlew clean build bintrayUpload -PbintrayUser=$BINTRAY_USER -PbintrayKey=$BINTRAY_KEY -PdryRun=false +./gradlew clean build bintrayUpload