{"id":21593444,"url":"https://github.com/tamimattafi/klib-template","last_synced_at":"2026-05-21T04:02:03.610Z","repository":{"id":246784039,"uuid":"822133194","full_name":"tamimattafi/klib-template","owner":"tamimattafi","description":"Kotlin Multiplatform library template for quick-starts without dealing with boilerplate code","archived":false,"fork":false,"pushed_at":"2024-10-15T12:59:05.000Z","size":79,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-24T16:49:14.951Z","etag":null,"topics":["central","convention","klib","kmm","kmp","kotlin","lib","library","maven","maven-central","maven-central-portal","mpp","publishing","template"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tamimattafi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-30T11:22:31.000Z","updated_at":"2024-10-26T20:14:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"0f0afc71-6a62-4cf9-9691-e1386ce40b78","html_url":"https://github.com/tamimattafi/klib-template","commit_stats":null,"previous_names":["tamimattafi/klib-template"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamimattafi%2Fklib-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamimattafi%2Fklib-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamimattafi%2Fklib-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamimattafi%2Fklib-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tamimattafi","download_url":"https://codeload.github.com/tamimattafi/klib-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244206447,"owners_count":20416085,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["central","convention","klib","kmm","kmp","kotlin","lib","library","maven","maven-central","maven-central-portal","mpp","publishing","template"],"created_at":"2024-11-24T17:12:49.029Z","updated_at":"2026-05-21T04:01:58.555Z","avatar_url":"https://github.com/tamimattafi.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kotlin Library Template\nKotlin Multiplatform library template for quick-starts without dealing with boilerplate code\n\n## Introductions\nIt covers the following boilerplate\n\n1. Publication to local and remote maven repository\n2. Multiplatform module conventions\n3. Gradle files and build scripts\n4. Version catalog\n5. Popular gitignore settings\n6. GitHub release actions script\n7. Sample shared module\n\n## Usage\nTo use this template all you have to do is to follow these steps:\n\n1. Download a zip file or clone this repository (Don't forget to change git remote settings)\n2. Replace `com.attafitamim.kalib` with your package everywhere in the project\n3. Replace `klib-template` with your library name everywhere in the project\n4. Adjust targets in `MultiplatformConventions.kt`\n5. Adjust publishing information in `PublishConventions.kt`\n6. Update `README.md` file\n\nThat's it! Now you can add your modules, dependencies, adjust targets and start coding!\n\n## Maven central\nTo publish your library to maven central you need to follow these steps:\n\n1. Crate an account on [central portal](https://central.sonatype.com/)\n2. Create a namespace with your package as shown in these [docs](https://central.sonatype.org/register/namespace/)\n3. Generate a token as shown [here](https://central.sonatype.org/publish/generate-portal-token/)\n4. Generate gpg key using your sonatype email, upload it, then confirm your email using the received link in your inbox\n5. Add secrets for publishing as shown [here](https://vanniktech.github.io/gradle-maven-publish-plugin/central/#secrets)\n6. Don't forget to add secrets as repository secrets for GitHub actions as shown [here](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions)\n\nTo publish your artifacts to central portal you can either run `./gradlew publishAllPublicationsToMavenCentralRepository` locally or create a GitHub release\n\n\u003e [!IMPORTANT]  \n\u003e Don't forget to change publishing version in `PublishConventions.kt`\n\n## Future plans\n1. Add testing examples and GitHub actions for the matter\n2. Add lint example and GitHub actions for the matter\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftamimattafi%2Fklib-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftamimattafi%2Fklib-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftamimattafi%2Fklib-template/lists"}