Giter Club home page Giter Club logo

mavencentral's Introduction

mavenCentral and jcentral() Gradle plugin

This gradle plugin is used for mavenCentral and jcentral library publishing. It is created with help from Jernej Virag and nuuneoi blogs.

This plugin is tested with Gradle/Gradle Wrapper > 2.10 and Gradle Build Tools 2.1.0

Code below is example of usage, you only need to change extra properties inside exc {...} and set credentials inside gradle.properties or local.properties files:

gradle.properties or local.properties file inside your root folder

 # MAVEN
 signing.keyId=xxxxxxxx //gpg key
 signing.password=xxxxxxxx //gpg pass
 signing.secretKeyRingFile=/Users/<your_user>/.gnupg/secring.gpg
 ossrhUsername=xxxxxx //sonatype user
 ossrhPassword=xxxxxx //sonatype password
 stagingRepositoryUrl=https://oss.sonatype.org/service/local/staging/deploy/maven2/
 snapshotRepositoryUrl=https://oss.sonatype.org/content/repositories/snapshots/
 
 # JCENTRAL
 bintray.user=xxxxxx //bintray user
 bintray.apikey=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx //bintray api key

build.gradle inside library module

group = "com.github.kkontus.stringhelper"                // Maven Group ID for the artifact
archivesBaseName = "stringhelper"
//version = "1.0.6-SNAPSHOT"
version = "1.0.6"

ext {
    //project info
    projectName = "String Helper"
    packagingType = "aar"
    publishedGroupId = group
    publishedArtifactId = "some artifact id"
    projectDescription = "String Helper Library"
    siteUrl = 'https://github.com/kkontus/StringHelper'      // Homepage URL of the library
    libraryName = "stringhelper"
    repoName = "stringhelper"

    //scm info
    scmConnection = "scm:git:http://github.com/kkontus/StringHelper.git"
    scmDeveloperConnection = "scm:git:https://github.com/kkontus/StringHelper.git"
    scmUrl = "https://github.com/kkontus/StringHelper"

    //license info
    licenseName = "The Apache License, Version 2.0"
    licenseUrl = "http://www.apache.org/licenses/LICENSE-2.0.txt"

    //developer info
    devId = "kkontus"
    devName = "Kristijan Kontus"
    devEmail = "[email protected]"
}

//apply from: 'central.gradle'
apply from: 'https://raw.githubusercontent.com/kkontus/mavencentral/master/central.gradle'

With this last line you can use apply from: 'url' if you want to use central.gradle file published here, or you can download it as raw file and put it inside your library module folder and use it like apply from: 'central.gradle'

mavencentral's People

Contributors

kkontus avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.