| author | Da Risk <da_risk@geekorum.com> | 
| Thu, 01 May 2025 20:41:08 -0400 | |
| changeset 68 | f6133d9381b2 | 
| parent 34 | ce299aacc068 | 
| child 72 | 746669e015f9 | 
| permissions | -rw-r--r-- | 
| 0 | 1  | 
/*  | 
2  | 
* AboutOss is an utility library to retrieve and display  | 
|
3  | 
* opensource licenses in Android applications.  | 
|
4  | 
*  | 
|
| 
34
 
ce299aacc068
build: update license headers
 
Da Risk <da_risk@geekorum.com> 
parents: 
23 
diff
changeset
 | 
5  | 
* Copyright (C) 2023-2025 by Frederic-Charles Barthelery.  | 
| 0 | 6  | 
*  | 
7  | 
* This file is part of AboutOss.  | 
|
8  | 
*  | 
|
9  | 
* AboutOss is free software: you can redistribute it and/or modify  | 
|
10  | 
* it under the terms of the GNU General Public License as published by  | 
|
11  | 
* the Free Software Foundation, either version 3 of the License, or  | 
|
12  | 
* (at your option) any later version.  | 
|
13  | 
*  | 
|
14  | 
* AboutOss is distributed in the hope that it will be useful,  | 
|
15  | 
* but WITHOUT ANY WARRANTY; without even the implied warranty of  | 
|
16  | 
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the  | 
|
17  | 
* GNU General Public License for more details.  | 
|
18  | 
*  | 
|
19  | 
* You should have received a copy of the GNU General Public License  | 
|
20  | 
* along with AboutOss. If not, see <http://www.gnu.org/licenses/>.  | 
|
21  | 
*/  | 
|
22  | 
||
23  | 
plugins {
 | 
|
24  | 
`kotlin-dsl`  | 
|
25  | 
}  | 
|
26  | 
||
27  | 
||
28  | 
version = "1.0"  | 
|
29  | 
||
30  | 
kotlin{
 | 
|
31  | 
    sourceSets {
 | 
|
32  | 
        all {
 | 
|
33  | 
            languageSettings {
 | 
|
34  | 
                optIn("kotlin.RequiresOptIn")
 | 
|
35  | 
}  | 
|
36  | 
}  | 
|
37  | 
}  | 
|
38  | 
}  | 
|
39  | 
repositories {
 | 
|
40  | 
    google {
 | 
|
41  | 
        content {
 | 
|
42  | 
            includeGroupByRegex("""android\.arch\..*""")
 | 
|
43  | 
            includeGroupByRegex("""androidx\..*""")
 | 
|
44  | 
            includeGroupByRegex("""com\.android\..*""")
 | 
|
45  | 
            includeGroupByRegex("""com\.google\..*""")
 | 
|
46  | 
            includeGroup("com.crashlytics.sdk.android")
 | 
|
47  | 
            includeGroup("io.fabric.sdk.android")
 | 
|
48  | 
            includeGroup("org.chromium.net")
 | 
|
49  | 
            includeGroup("zipflinger")
 | 
|
50  | 
            includeGroup("com.android")
 | 
|
51  | 
}  | 
|
52  | 
}  | 
|
53  | 
mavenCentral()  | 
|
54  | 
gradlePluginPortal()  | 
|
55  | 
}  | 
|
56  | 
||
| 22 | 57  | 
// see https://github.com/gradle/gradle/issues/17963  | 
58  | 
fun Provider<PluginDependency>.gav(): String {
 | 
|
59  | 
val t = get()  | 
|
60  | 
val id = t.pluginId  | 
|
61  | 
val version = t.version  | 
|
62  | 
return "$id:$id.gradle.plugin:$version"  | 
|
63  | 
}  | 
|
64  | 
||
| 0 | 65  | 
dependencies {
 | 
| 22 | 66  | 
implementation(libs.plugins.com.android.application.gav())  | 
| 
23
 
5bba9369df0f
build: update to kotlin 2.1.10
 
Da Risk <da_risk@geekorum.com> 
parents: 
22 
diff
changeset
 | 
67  | 
implementation(libs.plugins.org.jetbrains.kotlin.android.gav())  | 
| 0 | 68  | 
    implementation("gradle.plugin.com.hierynomus.gradle.plugins:license-gradle-plugin:0.16.1")
 | 
| 
68
 
f6133d9381b2
build: configure maven publishing using gradle maven publish plugin
 
Da Risk <da_risk@geekorum.com> 
parents: 
34 
diff
changeset
 | 
69  | 
implementation(libs.plugins.com.vanniktech.maven.publish.gav())  | 
| 0 | 70  | 
    implementation("com.geekorum.gradle.avdl:plugin:0.0.3")
 | 
71  | 
    implementation("com.geekorum.gradle.avdl:flydroid:0.0.3")
 | 
|
72  | 
}  |