Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hndrs/gradle-publishing-info-plugin

Gradle plugin that simplifies adding publishing info to your libraries
https://github.com/hndrs/gradle-publishing-info-plugin

gradle gradle-kotlin-dsl gradle-multi-project gradle-plugin gradle-publish kotlin maven maven-plugin maven-publish publishing

Last synced: about 1 month ago
JSON representation

Gradle plugin that simplifies adding publishing info to your libraries

Awesome Lists containing this project

README

        

[![Maven metadata URL](https://img.shields.io/maven-metadata/v?color=green&label=GRADLE%20PLUGIN&metadataUrl=https%3A%2F%2Fplugins.gradle.org%2Fm2%2Fio%2Fhndrs%2Fpublishing-info%2Fio.hndrs.publishing-info.gradle.plugin%2Fmaven-metadata.xml&style=for-the-badge)](https://plugins.gradle.org/plugin/io.hndrs.publishing-info)
[![Coverage](https://img.shields.io/sonar/coverage/hndrs_gradle-publishing-info-plugin?server=https%3A%2F%2Fsonarcloud.io&style=for-the-badge)](https://sonarcloud.io/dashboard?id=hndrs_gradle-publishing-info-plugin)
[![Supported Java Version](https://img.shields.io/badge/Supported%20Java%20Version-17%2B-informational?style=for-the-badge)]()
[![Sponsor](https://img.shields.io/static/v1?logo=GitHub&label=Sponsor&message=%E2%9D%A4&color=ff69b4&style=for-the-badge)](https://github.com/sponsors/marvinschramm)

# Gradle Publishing Info

This is a small helper plugin to add meta information to maven publications.

## Using the Plugin

Add the following dependency to your plugin block in your rootProject

```kotlin
plugins {
id("io.hndrs.publishing-info").version("3.1.0")
}
```

The Plugin automatically registers a ```publishingInfo``` extension on all projects

#### Configuring the RootProject

```kotlin
publishingInfo {
name = "Root Project"
description = "Sample RootProject Description"
inceptionYear = "2021"
url = "https://github.com/hndrs/gradle-publishing-info-plugin"
license = License(
"https://github.com/hndrs/gradle-publishing-info-plugin/blob/main/LICENSE",
"MIT License"
)
developers = listOf(
Developer("maintainerid", "Maintainers Name", "[email protected]")
)
contributers = listOf(
Contributor("Contributer Name", "contributers email")
)
organization = Organization("Your Org", "https://yourdomain.com")
scm = Scm(
"scm:git:git://github.com/hndrs/gradle-publishing-info-plugin",
"https://github.com/hndrs/gradle-publishing-info-plugin"
)
}
```

> RootProject gradle file (build.gradle.kts)

#### Configuring SubProjects

```kotlin
publishingInfo {
// applies all values from rootProject publishingInfo block
applyFromRoot = true
// overrides name
name = "Sub Project"
// overrides description
description = "Sample SubProject Description"
}
```