25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

137 lines
4.0 KiB

  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. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing,
  10. software distributed under the License is distributed on an
  11. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  12. KIND, either express or implied. See the License for the
  13. specific language governing permissions and limitations
  14. under the License.
  15. */
  16. ext {
  17. apply from: 'cordova.gradle'
  18. cdvCompileSdkVersion = privateHelpers.getProjectTarget()
  19. cdvBuildToolsVersion = privateHelpers.findLatestInstalledBuildTools()
  20. }
  21. buildscript {
  22. repositories {
  23. google()
  24. jcenter()
  25. }
  26. dependencies {
  27. // The gradle plugin and the maven plugin have to be updated after each version of Android
  28. // studio comes out
  29. classpath 'com.android.tools.build:gradle:3.3.0'
  30. classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
  31. classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
  32. }
  33. }
  34. apply plugin: 'com.android.library'
  35. apply plugin: 'com.github.dcendents.android-maven'
  36. apply plugin: 'com.jfrog.bintray'
  37. group = 'org.apache.cordova'
  38. version = '8.0.0'
  39. android {
  40. compileSdkVersion cdvCompileSdkVersion
  41. buildToolsVersion cdvBuildToolsVersion
  42. compileOptions {
  43. sourceCompatibility JavaVersion.VERSION_1_8
  44. targetCompatibility JavaVersion.VERSION_1_8
  45. }
  46. sourceSets {
  47. main {
  48. manifest.srcFile 'AndroidManifest.xml'
  49. java.srcDirs = ['src']
  50. resources.srcDirs = ['src']
  51. aidl.srcDirs = ['src']
  52. renderscript.srcDirs = ['src']
  53. res.srcDirs = ['res']
  54. assets.srcDirs = ['assets']
  55. }
  56. }
  57. packagingOptions {
  58. exclude 'META-INF/LICENSE'
  59. exclude 'META-INF/LICENSE.txt'
  60. exclude 'META-INF/DEPENDENCIES'
  61. exclude 'META-INF/NOTICE'
  62. }
  63. }
  64. install {
  65. repositories.mavenInstaller {
  66. pom {
  67. project {
  68. packaging 'aar'
  69. name 'Cordova'
  70. url 'https://cordova.apache.org'
  71. licenses {
  72. license {
  73. name 'The Apache Software License, Version 2.0'
  74. url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
  75. }
  76. }
  77. developers {
  78. developer {
  79. id 'stevengill'
  80. name 'Steve Gill'
  81. }
  82. }
  83. scm {
  84. connection 'scm:git:https://github.com/apache/cordova-android.git'
  85. developerConnection 'scm:git:git@github.com:apache/cordova-android.git'
  86. url 'https://github.com/apache/cordova-android'
  87. }
  88. }
  89. }
  90. }
  91. }
  92. task sourcesJar(type: Jar) {
  93. from android.sourceSets.main.java.srcDirs
  94. classifier = 'sources'
  95. }
  96. artifacts {
  97. archives sourcesJar
  98. }
  99. bintray {
  100. user = System.getenv('BINTRAY_USER')
  101. key = System.getenv('BINTRAY_KEY')
  102. configurations = ['archives']
  103. pkg {
  104. repo = 'maven'
  105. name = 'cordova-android'
  106. userOrg = 'cordova'
  107. licenses = ['Apache-2.0']
  108. vcsUrl = 'https://github.com/apache/cordova-android'
  109. websiteUrl = 'https://cordova.apache.org'
  110. issueTrackerUrl = 'https://github.com/apache/cordova-android/issues'
  111. publicDownloadNumbers = true
  112. licenses = ['Apache-2.0']
  113. labels = ['android', 'cordova', 'phonegap']
  114. version {
  115. name = '8.0.0'
  116. released = new Date()
  117. vcsTag = '8.0.0'
  118. }
  119. }
  120. }