-
Notifications
You must be signed in to change notification settings - Fork 19
/
build.gradle.kts
95 lines (85 loc) · 3.16 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
import com.android.build.api.variant.AndroidComponentsExtension
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
/*
* This file is part of the UNES Open Source Project.
* UNES is licensed under the GNU GPLv3.
*
* Copyright (c) 2020. João Paulo Sena <joaopaulo761@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.android.dynamic.feature) apply false
alias(libs.plugins.androidx.room) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.kotlin.kapt) apply false
alias(libs.plugins.kotlin.parcelize) apply false
alias(libs.plugins.google.services) apply false
alias(libs.plugins.play.publisher) apply false
alias(libs.plugins.kotlinter.gradle) apply false
alias(libs.plugins.androidx.navigation.safe.args) apply false
alias(libs.plugins.firebase.crashlytics.gradle) apply false
alias(libs.plugins.hilt.android.gradle) apply false
alias(libs.plugins.aboutlibraries) apply false
alias(libs.plugins.google.ksp) apply false
}
buildscript {
repositories {
google()
mavenCentral()
mavenLocal()
}
}
allprojects {
repositories {
google()
mavenCentral()
maven { setUrl("https://jitpack.io") }
mavenLocal()
}
gradle.projectsEvaluated {
tasks.withType<JavaCompile> {
options.compilerArgs.addAll(listOf("-Xmaxerrs", "10000"))
options.compilerArgs.addAll(listOf("-Xmaxwarns", "10000"))
}
}
}
subprojects {
tasks.configureEach {
if (name == "preBuild") {
mustRunAfter("lintKotlin")
}
}
tasks.withType<KotlinCompile>().configureEach {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_17)
freeCompilerArgs.add("-Xstring-concat=inline")
}
}
pluginManager.withPlugin("com.android.application") {
extensions.getByType(AndroidComponentsExtension::class.java).finalizeDsl { ext ->
ext.compileOptions.sourceCompatibility = JavaVersion.VERSION_17
ext.compileOptions.targetCompatibility = JavaVersion.VERSION_17
}
}
pluginManager.withPlugin("com.android.library") {
extensions.getByType(AndroidComponentsExtension::class.java).finalizeDsl { ext ->
ext.compileOptions.sourceCompatibility = JavaVersion.VERSION_17
ext.compileOptions.targetCompatibility = JavaVersion.VERSION_17
}
}
}