File: build.gradle

package info (click to toggle)
android-platform-tools-base 2.2.2-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 113,928 kB
  • sloc: java: 696,396; xml: 45,920; cpp: 2,526; ansic: 1,432; sh: 508; lisp: 110; javascript: 108; makefile: 17
file content (44 lines) | stat: -rw-r--r-- 1,337 bytes parent folder | download | duplicates (3)
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
apply plugin: 'java'
apply plugin: 'maven'

group = 'com.android.tools'
archivesBaseName = 'studio-profiler-plugin'
version = '1.0'// TODO: Pass in as an argument

dependencies {
    compile gradleApi()
    compile 'org.ow2.asm:asm:5.0.3'
    compile 'com.google.guava:guava:17.0'
    compile('com.android.tools.build:gradle-api:2.0.0-beta2')
}

//// Publishing this library goes directly to a directory seen by studio at development time,
//// and forms part of the components bundled with studio at build time.
def repo = "$rootDir/../../../out/studio/repo/"

uploadArchives {
    repositories {
        mavenDeployer {
            repository(url: "file://$repo")
        }
    }
    outputs.dir repo
}

// We have a small set of dependencies, so copy them manually
def deps = [
        "org/ow2/asm/asm/5.0.3",
        "com/google/guava/guava/17.0",
        "com/android/tools/build/gradle-api/2.0.0-beta2",
        "com/android/tools/annotations/25.0.0-beta2",
]

deps.each { name ->
    // create a task that copies some additional data in the library bundle
    def copyTask = tasks.create(name: "copy$name", type: Copy) {
        from           file("../../../../prebuilts/tools/common/m2/repository/" + name)
        destinationDir file("$repo/$name")
    }
    uploadArchives.dependsOn copyTask
}
build.dependsOn uploadArchives