library-template-jvm
                                
                                 library-template-jvm copied to clipboard
                                
                                    library-template-jvm copied to clipboard
                            
                            
                            
                        A Kotlin/JVM library template (with a sample project).
Library Template (JVM)
This repository can be used as a template to create new GitHub repositories for Java/Kotlin libraries.
Code Formatting
./gradlew spotlessApply
Make sure you update spotless.license.kt and LICENSE.md to reflect your own license and author info! Other settings for this plugin can be tweaked in spotless_plugin_config.gradle.
Check if Dependencies Are Up-to-Date
./gradlew dependencyUpdates
Settings can be tweaked for this plugin within versions_plugin_config.gradle.
Publishing the Library to Bintray -> jCenter
Just have to execute:
./gradlew clean build uploadArchives --no-parallel --no-daemon
But there are some pre-requisites:
- Update the root gradle.properties and library/gradle.properties for each publishable library module.
- Add bintray.userandbintray.apikeyentries tolocal.propertiesmatching the Bintray account that owns the repo being published to.
- With each release, update the library version in the root gradle.properties.
- Once you've deployed to Bintray for the first time, you can link your Bintray repository to jCenter so people can depend on your library without having to add any special repositories.