OSDN Git Service

gradle: Revert drop of bintray plugin
authorHiroshi Miura <miurahr@linux.com>
Sat, 13 Mar 2021 08:48:32 +0000 (17:48 +0900)
committerHiroshi Miura <miurahr@linux.com>
Sat, 13 Mar 2021 08:48:32 +0000 (17:48 +0900)
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
build.gradle

index a4b21cf..66b9cce 100644 (file)
@@ -1,6 +1,7 @@
 import org.apache.tools.ant.filters.ReplaceTokens
 
 plugins {
+    id "com.jfrog.bintray" version "1.6"
     id 'java-library'
     id "org.nosphere.gradle.github.actions" version "1.1.0"
     id 'maven-publish'
@@ -56,7 +57,24 @@ subprojects {
 
 project(':dictzip-lib') {
     apply plugin: 'java-library'
+    apply plugin: 'com.jfrog.bintray'
     version = rootProject.version
+    bintray {
+        dryRun = false
+        publish = false
+        user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
+        key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
+        configurations = ['archives']
+        pkg {
+            repo = 'maven'
+            name = 'dictzip-lib'
+            userOrg = 'dictzip'
+            licenses = ['GPL-2.0+CE']
+            vcsUrl = projectUrl
+            labels = ['java', 'dictzip']
+            publicDownloadNumbers = true
+        }
+    }
     install {
         repositories.mavenInstaller {
             pom.project {