blob: d7d8d294264b909257cf5d4a964112167a20df16 [file] [log] [blame]
/*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
ext.GRADLE_PLUGIN_VERSION = '1.0.0'
ext.VERSION0 = 0 + 1;
ext.VERSION1 = 1;
ext {
COMPILE_SDK_VERSION = 20
COMPILE_SDK_VERSION = 21
GROUP1 = "group1"
ARTIFACT1 = 'artifact1'
GROUP2 = 'group2'
def tmpLocalVar = 2
ARTIFACT2 = 'group' + tmpLocalVar
TMP = tmpLocalVar
VERSION2 = TMP
}
if (System.currentTimeMillis() > 1) {
GROUP2 = 'group22'
}
def BUILD_TOOLS_VERSION = '20.0.' + 0
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:$GRADLE_PLUGIN_VERSION"
}
}
apply plugin: 'com.android.application'
android {
compileSdkVersion COMPILE_SDK_VERSION
buildToolsVersion BUILD_TOOLS_VERSION
}
dependencies {
compile "g:a:$VERSION0"
compile "$GROUP1:$ARTIFACT1:$VERSION1"
test "$GROUP2:$ARTIFACT2:$VERSION2"
test "g1:a1:${1 + 2}"
}