tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 497HTML 254C 19JavaScript 81329 Definiciones

Add bintray config

40d32f4a03ad2369b08723c3e6229ec21adf8688 · por Emil Sjölander · (hace 7 años) · padre 57f7effb2 · ver el árbol en este commit

Delta semántico

Ninguna definición cambió: el cambio es de texto, documentación o datos.

2 archivos · +117 −7

diff --git a/bindings/kotlin/build.gradle b/bindings/kotlin/build.gradle
index af2e4069c..07d61c0ea 100644
--- a/bindings/kotlin/build.gradle
+++ b/bindings/kotlin/build.gradle
@@ -10,16 +10,20 @@ buildscript {
     dependencies {
         classpath 'com.android.tools.build:gradle:3.4.0'
         classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
-        // NOTE: Do not place your application dependencies here; they belong
-        // in the individual module build.gradle files
+        classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
+        classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
     }
 }
 
 allprojects {
     repositories {
         google()
+        mavenCentral()
         jcenter()
-        
+    }
+
+    tasks.withType(Javadoc).all {
+        enabled = false
     }
 }
 
diff --git a/bindings/kotlin/stretch/build.gradle b/bindings/kotlin/stretch/build.gradle
index 1409021ce..b5902b02a 100644
--- a/bindings/kotlin/stretch/build.gradle
+++ b/bindings/kotlin/stretch/build.gradle
@@ -1,6 +1,8 @@
 apply plugin: 'com.android.library'
 apply plugin: 'kotlin-android-extensions'
 apply plugin: 'kotlin-android'
+apply plugin: 'com.github.dcendents.android-maven'
+apply plugin: 'com.jfrog.bintray'
 
 android {
     compileSdkVersion 28
@@ -30,10 +32,6 @@ android {
     }
 }
 
-repositories {
-    mavenCentral()
-}
-
 dependencies {
     implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
     implementation "androidx.core:core:1.0.1"
@@ -79,3 +77,111 @@ archTriplets.each { arch, target ->
 
     clean.dependsOn "clean-${arch}"
 }
+
+ext {
+    bintrayRepo = 'maven'
+    bintrayName = 'stretch-kotlin-bindings'
+
+    publishedGroupId = 'app.visly.stretch'
+    libraryName = bintrayName
+    artifact = 'stretch'
+
+    libraryDescription = 'Kotlin bindings for stretch layout engine'
+
+    siteUrl = 'https://visly.app/stretch'
+    gitUrl = 'https://github.com/vislyhq/stretch.git'
+
+    libraryVersion = '0.2.2'
+
+    developerId = 'visly'
+    developerName = 'Visly'
+    developerEmail = 'emil@visly.app'
+
+    licenseName = 'MIT'
+    licenseUrl = 'https://github.com/vislyhq/stretch/blob/master/LICENSE'
+    allLicenses = ["MIT"]
+}
+
+group = publishedGroupId
+version = libraryVersion
+
+install {
+    repositories.mavenInstaller {
+        pom.project {
+            packaging 'aar'
+            groupId publishedGroupId
+            artifactId artifact
+            name libraryName
+            description libraryDescription
+            url siteUrl
+
+            licenses {
+                license {
+                    name licenseName
+                    url licenseUrl
+                }
+            }
+            developers {
+                developer {
+                    id developerId
+                    name developerName
+                    email developerEmail
+                }
+            }
+            scm {
+                connection gitUrl
+                developerConnection gitUrl
+                url siteUrl
+            }
+        }
+    }
+}
+
+task sourcesJar(type: Jar) {
+    classifier = 'sources'
+    from android.sourceSets.main.java.srcDirs
+}
+
+task javadoc(type: Javadoc) {
+    source = android.sourceSets.main.java.srcDirs
+    classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
+}
+
+task javadocJar(type: Jar, dependsOn: javadoc) {
+    classifier = 'javadoc'
+    from javadoc.destinationDir
+}
+
+artifacts {
+    archives javadocJar
+    archives sourcesJar
+}
+
+Properties properties = new Properties()
+if (project.rootProject.file("local.properties").exists()) {
+    properties.load(project.rootProject.file('local.properties').newDataInputStream())
+}
+
+bintray {
+    user = properties.getProperty("bintray.user")
+    key = properties.getProperty("bintray.apikey")
+
+    configurations = ['archives']
+
+    pkg {
+        repo = bintrayRepo
+        name = bintrayName
+        userOrg = developerId
+        desc = libraryDescription
+        websiteUrl = siteUrl
+        vcsUrl = gitUrl
+        licenses = allLicenses
+        dryRun = false
+        publish = true
+        override = false
+        publicDownloadNumbers = true
+        version {
+            desc = libraryDescription
+        }
+    }
+}