-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
134 changed files
with
225 additions
and
467 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
plugins { | ||
`kotlin-dsl` | ||
} | ||
|
||
repositories { | ||
google() | ||
mavenCentral() | ||
gradlePluginPortal() // Optional, for other Gradle plugins | ||
} | ||
|
||
|
||
dependencies { | ||
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.0") | ||
implementation("com.android.tools.build:gradle:7.4.0") | ||
implementation("org.jetbrains.dokka:dokka-gradle-plugin:1.5.31") | ||
implementation("org.jacoco:org.jacoco.core:0.8.7") | ||
} | ||
|
||
gradlePlugin { | ||
plugins { | ||
register("publishingConventionPlugin") { | ||
id = "android.maps.compose.PublishingConventionPlugin" | ||
implementationClass = "PublishingConventionPlugin" | ||
} | ||
} | ||
} |
Binary file added
BIN
+24 Bytes
build-logic/convention/build/classes/kotlin/main/META-INF/convention.kotlin_module
Binary file not shown.
Binary file added
BIN
+1.5 KB
...classes/kotlin/main/PublishingConventionPlugin$configureJacoco$$inlined$configure$1.class
Binary file not shown.
Binary file added
BIN
+3.3 KB
...classes/kotlin/main/PublishingConventionPlugin$configureJacoco$$inlined$configure$2.class
Binary file not shown.
Binary file added
BIN
+1.73 KB
...c/convention/build/classes/kotlin/main/PublishingConventionPlugin$configureJacoco$1.class
Binary file not shown.
Binary file added
BIN
+1.8 KB
...convention/build/classes/kotlin/main/PublishingConventionPlugin$configureJacoco$2$1.class
Binary file not shown.
Binary file added
BIN
+1.88 KB
...c/convention/build/classes/kotlin/main/PublishingConventionPlugin$configureJacoco$2.class
Binary file not shown.
Binary file added
BIN
+1.54 KB
...ses/kotlin/main/PublishingConventionPlugin$configurePublishing$$inlined$configure$1.class
Binary file not shown.
Binary file added
BIN
+1.54 KB
...ses/kotlin/main/PublishingConventionPlugin$configurePublishing$$inlined$configure$2.class
Binary file not shown.
Binary file added
BIN
+1.81 KB
...tion/build/classes/kotlin/main/PublishingConventionPlugin$configurePublishing$1$1$1.class
Binary file not shown.
Binary file added
BIN
+1.89 KB
...ention/build/classes/kotlin/main/PublishingConventionPlugin$configurePublishing$1$1.class
Binary file not shown.
Binary file added
BIN
+1.81 KB
...nvention/build/classes/kotlin/main/PublishingConventionPlugin$configurePublishing$1.class
Binary file not shown.
Binary file added
BIN
+2.1 KB
.../build/classes/kotlin/main/PublishingConventionPlugin$configurePublishing$2$1$1$1$1.class
Binary file not shown.
Binary file added
BIN
+2.18 KB
...uild/classes/kotlin/main/PublishingConventionPlugin$configurePublishing$2$1$1$1$2$1.class
Binary file not shown.
Binary file added
BIN
+2 KB
.../build/classes/kotlin/main/PublishingConventionPlugin$configurePublishing$2$1$1$1$2.class
Binary file not shown.
Binary file added
BIN
+2.02 KB
.../build/classes/kotlin/main/PublishingConventionPlugin$configurePublishing$2$1$1$1$3.class
Binary file not shown.
Binary file added
BIN
+2.02 KB
...uild/classes/kotlin/main/PublishingConventionPlugin$configurePublishing$2$1$1$1$4$1.class
Binary file not shown.
Binary file added
BIN
+2.01 KB
.../build/classes/kotlin/main/PublishingConventionPlugin$configurePublishing$2$1$1$1$4.class
Binary file not shown.
Binary file added
BIN
+2.86 KB
...on/build/classes/kotlin/main/PublishingConventionPlugin$configurePublishing$2$1$1$1.class
Binary file not shown.
Binary file added
BIN
+1.96 KB
...tion/build/classes/kotlin/main/PublishingConventionPlugin$configurePublishing$2$1$1.class
Binary file not shown.
Binary file added
BIN
+1.16 KB
...shingConventionPlugin$configurePublishing$2$1$inlined$sam$i$org_gradle_api_Action$0.class
Binary file not shown.
Binary file added
BIN
+3.3 KB
...ention/build/classes/kotlin/main/PublishingConventionPlugin$configurePublishing$2$1.class
Binary file not shown.
Binary file added
BIN
+2.09 KB
...on/build/classes/kotlin/main/PublishingConventionPlugin$configurePublishing$2$2$1$1.class
Binary file not shown.
Binary file added
BIN
+2.74 KB
...tion/build/classes/kotlin/main/PublishingConventionPlugin$configurePublishing$2$2$1.class
Binary file not shown.
Binary file added
BIN
+1.79 KB
...ention/build/classes/kotlin/main/PublishingConventionPlugin$configurePublishing$2$2.class
Binary file not shown.
Binary file added
BIN
+1.94 KB
...nvention/build/classes/kotlin/main/PublishingConventionPlugin$configurePublishing$2.class
Binary file not shown.
Binary file added
BIN
+1.49 KB
...lasses/kotlin/main/PublishingConventionPlugin$configureSigning$$inlined$configure$1.class
Binary file not shown.
Binary file added
BIN
+3.29 KB
...lasses/kotlin/main/PublishingConventionPlugin$configureSigning$$inlined$configure$2.class
Binary file not shown.
Binary file added
BIN
+1.56 KB
...tlin/main/PublishingConventionPlugin$configureSigning$1$invoke$$inlined$getByType$1.class
Binary file not shown.
Binary file added
BIN
+3.81 KB
.../convention/build/classes/kotlin/main/PublishingConventionPlugin$configureSigning$1.class
Binary file not shown.
Binary file added
BIN
+1.06 KB
...lasses/kotlin/main/PublishingConventionPlugin$inlined$sam$i$org_gradle_api_Action$0.class
Binary file not shown.
Binary file added
BIN
+8.31 KB
build-logic/convention/build/classes/kotlin/main/PublishingConventionPlugin.class
Binary file not shown.
Binary file added
BIN
+4 KB
...ic/convention/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab
Binary file not shown.
Binary file added
BIN
+4 KB
...ion/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream
Binary file not shown.
Binary file added
BIN
+8 Bytes
...build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len
Binary file not shown.
Binary file added
BIN
+8 Bytes
...onvention/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len
Binary file not shown.
Binary file added
BIN
+17.4 KB
...ion/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at
Binary file not shown.
Binary file added
BIN
+32 KB
.../convention/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i
Binary file not shown.
Binary file added
BIN
+8 Bytes
...vention/build/kotlin/compileKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len
Binary file not shown.
Binary file added
BIN
+4 KB
...onvention/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab
Binary file not shown.
Binary file added
BIN
+4 KB
...build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream
Binary file not shown.
Binary file added
BIN
+8 Bytes
...d/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len
Binary file not shown.
Binary file added
BIN
+8 Bytes
...ntion/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len
Binary file not shown.
Binary file added
BIN
+70 Bytes
...build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at
Binary file not shown.
Binary file added
BIN
+32 KB
...vention/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i
Binary file not shown.
Binary file added
BIN
+8 Bytes
...ion/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len
Binary file not shown.
Binary file added
BIN
+4 KB
...on/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab
Binary file not shown.
Binary file added
BIN
+4 KB
...otlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream
Binary file not shown.
Binary file added
BIN
+8 Bytes
...n/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len
Binary file not shown.
Binary file added
BIN
+8 Bytes
...uild/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len
Binary file not shown.
Binary file added
BIN
+462 Bytes
...otlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at
Binary file not shown.
Binary file added
BIN
+32 KB
.../build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i
Binary file not shown.
Binary file added
BIN
+8 Bytes
...ld/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len
Binary file not shown.
Binary file added
BIN
+4 KB
...on/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab
Binary file not shown.
Binary file added
BIN
+4 KB
...otlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream
Binary file not shown.
Binary file added
BIN
+8 Bytes
...n/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len
Binary file not shown.
Binary file added
BIN
+8 Bytes
...uild/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len
Binary file not shown.
Binary file added
BIN
+12.1 KB
...otlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at
Binary file not shown.
Binary file added
BIN
+32 KB
.../build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i
Binary file not shown.
Binary file added
BIN
+8 Bytes
...ld/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len
Binary file not shown.
Binary file added
BIN
+4 KB
build-logic/convention/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab
Binary file not shown.
Binary file added
BIN
+4 KB
...convention/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream
Binary file not shown.
Binary file added
BIN
+8 Bytes
...ention/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len
Binary file not shown.
Binary file added
BIN
+8 Bytes
...logic/convention/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len
Binary file not shown.
Binary file added
BIN
+2.47 KB
...convention/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at
Binary file not shown.
Binary file added
BIN
+32 KB
...d-logic/convention/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i
Binary file not shown.
Binary file added
BIN
+8 Bytes
...gic/convention/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len
Binary file not shown.
Binary file added
BIN
+4 KB
...nvention/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab
Binary file not shown.
Binary file added
BIN
+4 KB
...uild/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream
Binary file not shown.
Binary file added
BIN
+8 Bytes
.../kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len
Binary file not shown.
Binary file added
BIN
+8 Bytes
...tion/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len
Binary file not shown.
Binary file added
BIN
+11.8 KB
...uild/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at
Binary file not shown.
Binary file added
BIN
+32 KB
...ention/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i
Binary file not shown.
Binary file added
BIN
+8 Bytes
...on/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len
Binary file not shown.
Binary file added
BIN
+4 KB
...-logic/convention/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab
Binary file not shown.
Binary file added
BIN
+4 KB
...vention/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream
Binary file not shown.
Binary file added
BIN
+8 Bytes
...ion/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len
Binary file not shown.
Binary file added
BIN
+8 Bytes
...ic/convention/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len
Binary file not shown.
Binary file added
BIN
+252 Bytes
...vention/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at
Binary file not shown.
Binary file added
BIN
+32 KB
...ogic/convention/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i
Binary file not shown.
Binary file added
BIN
+8 Bytes
.../convention/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len
Binary file not shown.
Binary file added
BIN
+4 KB
...ogic/convention/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab
Binary file not shown.
Binary file added
BIN
+4 KB
...ntion/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream
Binary file not shown.
Binary file added
BIN
+8 Bytes
...n/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len
Binary file not shown.
Binary file added
BIN
+8 Bytes
.../convention/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len
Binary file not shown.
Binary file added
BIN
+217 Bytes
...ntion/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at
Binary file not shown.
Binary file added
BIN
+32 KB
...ic/convention/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i
Binary file not shown.
Binary file added
BIN
+8 Bytes
...onvention/build/kotlin/compileKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len
Binary file not shown.
2 changes: 2 additions & 0 deletions
2
build-logic/convention/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/counters.tab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
7 | ||
0 |
Binary file added
BIN
+4 KB
...d-logic/convention/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab
Binary file not shown.
Binary file added
BIN
+4 KB
...nvention/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream
Binary file not shown.
Binary file added
BIN
+8 Bytes
...tion/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len
Binary file not shown.
Binary file added
BIN
+8 Bytes
...gic/convention/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len
Binary file not shown.
Binary file added
BIN
+91 Bytes
...nvention/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at
Binary file not shown.
Binary file added
BIN
+32 KB
...logic/convention/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i
Binary file not shown.
Binary file added
BIN
+8 Bytes
...c/convention/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len
Binary file not shown.
Binary file added
BIN
+4 KB
...d-logic/convention/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab
Binary file not shown.
Binary file added
BIN
+4 KB
...nvention/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream
Binary file not shown.
Binary file added
BIN
+8 Bytes
...tion/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len
Binary file not shown.
Binary file added
BIN
+8 Bytes
...gic/convention/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len
Binary file not shown.
Binary file added
BIN
+462 Bytes
...nvention/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at
Binary file not shown.
Binary file added
BIN
+32 KB
...logic/convention/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i
Binary file not shown.
Binary file added
BIN
+8 Bytes
...c/convention/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len
Binary file not shown.
Binary file added
BIN
+8 KB
build-logic/convention/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab
Binary file not shown.
Binary file added
BIN
+36 KB
.../convention/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream
Binary file not shown.
Binary file added
BIN
+8 Bytes
...vention/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len
Binary file not shown.
Binary file added
BIN
+8 Bytes
...-logic/convention/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.len
Binary file not shown.
Binary file added
BIN
+20.1 KB
...gic/convention/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.values
Binary file not shown.
Binary file added
BIN
+26.8 KB
.../convention/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...c/convention/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.s
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
�j�m�j |
Binary file added
BIN
+32 KB
build-logic/convention/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab_i
Binary file not shown.
Binary file added
BIN
+8 Bytes
...ogic/convention/build/kotlin/compileKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len
Binary file not shown.
Binary file added
BIN
+18 Bytes
build-logic/convention/build/kotlin/compileKotlin/cacheable/last-build.bin
Binary file not shown.
Binary file added
BIN
+32.1 KB
...ic/convention/build/kotlin/compileKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin
Binary file not shown.
Binary file added
BIN
+133 Bytes
build-logic/convention/build/kotlin/compileKotlin/local-state/build-history.bin
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions
1
...ention/build/pluginDescriptors/android.maps.compose.PublishingConventionPlugin.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
implementation-class=PublishingConventionPlugin |
1 change: 1 addition & 0 deletions
1
...s/main/META-INF/gradle-plugins/android.maps.compose.PublishingConventionPlugin.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
implementation-class=PublishingConventionPlugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Manifest-Version: 1.0 | ||
|
106 changes: 106 additions & 0 deletions
106
build-logic/convention/src/main/kotlin/PublishingConventionPlugin.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
// buildSrc/src/main/kotlin/PublishingConventionPlugin.kt | ||
import org.gradle.api.Plugin | ||
import org.gradle.api.Project | ||
import org.gradle.api.publish.PublishingExtension | ||
import org.gradle.api.publish.maven.MavenPublication | ||
import org.gradle.kotlin.dsl.* | ||
import org.gradle.testing.jacoco.plugins.JacocoPluginExtension | ||
import org.gradle.api.tasks.testing.Test | ||
import org.gradle.testing.jacoco.plugins.JacocoTaskExtension | ||
import org.gradle.plugins.signing.SigningExtension | ||
import org.gradle.api.publish.maven.* | ||
|
||
class PublishingConventionPlugin : Plugin<Project> { | ||
override fun apply(project: Project) { | ||
project.run { | ||
|
||
applyPlugins() | ||
configureJacoco() | ||
configurePublishing() | ||
configureSigning() | ||
} | ||
} | ||
|
||
private fun Project.applyPlugins() { | ||
apply(plugin = "com.android.library") | ||
apply(plugin = "com.mxalbert.gradle.jacoco-android") | ||
apply(plugin = "maven-publish") | ||
apply(plugin = "org.jetbrains.dokka") | ||
apply(plugin = "signing") | ||
} | ||
|
||
private fun Project.configureJacoco() { | ||
configure<JacocoPluginExtension> { | ||
toolVersion = "0.8.7" | ||
|
||
} | ||
|
||
tasks.withType<Test>().configureEach { | ||
extensions.configure(JacocoTaskExtension::class.java) { | ||
isIncludeNoLocationClasses = true | ||
excludes = listOf("jdk.internal.*") | ||
} | ||
} | ||
} | ||
|
||
private fun Project.configurePublishing() { | ||
extensions.configure<com.android.build.gradle.LibraryExtension> { | ||
publishing { | ||
singleVariant("release") { | ||
withSourcesJar() | ||
withJavadocJar() | ||
} | ||
} | ||
} | ||
extensions.configure<PublishingExtension> { | ||
publications { | ||
create<MavenPublication>("aar") { | ||
// from(components["release"]) | ||
pom { | ||
name.set(project.name) | ||
description.set("Jetpack Compose components for the Maps SDK for Android") | ||
url.set("https://github.com/googlemaps/android-maps-compose") | ||
scm { | ||
connection.set("scm:[email protected]:googlemaps/android-maps-compose.git") | ||
developerConnection.set("scm:[email protected]:googlemaps/android-maps-compose.git") | ||
url.set("https://github.com/googlemaps/android-maps-compose") | ||
} | ||
licenses { | ||
license { | ||
name.set("The Apache Software License, Version 2.0") | ||
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt") | ||
distribution.set("repo") | ||
} | ||
} | ||
organization { | ||
name.set("Google Inc") | ||
url.set("http://developers.google.com/maps") | ||
} | ||
developers { | ||
developer { | ||
name.set("Google Inc.") | ||
} | ||
} | ||
} | ||
} | ||
} | ||
repositories { | ||
maven { | ||
val releasesRepoUrl = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/") | ||
val snapshotsRepoUrl = uri("https://oss.sonatype.org/content/repositories/snapshots/") | ||
url = if (project.version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl | ||
credentials { | ||
username = project.findProperty("sonatypeUsername") as String? | ||
password = project.findProperty("sonatypePassword") as String? | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
private fun Project.configureSigning() { | ||
configure<SigningExtension> { | ||
sign(extensions.getByType<PublishingExtension>().publications["aar"]) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
dependencyResolutionManagement { | ||
repositories { | ||
google() | ||
mavenCentral() | ||
} | ||
versionCatalogs { | ||
create("libs") { | ||
from(files("../gradle/libs.versions.toml")) | ||
} | ||
} | ||
} | ||
|
||
rootProject.name = "build-logic" | ||
include(":convention") |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.