forked from AghilasMessara/android-native-dependencies
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
133 lines (111 loc) · 4.03 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
import org.gradle.api.artifacts.maven.MavenDeployment
buildscript {
repositories {
mavenCentral()
maven { url 'http://jcenter.bintray.com' }
}
dependencies {
classpath 'org.gradle.api.plugins:gradle-nexus-plugin:0.3'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'
}
}
apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'nexus'
dependencies {
compile gradleApi()
compile localGroovy()
compile 'com.android.tools.build:gradle:1.1.0'
compile 'commons-io:commons-io:2.4'
testCompile 'org.easytesting:fest-assert-core:2.0M10'
}
repositories {
mavenCentral()
}
group = 'com.nabilhachicha'
version = '0.1.2'
modifyPom {
project {
name 'Android Native Dependencies'
description 'Gradle plugin for resolving and downloading Android native dependencies (.so)'
url 'https://github.com/nhachicha/android-native-dependencies'
inceptionYear '2014'
scm {
url 'https://github.com/nhachicha/android-native-dependencies'
connection 'scm:git:git://github.com/nhachicha/android-native-dependencies.git'
developerConnection 'scm:git:ssh://git@github.com/nhachicha/android-native-dependencies.git'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
developers {
developer {
id 'nhachicha'
name 'Nabil Hachicha'
email 'nabil.hachicha@gmail.com'
}
}
}
}
task srcJar(type: Jar) {
classifier 'sources'
from sourceSets.main.allSource
}
task gdocJar(type: Jar, dependsOn: groovydoc) {
classifier 'groovydoc'
from groovydoc.destinationDir
}
artifacts {
archives srcJar
archives gdocJar
archives javadocJar
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact srcJar
artifact gdocJar
artifact javadocJar
pom.withXml {
def root = asNode()
root.appendNode('name', 'Android Native Dependencies')
root.appendNode('url', 'https://github.com/nhachicha/android-native-dependencies')
root.appendNode('description', 'Gradle plugin for resolving and downloading Android native dependencies (.so)')
root.appendNode('inceptionYear', '2014')
def scm = root.appendNode('scm')
scm.appendNode('url', 'https://github.com/nhachicha/android-native-dependencies')
scm.appendNode('connection', 'scm:git:git://github.com/nhachicha/android-native-dependencies.git')
scm.appendNode('developerConnection', 'scm:git:ssh://git@github.com/nhachicha/android-native-dependencies.git')
def license = root.appendNode('licenses').appendNode('license')
license.appendNode('name', 'The Apache Software License, Version 2.0')
license.appendNode('url', 'http://www.apache.org/licenses/LICENSE-2.0.txt')
license.appendNode('distribution', 'repo')
def developers = root.appendNode('developers')
def nabil = developers.appendNode('developer')
nabil.appendNode('id', 'nhachicha')
nabil.appendNode('name', 'Nabil Hachicha')
nabil.appendNode('email', 'nabil.hachicha@gmail.com')
}
}
}
}
bintray {
key = project.hasProperty('bintray_apikey') ? project.getProperty('bintray_apikey') : null
user = project.hasProperty('bintray_user') ? project.getProperty('bintray_user') : null
publications = ['mavenJava']
pkg {
repo = 'gradle-plugins'
name = 'android-native-dependencies'
licenses = ['Apache-2.0']
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.2'
}