• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 */
16apply plugin: 'java'
17apply plugin: 'kotlin'
18
19sourceCompatibility = dataBindingConfig.javaTargetCompatibility
20targetCompatibility = dataBindingConfig.javaSourceCompatibility
21
22sourceSets {
23    main.java.srcDirs += 'src/main/kotlin'
24}
25
26buildscript {
27    // to make IJ happy
28    ext.kotlin_version = dataBindingConfig.kotlinVersion
29    dependencies {
30        classpath 'commons-io:commons-io:2.4'
31        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
32    }
33}
34
35dependencies {
36    compile project(':dataBinding:compilerCommon')
37    compile project(':dataBinding:baseLibrary')
38    compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
39    compile 'commons-io:commons-io:2.4'
40    compile 'commons-codec:commons-codec:1.10'
41    compile 'com.tunnelvisionlabs:antlr4:4.5'
42    compile 'com.googlecode.juniversalchardet:juniversalchardet:1.0.3'
43    testCompile 'junit:junit:4.12'
44}
45
46uploadArchives {
47    repositories {
48        mavenDeployer {
49            pom.artifactId = 'compiler'
50            pom.project {
51                licenses {
52                    license {
53                        name dataBindingConfig.licenseName
54                        url dataBindingConfig.licenseUrl
55                        distribution dataBindingConfig.licenseDistribution
56                    }
57                }
58            }
59        }
60    }
61}
62
63
64
65project.ext.pomName = 'Data Binding Annotation Processor'
66project.ext.pomDesc = 'The annotation processor for Data Binding. Generates binding classes for runtime.'
67enablePublishing(this, true)
68fullJar(project)
69test.enabled = !System.getProperty("java.version").startsWith("1.6")
70