-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Update publishing configuration to support the new maven publication process
- Loading branch information
Showing
9 changed files
with
97 additions
and
136 deletions.
There are no files selected for viewing
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
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
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
106 changes: 0 additions & 106 deletions
106
convention-plugins/src/main/kotlin/publication.gradle.kts
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,50 @@ | ||
import com.vanniktech.maven.publish.SonatypeHost | ||
|
||
plugins { | ||
id("com.vanniktech.maven.publish") | ||
} | ||
|
||
mavenPublishing { | ||
// Define coordinates for the published artifact | ||
coordinates( | ||
groupId = properties["lib.group"].toString().also { println(it) }, | ||
artifactId = project.name.also { println(it) }, | ||
version = properties["lib.version"].toString().also { println(it) }, | ||
) | ||
|
||
// Configure POM metadata for the published artifact | ||
pom { | ||
name.set("Treemap Chart Compose") | ||
description.set("Jetpack Compose (Multiplatform) treemap chart implementation") | ||
url.set("https://github.com/overpas/compose-treemap-chart") | ||
|
||
licenses { | ||
license { | ||
name.set("MIT") | ||
url.set("https://github.com/overpas/compose-treemap-chart/blob/master/LICENSE.txt") | ||
} | ||
} | ||
|
||
// Specify developers information | ||
developers { | ||
developer { | ||
id.set("overpas") | ||
name.set("Pavel Shurmilov") | ||
email.set("[email protected]") | ||
} | ||
} | ||
|
||
// Specify SCM information | ||
scm { | ||
connection.set("scm:git:github.com/overpas/compose-treemap-chart.git") | ||
developerConnection.set("scm:git:ssh://github.com/overpas/compose-treemap-chart.git") | ||
url.set("https://github.com/overpas/compose-treemap-chart/tree/master") | ||
} | ||
} | ||
|
||
// Configure publishing to Maven Central | ||
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL) | ||
|
||
// Enable GPG signing for all publications | ||
signAllPublications() | ||
} |
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
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
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
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