Skip to content

Commit 9cf4d8e

Browse files
committed
Added Dokka documentation
1 parent 4d4c37d commit 9cf4d8e

1 file changed

Lines changed: 5 additions & 16 deletions

File tree

composeextensions/build.gradle.kts

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ dependencies {
6666
// This is used to publish the documentation along with the library.
6767
tasks.register<Jar>("javadocJar") {
6868
val dokkaHtml = tasks.named<DokkaGenerateTask>("dokkaGenerateHtml")
69-
7069
dependsOn(dokkaHtml)
7170

7271
from(dokkaHtml.flatMap { it.outputDirectory })
@@ -75,15 +74,6 @@ tasks.register<Jar>("javadocJar") {
7574

7675
publishing {
7776
publications {
78-
// Configure the "release" publication that AGP's `singleVariant("release")` creates.
79-
// The name of the publication created by AGP for singleVariant("release")
80-
// is conventionally the name of the variant itself, so "release".
81-
// However, it's safer to configure all MavenPublications of type MavenPublication if you only have one.
82-
// Or, if you know the name is 'release' (which it should be for singleVariant("release")).
83-
84-
// Option A: Configure the specific publication if you are sure of its name
85-
// (AGP creates one named after the variant, so "release" in this case)
86-
// AGP creates a publication named after the variant, so "release" in this case.
8777
create<MavenPublication>("release") {
8878
groupId = "com.github.forteanjo"
8979
artifactId = "compose-extensions"
@@ -93,17 +83,16 @@ publishing {
9383
from(components["release"])
9484
}
9585

96-
// Include the JAR generated by the javadocJar task in the publication.
9786
artifact(tasks.named("javadocJar"))
9887

9988
pom {
100-
name.set(project.name) // Or a custom name
101-
description.set("Useful Jetpack compose extensions and modifiers for Android development.") // Example description
102-
url.set("https://github.com/Forteanjo/Compose_Extensions_Library") // Example URL
89+
name.set(project.name)
90+
description.set("Useful Jetpack compose extensions and modifiers for Android development.")
91+
url.set("https://github.com/Forteanjo/Compose_Extensions_Library")
10392

10493
licenses {
10594
license {
106-
name.set("The MIT License") // Or your chosen license
95+
name.set("The MIT License")
10796
url.set("http://opensource.org/licenses/MIT")
10897
}
10998
}
@@ -119,7 +108,7 @@ publishing {
119108
scm {
120109
connection.set("scm:git:git://github.com/forteanjo/Compose_Extensions_Library.git")
121110
developerConnection.set("scm:git:ssh://github.com/forteanjo/Compose_Extensions_Library.git")
122-
url.set("https://github.com/forteanjo/Compose_Extensions_Library/tree/main")
111+
url.set("https://github.com/Forteanjo/Compose_Extensions_Library/tree/main")
123112
}
124113
}
125114
}

0 commit comments

Comments
 (0)