Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/christian-draeger/kotlin-library-template

A template project to jumpstart the creation and publishing of new Kotlin multiplatform libraries.
https://github.com/christian-draeger/kotlin-library-template

kotlin kotlin-multiplatform kotlin-multiplatform-library kotlin-multiplatform-sample library-template maven-publish

Last synced: about 1 month ago
JSON representation

A template project to jumpstart the creation and publishing of new Kotlin multiplatform libraries.

Awesome Lists containing this project

README

        

# kotlin-library-template [![CI](https://github.com/christian-draeger/kotlin-library-template/actions/workflows/build.yml/badge.svg)](https://github.com/christian-draeger/kotlin-library-template/actions/workflows/build.yml) ![Maven Central Version](https://img.shields.io/maven-central/v/codes.draeger/kotlin-library-template-example?logo=sonatype&label=Release)

A template project to jumpstart the creation and publishing of new Kotlin libraries.

## Publishing
### To Maven Local
```bash
./gradlew publishToMavenLocal
```

### To Maven Central
The Project contains a github action to publish the library to maven central.
This github action requires the following secrets to be set:
- `MAVEN_CENTRAL_USERNAME`
- `MAVEN_CENTRAL_PASSWORD`
- `SIGNING_IN_MEMORY_KEY`
- `SIGNING_IN_MEMORY_KEY_ID`
- `SIGNING_IN_MEMORY_KEY_PASSWORD`

#### How to get the signing key
Please change the `` placeholder in the following command to your signing key id.
```bash
gpg --export-secret-keys --armor | grep -v '\-\-' | grep -v '^=.' | tr -d '\n'
```