build.gradle revision e421e29d1e20d73fb1275ec0d916e4c6ad8a3893
1/*
2 * Copyright (C) 2014 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17apply plugin: 'java'
18apply plugin: "kotlin"
19
20
21sourceCompatibility = config.javaTargetCompatibility
22targetCompatibility = config.javaSourceCompatibility
23
24buildscript {
25    repositories {
26        mavenCentral()
27    }
28    dependencies {
29        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${config.kotlinVersion}"
30    }
31}
32
33
34dependencies {
35    compile 'junit:junit:4.12'
36    compile 'org.apache.commons:commons-lang3:3.3.2'
37    compile 'org.apache.commons:commons-io:1.3.2'
38    compile 'com.google.guava:guava:18.0'
39    compile "org.jetbrains.kotlin:kotlin-stdlib:${config.kotlinVersion}"
40    compile 'commons-codec:commons-codec:1.10'
41    compile project(":baseLibrary")
42    compile project(":grammarBuilder")
43    compile project(":xmlGrammar")
44    testCompile "com.android.databinding:libraryJar:$version@jar"
45}
46
47task fatJar(type: Jar) {
48    baseName = project.name + '-all'
49    from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
50    with jar
51}
52
53uploadArchives {
54    repositories {
55        mavenDeployer {
56            pom.artifactId = 'compiler'
57        }
58    }
59}
60
61project(':library').afterEvaluate { libProject ->
62    tasks['compileTestKotlin'].dependsOn libProject.tasks['uploadJarArchives']
63}
64