mirror of
https://github.com/Etar-Group/Etar-Calendar.git
synced 2024-09-11 10:05:47 +03:00
48 lines
1.3 KiB
Groovy
48 lines
1.3 KiB
Groovy
plugins {
|
|
id 'com.android.application' version '8.0.0' apply false
|
|
id 'com.android.library' version '8.0.0' apply false
|
|
id 'org.jetbrains.kotlin.android' version '1.8.0' apply false
|
|
id 'org.ec4j.editorconfig' version "0.0.3" apply false
|
|
id "org.jetbrains.gradle.plugin.idea-ext" version "1.1.5" apply true
|
|
}
|
|
|
|
// External project configuration start
|
|
|
|
// Configure and automatically generate AAR of the below mentioned external
|
|
// projects using a custom task in order to let Android Studio work properly.
|
|
// MUST BE RUN MANUALLY ON CLI COMPILATION
|
|
def external_projects = [
|
|
project(':external:calendar'),
|
|
project(':external:chips'),
|
|
project(':external:colorpicker'),
|
|
project(':external:timezonepicker')
|
|
]
|
|
|
|
configure(external_projects) {
|
|
apply {
|
|
from '../configuration/common.gradle'
|
|
}
|
|
}
|
|
|
|
task aarGen {
|
|
description "Generates AAR from the external projects for Etar-Calendar"
|
|
def aarTasks = [
|
|
':external:calendar:copyAAR',
|
|
':external:chips:copyAAR',
|
|
':external:colorpicker:copyAAR',
|
|
':external:timezonepicker:copyAAR'
|
|
]
|
|
dependsOn aarTasks
|
|
}
|
|
|
|
idea.project.settings {
|
|
taskTriggers {
|
|
afterSync tasks.getByName('aarGen')
|
|
}
|
|
}
|
|
// External project configuration end
|
|
|
|
task clean(type: Delete) {
|
|
delete rootProject.buildDir
|
|
}
|