equal
deleted
inserted
replaced
24 plugins { |
24 plugins { |
25 id("com.android.library") |
25 id("com.android.library") |
26 kotlin("multiplatform") |
26 kotlin("multiplatform") |
27 id("com.geekorum.build.source-license-checker") |
27 id("com.geekorum.build.source-license-checker") |
28 alias(libs.plugins.org.jetbrains.kotlinx.serialization) |
28 alias(libs.plugins.org.jetbrains.kotlinx.serialization) |
29 `maven-publish` |
29 id("com.geekorum.build.maven-publish") |
30 } |
30 } |
31 |
31 |
32 group = "com.geekorum.aboutoss" |
32 group = "com.geekorum.aboutoss" |
33 version = "0.1.0" |
33 version = "0.1.0" |
34 |
34 |
102 testImplementation(libs.junit) |
102 testImplementation(libs.junit) |
103 androidTestImplementation(libs.androidx.test.ext.junit) |
103 androidTestImplementation(libs.androidx.test.ext.junit) |
104 androidTestImplementation(libs.espresso.core) |
104 androidTestImplementation(libs.espresso.core) |
105 } |
105 } |
106 |
106 |
107 publishing { |
107 mavenPublishing { |
108 publications { |
108 coordinates(groupId = group.toString(), name, version.toString()) |
109 val pomConfiguration: (MavenPom).() -> Unit = { |
109 } |
110 name.set("core") |
|
111 description.set("A library to retrieve and display opensource licenses in Android applications") |
|
112 licenses { |
|
113 license { |
|
114 name.set("GPL-3.0-or-later") |
|
115 url.set("https://www.gnu.org/licenses/gpl-3.0.html") |
|
116 distribution.set("repo") |
|
117 } |
|
118 } |
|
119 inceptionYear.set("2023") |
|
120 } |
|
121 |
110 |
122 register<MavenPublication>("release") { |
|
123 afterEvaluate { |
|
124 from(components["release"]) |
|
125 } |
|
126 artifactId = "core" |
|
127 pom(pomConfiguration) |
|
128 } |
|
129 } |
|
130 } |
|