build.gradle revision 9784c9aaedeb863018f5fcaa0a598e8e2f8ed2f3
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" 18apply plugin: 'com.android.databinding.bintray' 19 20 21sourceCompatibility = dataBindingConfig.javaTargetCompatibility 22targetCompatibility = dataBindingConfig.javaSourceCompatibility 23 24buildscript { 25 dependencies { 26 classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${dataBindingConfig.kotlinVersion}" 27 classpath 'commons-io:commons-io:2.4' 28 } 29} 30 31dependencies { 32 compile project(':dataBinding:compilerCommon') 33 compile project(':dataBinding:baseLibrary') 34 compile 'org.apache.commons:commons-lang3:3.3.2' 35 compile 'commons-io:commons-io:2.4' 36 compile 'commons-codec:commons-codec:1.10' 37 compile "org.jetbrains.kotlin:kotlin-stdlib:${dataBindingConfig.kotlinVersion}" 38 compile 'com.tunnelvisionlabs:antlr4:4.5' 39 testCompile files('../baseLibrary/src/main/java') 40 testCompile files('../extensions/library/src/main/java') 41 testCompile 'junit:junit:4.12' 42} 43 44uploadArchives { 45 repositories { 46 mavenDeployer { 47 pom.artifactId = 'compiler' 48 pom.project { 49 licenses { 50 license { 51 name dataBindingConfig.licenseName 52 url dataBindingConfig.licenseUrl 53 distribution dataBindingConfig.licenseDistribution 54 } 55 } 56 } 57 } 58 } 59} 60 61fullJar(project) 62