-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
146 lines (119 loc) · 3.37 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
134
135
136
137
138
139
140
141
142
143
144
145
146
buildscript {
repositories {
jcenter()
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.5'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
classpath "com.gradle.publish:plugin-publish-plugin:0.9.2"
}
}
group 'com.testfunction'
version '0.0.3'
apply plugin: "com.gradle.plugin-publish"
apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: 'idea'
idea {
module {
downloadJavadoc = true
downloadSources = true
true
}
}
configurations {
provided
magic
}
task createClasspathManifest {
def outputDir = file("$buildDir/$name")
inputs.files sourceSets.main.runtimeClasspath
outputs.dir outputDir
doLast {
outputDir.mkdirs()
file("$outputDir/plugin-classpath.txt").text = sourceSets.main.runtimeClasspath.join("\n")
true
}
}
dependencies {
repositories {
mavenCentral()
}
compile gradleApi()
compile localGroovy()
compile 'com.android.tools.build:gradle:1.5.0'
compile 'org.ajoberstar:grgit:1.5.0-rc.1'
testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile gradleTestKit()
testCompile ('org.spockframework:spock-core:1.0-groovy-2.4') {
exclude module:'groovy-all'
}
testCompile 'com.android.tools.build:gradle:1.5.0'
testRuntime files(createClasspathManifest)
}
sourceSets {
main {
groovy {
srcDirs = ['src/main/groovy']
true
}
compileClasspath += configurations.provided
true
}
test {
groovy {
srcDirs = ['src/test/groovy']
true
}
}
}
uploadArchives {
repositories {
mavenDeployer {
repository(url: mavenLocal().url)
}
}
true
}
task wrapper(type: Wrapper) {
gradleVersion = '2.10'
distributionUrl = "https://services.gradle.org/distributions/gradle-${gradleVersion}-all.zip"
true
}
ext {
bintrayRepo = 'maven'
bintrayName = 'gradle-gitdroid'
publishedGroupId = 'com.testfunction'
libraryName = 'gradle-gitdroid'
artifact = 'gradle-gitdroid'
libraryDescription = 'A gradle plugin for Android projects that allows for dependencies from git repositories'
siteUrl = 'https://github.com/lodlock/gradle-gitdroid'
gitUrl = 'https://github.com/lodlock/gradle-gitdroid.git'
libraryVersion = version
developerId = 'lodlock'
developerName = 'Brandon Andrews'
developerEmail = 'iamhunted@gmail.com'
licenseName = 'MIT'
licenseUrl = 'http://opensource.org/licenses/mit-license.php'
allLicenses = ["MIT"]
}
apply from: "install.gradle"
if (hasProperty('bintray.user') && hasProperty('bintray.apikey') && hasProperty('bintray.gpg.password')) {
apply from: "bintray.gradle"
}
pluginBundle {
website = 'https://github.com/lodlock/gradle-gitdroid'
vcsUrl = 'https://github.com/lodlock/gradle-gitdroid'
description = 'A gradle plugin for Android projects that allows for dependencies from git repositories.'
tags = ['git', 'dependencies', 'repositories', 'android', 'dependency', 'github']
plugins {
gradleGitDroidPlugin {
id = 'com.testfunction.gradle-gitdroid'
displayName = 'Gradle GitDroid'
}
}
}