Skip to content

whiskyblack/world-time-api

Repository files navigation

Demo implement:

  • Repository: mavenCentral()
  • implementation 'vn.alphalabs:worldtimeapi:1.0.0'

Demo Publish Android Library To Maven Central Step By Step

  1. Create account or login Sonatype Jira at: https://issues.sonatype.org/
  2. DNS Referencing
    • Go to DNS Manager
    • Add new record below: Type: TXT | Host: @ | TXT Value: [your ticket reference in Sonatype Jira] | TTL: [1 Hour or Auto]
    • E.g: Type: TXT | Host: @ | TXT Value: OSSRH-96022 | TTL: Auto (Config on cloudflare)
    • Test: host -t txt alphalabs.vn
  3. Create account or login Sonatype OSS Index at: https://ossindex.sonatype.org/
  4. After login Sonatype OSS Index success, login to Nexus UI at: https://s01.oss.sonatype.org/
  5. You can upload aar at https://s01.oss.sonatype.org/index.html#staging-upload if have pom file and signature library
  6. If not, config library like this demo
  7. Generating a GPG Key for
    • Download GPG command line tools from https://www.gnupg.org/download/ and install them.
    • Open your Terminal.
    • Type gpg --full-generate-key
    • When asked what kind of key you want, press Enter to select the default RSA and RSA.
    • When asked about the keysize, type 4096.
    • When asked about the duration of key to be valid, press Enter to select the default, indicating that the key doesn’t expire.
    • When asked about the information for creating a new user ID, provide your name and email address.
    • Enter ‘O’ for Okay.
    • When prompted, create a passphrase to protect your key.
    • This creates your key in ~/.gnupg/openpgp-revocs.d/ with .rev format. Since we need our key in .gpg format, here’s how to create that:
      • In your Terminal, type gpg --export-secret-keys -o secring.gpg .
      • When prompted with the passphrase, type the passphrase you set for the key you created.
    • This should create a file named secring.gpg in your root directory.

About

Demo for wold time api library

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages