fluentui-android/build.gradle

87 строки
2.7 KiB
Groovy

/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
apply plugin: 'io.codearte.nexus-staging'
buildscript {
ext.kotlin_version = '1.6.20'
ext.nexus_plugin_version = '0.30.0'
ext.hydra_client_plugin = '1.0.31'
repositories {
google()
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:$nexus_plugin_version"
classpath "com.microsoft.hydralab:gradle_plugin:$hydra_client_plugin"
}
}
apply plugin: "com.microsoft.hydralab.client-util"
allprojects {
project.ext {
constants = [
minSdkVersion: 21,
targetSdkVersion: 31,
compileSdkVersion: 31,
]
buildToolVersion = '30.0.0'
kotlin_version = '1.6.20'
appCompatVersion = '1.3.0'
materialVersion = '1.3.0'
supportVersion = '28.0.0'
recyclerViewVersion = '1.1.0'
junitVersion = '4.12'
extJunitVersion = '1.1.2'
espressoVersion = '3.3.0'
roboelectricVersion = '4.4'
constraintLayoutVersion = '2.0.4'
constraintLayoutComposeVersion = '1.0.1'
exifInterfaceVersion = '1.3.2'
duoVersion = '1.0.0-alpha01'
tokenautocompleteVersion = '2.0.8'
threetenabpVersion = '1.1.0'
universalPkgDir = "universal"
composeVersion = '1.2.0-alpha08'
lifecycleVersion = '2.4.1'
junitVersion = '4.13'
mockitoVersion = '1.10.19'
espressoVersion = '3.3.0'
androidxRunner = '1.4.0'
robolectric = '4.8.1'
}
repositories {
google()
jcenter()
maven {
url "https://pkgs.dev.azure.com/MicrosoftDeviceSDK/DuoSDK-Public/_packaging/Duo-SDK-Feed/maven/v1"
}
}
}
task makeUniversalPkg(type: Copy) {
duplicatesStrategy = DuplicatesStrategy.WARN
from('.')
include('**/*.aar')
exclude('**/FluentUI-release.aar')
exclude("$universalPkgDir")
into("$rootDir/$universalPkgDir/libs")
includeEmptyDirs = false
eachFile {
path = name
}
rename '(.+)-release', '$1'
}
task clean(type: Delete) {
delete rootProject.buildDir
}