| author | Da Risk <da_risk@geekorum.com> |
| Tue, 21 Mar 2023 13:40:12 -0400 | |
| changeset 981 | d07970c3ec33 |
| parent 944 | f542381c10d3 |
| child 1013 | 18d820f292d6 |
| permissions | -rw-r--r-- |
| 181 | 1 |
/* |
| 0 | 2 |
* Geekttrss is a RSS feed reader application on the Android Platform. |
3 |
* |
|
|
943
298742859784
build: update license headers
Da Risk <da_risk@geekorum.com>
parents:
941
diff
changeset
|
4 |
* Copyright (C) 2017-2023 by Frederic-Charles Barthelery. |
| 0 | 5 |
* |
6 |
* This file is part of Geekttrss. |
|
7 |
* |
|
8 |
* Geekttrss is free software: you can redistribute it and/or modify |
|
9 |
* it under the terms of the GNU General Public License as published by |
|
10 |
* the Free Software Foundation, either version 3 of the License, or |
|
11 |
* (at your option) any later version. |
|
12 |
* |
|
13 |
* Geekttrss is distributed in the hope that it will be useful, |
|
14 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
15 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
16 |
* GNU General Public License for more details. |
|
17 |
* |
|
18 |
* You should have received a copy of the GNU General Public License |
|
19 |
* along with Geekttrss. If not, see <http://www.gnu.org/licenses/>. |
|
20 |
*/ |
|
|
364
968f44db1e96
Configure Java version globally
Da Risk <da_risk@geekorum.com>
parents:
363
diff
changeset
|
21 |
import com.android.build.gradle.BaseExtension |
|
525
e884f73f9eef
build: update source-licence-checker and enable it with a flag on ci build only
Da Risk <da_risk@geekorum.com>
parents:
521
diff
changeset
|
22 |
import com.geekorum.build.SourceLicenseCheckerPlugin |
|
599
235be2a04607
build: configure annotation processor deps to build on java 11
Da Risk <da_risk@geekorum.com>
parents:
591
diff
changeset
|
23 |
import com.geekorum.build.configureAnnotationProcessorDeps |
|
364
968f44db1e96
Configure Java version globally
Da Risk <da_risk@geekorum.com>
parents:
363
diff
changeset
|
24 |
import com.geekorum.build.configureJavaVersion |
|
161
a359009c33c3
Build: create version alignment platform for all projects
Da Risk <da_risk@geekorum.com>
parents:
147
diff
changeset
|
25 |
import com.geekorum.build.createComponentsPlatforms |
|
101
247d5b1c0324
build: use dependencies version alignment and filter content of google()
Da Risk <da_risk@geekorum.com>
parents:
60
diff
changeset
|
26 |
import com.geekorum.build.setupGoogleContent |
| 363 | 27 |
import org.jetbrains.kotlin.gradle.plugin.KaptExtension |
| 280 | 28 |
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile |
| 0 | 29 |
|
30 |
plugins {
|
|
| 566 | 31 |
// these should not be needed but for an unknown reason they get applied |
32 |
// with bad ordering if not there. or they can't be applied dynamically |
|
33 |
// version used is in gradle.properties |
|
|
941
dd7a7a2adb1c
build: move dependencies to version catalog
Da Risk <da_risk@geekorum.com>
parents:
918
diff
changeset
|
34 |
alias(libs.plugins.firebase.crashlytics) apply false |
|
dd7a7a2adb1c
build: move dependencies to version catalog
Da Risk <da_risk@geekorum.com>
parents:
918
diff
changeset
|
35 |
alias(libs.plugins.google.gms.google.services) apply false |
| 0 | 36 |
} |
37 |
||
38 |
// some extra properties |
|
|
892
ef6566a3303b
build: update a bunch of dependencies
Da Risk <da_risk@geekorum.com>
parents:
891
diff
changeset
|
39 |
extra["compileSdkInt"] = 33 |
| 0 | 40 |
|
41 |
allprojects {
|
|
42 |
repositories {
|
|
|
101
247d5b1c0324
build: use dependencies version alignment and filter content of google()
Da Risk <da_risk@geekorum.com>
parents:
60
diff
changeset
|
43 |
google().setupGoogleContent() |
|
809
a1586e51358d
build: remove jcenter() use mavenCentral()
Da Risk <da_risk@geekorum.com>
parents:
765
diff
changeset
|
44 |
mavenCentral() |
|
161
a359009c33c3
Build: create version alignment platform for all projects
Da Risk <da_risk@geekorum.com>
parents:
147
diff
changeset
|
45 |
// for geekdroid |
|
670
1e81fe121832
Use geekdroid from jitpack instead of prebuilt library
Da Risk <da_risk@geekorum.com>
parents:
611
diff
changeset
|
46 |
maven {
|
|
1e81fe121832
Use geekdroid from jitpack instead of prebuilt library
Da Risk <da_risk@geekorum.com>
parents:
611
diff
changeset
|
47 |
url = uri("https://jitpack.io")
|
|
1e81fe121832
Use geekdroid from jitpack instead of prebuilt library
Da Risk <da_risk@geekorum.com>
parents:
611
diff
changeset
|
48 |
} |
|
161
a359009c33c3
Build: create version alignment platform for all projects
Da Risk <da_risk@geekorum.com>
parents:
147
diff
changeset
|
49 |
} |
|
a359009c33c3
Build: create version alignment platform for all projects
Da Risk <da_risk@geekorum.com>
parents:
147
diff
changeset
|
50 |
dependencies {
|
|
a359009c33c3
Build: create version alignment platform for all projects
Da Risk <da_risk@geekorum.com>
parents:
147
diff
changeset
|
51 |
createComponentsPlatforms() |
| 0 | 52 |
} |
|
599
235be2a04607
build: configure annotation processor deps to build on java 11
Da Risk <da_risk@geekorum.com>
parents:
591
diff
changeset
|
53 |
configureAnnotationProcessorDeps() |
| 280 | 54 |
|
|
525
e884f73f9eef
build: update source-licence-checker and enable it with a flag on ci build only
Da Risk <da_risk@geekorum.com>
parents:
521
diff
changeset
|
55 |
apply<SourceLicenseCheckerPlugin>() |
|
e884f73f9eef
build: update source-licence-checker and enable it with a flag on ci build only
Da Risk <da_risk@geekorum.com>
parents:
521
diff
changeset
|
56 |
|
| 280 | 57 |
tasks.withType<KotlinCompile> {
|
|
342
10640a083343
OnDemandModuleManager: use flow instead of channel when applicable
Da Risk <da_risk@geekorum.com>
parents:
341
diff
changeset
|
58 |
kotlinOptions {
|
|
944
f542381c10d3
build: update to kotlin 1.8.0
Da Risk <da_risk@geekorum.com>
parents:
943
diff
changeset
|
59 |
freeCompilerArgs = listOf("-Xjvm-default=all")
|
|
342
10640a083343
OnDemandModuleManager: use flow instead of channel when applicable
Da Risk <da_risk@geekorum.com>
parents:
341
diff
changeset
|
60 |
} |
| 280 | 61 |
} |
| 363 | 62 |
|
63 |
afterEvaluate {
|
|
64 |
extensions.findByType<KaptExtension>()?.arguments {
|
|
65 |
arg("dagger.formatGeneratedSource", "enabled")
|
|
66 |
} |
|
|
364
968f44db1e96
Configure Java version globally
Da Risk <da_risk@geekorum.com>
parents:
363
diff
changeset
|
67 |
extensions.findByType<BaseExtension>()?.apply {
|
|
968f44db1e96
Configure Java version globally
Da Risk <da_risk@geekorum.com>
parents:
363
diff
changeset
|
68 |
configureJavaVersion() |
|
968f44db1e96
Configure Java version globally
Da Risk <da_risk@geekorum.com>
parents:
363
diff
changeset
|
69 |
} |
| 363 | 70 |
} |
| 0 | 71 |
} |
72 |
||
73 |
tasks.register("clean", Delete::class.java) {
|
|
74 |
delete(buildDir) |
|
75 |
} |