Advertisement
Guest User

build.gradle

a guest
Mar 14th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 4.06 KB | None | 0 0
  1. /* Licensed to the Apache Software Foundation (ASF) under one
  2.    or more contributor license agreements.  See the NOTICE file
  3.    distributed with this work for additional information
  4.    regarding copyright ownership.  The ASF licenses this file
  5.    to you under the Apache License, Version 2.0 (the
  6.    "License"); you may not use this file except in compliance
  7.    with the License.  You may obtain a copy of the License at
  8.  
  9.      http://www.apache.org/licenses/LICENSE-2.0
  10.  
  11.    Unless required by applicable law or agreed to in writing,
  12.    software distributed under the License is distributed on an
  13.    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  14.    KIND, either express or implied.  See the License for the
  15.    specific language governing permissions and limitations
  16.    under the License.
  17. */
  18.  
  19. ext {
  20.     apply from: 'cordova.gradle'
  21.     cdvCompileSdkVersion = 28
  22.     cdvBuildToolsVersion = "27.0.2"
  23. }
  24.  
  25. buildscript {
  26.     repositories {
  27.         maven {
  28.             url "https://maven.google.com"
  29.         }
  30.         jcenter()
  31.     }
  32.  
  33.     dependencies {
  34.         classpath 'com.android.tools.build:gradle:3.0.1'
  35.         classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
  36.         classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
  37.     }
  38. }
  39.  
  40. apply plugin: 'com.android.library'
  41. apply plugin: 'com.github.dcendents.android-maven'
  42. apply plugin: 'com.jfrog.bintray'
  43.  
  44. group = 'org.apache.cordova'
  45. version = '7.1.4'
  46.  
  47. android {
  48.     compileSdkVersion cdvCompileSdkVersion
  49.     buildToolsVersion cdvBuildToolsVersion
  50.     publishNonDefault true
  51.  
  52.     compileOptions {
  53.         sourceCompatibility JavaVersion.VERSION_1_8
  54.         targetCompatibility JavaVersion.VERSION_1_8
  55.     }
  56.  
  57.     sourceSets {
  58.         main {
  59.             manifest.srcFile 'AndroidManifest.xml'
  60.             java.srcDirs = ['src']
  61.             resources.srcDirs = ['src']
  62.             aidl.srcDirs = ['src']
  63.             renderscript.srcDirs = ['src']
  64.             res.srcDirs = ['res']
  65.             assets.srcDirs = ['assets']
  66.         }
  67.     }
  68.  
  69.     packagingOptions {
  70.         exclude 'META-INF/LICENSE'
  71.         exclude 'META-INF/LICENSE.txt'
  72.         exclude 'META-INF/DEPENDENCIES'
  73.         exclude 'META-INF/NOTICE'
  74.     }
  75. }
  76.  
  77. install {
  78.     repositories.mavenInstaller {
  79.         pom {
  80.             project {
  81.                 packaging 'aar'
  82.                 name 'Cordova'
  83.                 url 'https://cordova.apache.org'
  84.                 licenses {
  85.                     license {
  86.                         name 'The Apache Software License, Version 2.0'
  87.                         url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
  88.                     }
  89.                 }
  90.                 developers {
  91.                     developer {
  92.                         id 'stevengill'
  93.                         name 'Steve Gill'
  94.                     }
  95.                 }
  96.                 scm {
  97.                     connection 'https://git-wip-us.apache.org/repos/asf?p=cordova-android.git'
  98.                     developerConnection 'https://git-wip-us.apache.org/repos/asf?p=cordova-android.git'
  99.                     url 'https://git-wip-us.apache.org/repos/asf?p=cordova-android'
  100.  
  101.                 }
  102.             }
  103.         }
  104.     }
  105. }
  106.  
  107. task sourcesJar(type: Jar) {
  108.     from android.sourceSets.main.java.srcDirs
  109.     classifier = 'sources'
  110. }
  111.  
  112. artifacts {
  113.     archives sourcesJar
  114. }
  115.  
  116. bintray {
  117.     user = System.getenv('BINTRAY_USER')
  118.     key = System.getenv('BINTRAY_KEY')
  119.     configurations = ['archives']
  120.     pkg {
  121.         repo = 'maven'
  122.         name = 'cordova-android'
  123.         userOrg = 'cordova'
  124.         licenses = ['Apache-2.0']
  125.         vcsUrl = 'https://git-wip-us.apache.org/repos/asf?p=cordova-android.git'
  126.         websiteUrl = 'https://cordova.apache.org'
  127.         issueTrackerUrl = 'https://issues.apache.org/jira/browse/CB'
  128.         publicDownloadNumbers = true
  129.         licenses = ['Apache-2.0']
  130.         labels = ['android', 'cordova', 'phonegap']
  131.         version {
  132.             name = '7.1.4'
  133.             released  = new Date()
  134.             vcsTag = '7.1.4'
  135.         }
  136.     }
  137. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement