Skip to content

Commit

Permalink
Merge pull request #22 from usefulness/updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszkwiecinski authored Nov 13, 2023
2 parents 5436135 + 9067e2b commit 459a101
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
12 changes: 6 additions & 6 deletions gradle/plugins/src/main/kotlin/PublishingPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,17 @@ class PublishingPlugin : Plugin<Project> {
}

extensions.configure<PublishingExtension> {
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 ->
Expand Down Expand Up @@ -116,6 +118,4 @@ class PublishingPlugin : Plugin<Project> {
}
}

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) ?: ""
1 change: 0 additions & 1 deletion licensee-for-android-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 459a101

Please sign in to comment.