diff --git a/gradle/plugins/src/main/kotlin/PublishingPlugin.kt b/gradle/plugins/src/main/kotlin/PublishingPlugin.kt index 42904cb..3dedd6d 100644 --- a/gradle/plugins/src/main/kotlin/PublishingPlugin.kt +++ b/gradle/plugins/src/main/kotlin/PublishingPlugin.kt @@ -77,15 +77,17 @@ class PublishingPlugin : Plugin { } extensions.configure { - if(!pluginManager.hasPlugin("com.gradle.plugin-publish")) { + if (!pluginManager.hasPlugin("com.gradle.plugin-publish")) { publications.register("mavenJava", MavenPublication::class.java) { publication -> publication.from(components.getByName("java")) } } publications.configureEach { publication -> (publication as? MavenPublication)?.pom { pom -> - pom.name.set("${project.group}:${project.name}") - pom.description.set(project.description) + afterEvaluate { + pom.name.set("${project.group}:${project.name}") + pom.description.set(project.description) + } pom.url.set("https://github.com/usefulness/licensee-for-android") pom.licenses { licenses -> licenses.license { license -> @@ -116,6 +118,4 @@ class PublishingPlugin : Plugin { } } -private fun Project.findConfig(key: String): String { - return findProperty(key)?.toString() ?: System.getenv(key) ?: "" -} +private fun Project.findConfig(key: String): String = findProperty(key)?.toString() ?: System.getenv(key) ?: "" diff --git a/licensee-for-android-core/build.gradle b/licensee-for-android-core/build.gradle index c0f6f9b..b0982dc 100644 --- a/licensee-for-android-core/build.gradle +++ b/licensee-for-android-core/build.gradle @@ -6,7 +6,6 @@ plugins { alias(libs.plugins.drewhamilton.poko) id("com.starter.publishing") } - description = "core library for io.github.usefulness.licensee-for-android gradle plugin. Exposes shareable classes and interfaces, useful in multi-module projects" kotlin {