| 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 = privateHelpers.getProjectTarget()
|
|---|
| 22 | cdvBuildToolsVersion = privateHelpers.findLatestInstalledBuildTools()
|
|---|
| 23 | }
|
|---|
| 24 |
|
|---|
| 25 | buildscript {
|
|---|
| 26 | repositories {
|
|---|
| 27 | mavenCentral()
|
|---|
| 28 | jcenter()
|
|---|
| 29 | }
|
|---|
| 30 |
|
|---|
| 31 | dependencies {
|
|---|
| 32 | classpath 'com.android.tools.build:gradle:2.2.3'
|
|---|
| 33 | classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
|
|---|
| 34 | classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
|
|---|
| 35 | }
|
|---|
| 36 | }
|
|---|
| 37 |
|
|---|
| 38 | apply plugin: 'com.android.library'
|
|---|
| 39 | apply plugin: 'com.github.dcendents.android-maven'
|
|---|
| 40 | apply plugin: 'com.jfrog.bintray'
|
|---|
| 41 |
|
|---|
| 42 | group = 'org.apache.cordova'
|
|---|
| 43 | version = '6.2.3'
|
|---|
| 44 |
|
|---|
| 45 | android {
|
|---|
| 46 | compileSdkVersion cdvCompileSdkVersion
|
|---|
| 47 | buildToolsVersion cdvBuildToolsVersion
|
|---|
| 48 | publishNonDefault true
|
|---|
| 49 |
|
|---|
| 50 | compileOptions {
|
|---|
| 51 | sourceCompatibility JavaVersion.VERSION_1_6
|
|---|
| 52 | targetCompatibility JavaVersion.VERSION_1_6
|
|---|
| 53 | }
|
|---|
| 54 |
|
|---|
| 55 | sourceSets {
|
|---|
| 56 | main {
|
|---|
| 57 | manifest.srcFile 'AndroidManifest.xml'
|
|---|
| 58 | java.srcDirs = ['src']
|
|---|
| 59 | resources.srcDirs = ['src']
|
|---|
| 60 | aidl.srcDirs = ['src']
|
|---|
| 61 | renderscript.srcDirs = ['src']
|
|---|
| 62 | res.srcDirs = ['res']
|
|---|
| 63 | assets.srcDirs = ['assets']
|
|---|
| 64 | }
|
|---|
| 65 | }
|
|---|
| 66 |
|
|---|
| 67 | packagingOptions {
|
|---|
| 68 | exclude 'META-INF/LICENSE'
|
|---|
| 69 | exclude 'META-INF/LICENSE.txt'
|
|---|
| 70 | exclude 'META-INF/DEPENDENCIES'
|
|---|
| 71 | exclude 'META-INF/NOTICE'
|
|---|
| 72 | }
|
|---|
| 73 | }
|
|---|
| 74 |
|
|---|
| 75 | install {
|
|---|
| 76 | repositories.mavenInstaller {
|
|---|
| 77 | pom {
|
|---|
| 78 | project {
|
|---|
| 79 | packaging 'aar'
|
|---|
| 80 | name 'Cordova'
|
|---|
| 81 | url 'https://cordova.apache.org'
|
|---|
| 82 | licenses {
|
|---|
| 83 | license {
|
|---|
| 84 | name 'The Apache Software License, Version 2.0'
|
|---|
| 85 | url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
|
|---|
| 86 | }
|
|---|
| 87 | }
|
|---|
| 88 | developers {
|
|---|
| 89 | developer {
|
|---|
| 90 | id 'stevengill'
|
|---|
| 91 | name 'Steve Gill'
|
|---|
| 92 | }
|
|---|
| 93 | }
|
|---|
| 94 | scm {
|
|---|
| 95 | connection 'https://git-wip-us.apache.org/repos/asf?p=cordova-android.git'
|
|---|
| 96 | developerConnection 'https://git-wip-us.apache.org/repos/asf?p=cordova-android.git'
|
|---|
| 97 | url 'https://git-wip-us.apache.org/repos/asf?p=cordova-android'
|
|---|
| 98 |
|
|---|
| 99 | }
|
|---|
| 100 | }
|
|---|
| 101 | }
|
|---|
| 102 | }
|
|---|
| 103 | }
|
|---|
| 104 |
|
|---|
| 105 | task sourcesJar(type: Jar) {
|
|---|
| 106 | from android.sourceSets.main.java.srcDirs
|
|---|
| 107 | classifier = 'sources'
|
|---|
| 108 | }
|
|---|
| 109 |
|
|---|
| 110 | artifacts {
|
|---|
| 111 | archives sourcesJar
|
|---|
| 112 | }
|
|---|
| 113 |
|
|---|
| 114 | bintray {
|
|---|
| 115 | user = System.getenv('BINTRAY_USER')
|
|---|
| 116 | key = System.getenv('BINTRAY_KEY')
|
|---|
| 117 | configurations = ['archives']
|
|---|
| 118 | pkg {
|
|---|
| 119 | repo = 'maven'
|
|---|
| 120 | name = 'cordova-android'
|
|---|
| 121 | userOrg = 'cordova'
|
|---|
| 122 | licenses = ['Apache-2.0']
|
|---|
| 123 | vcsUrl = 'https://git-wip-us.apache.org/repos/asf?p=cordova-android.git'
|
|---|
| 124 | websiteUrl = 'https://cordova.apache.org'
|
|---|
| 125 | issueTrackerUrl = 'https://issues.apache.org/jira/browse/CB'
|
|---|
| 126 | publicDownloadNumbers = true
|
|---|
| 127 | licenses = ['Apache-2.0']
|
|---|
| 128 | labels = ['android', 'cordova', 'phonegap']
|
|---|
| 129 | version {
|
|---|
| 130 | name = '6.2.3'
|
|---|
| 131 | released = new Date()
|
|---|
| 132 | vcsTag = '6.2.3'
|
|---|
| 133 | }
|
|---|
| 134 | }
|
|---|
| 135 | }
|
|---|