Gradle - Repository

1 - About

Code Shipping - (Repository | Registry) in Gradle.

A repository is a collection of modules, organized by group, name and version.

3 - Management

3.1 - Get artifact

3.1.1 - Syntax

3.1.2 - Type

3.1.3 - Order

Gradle will look for a dependency in each repository in the order they are specified, stopping at the first repository that contains the requested module

3.1.4 - Example


repositories {
    mavenLocal()
    mavenCentral()
    jcenter() // Public Bintray Artifactory repository
    maven {
            url = 'http://repo.maven.apache.org/maven2'
    }

    ivy {
        // URL can refer to a local directory
        url "../local-repo"
    }
}

where:

3.1.4.1 - Sourceforge

repositories {
    ivy {
        url 'https://iweb.dl.sourceforge.net/project'
        patternLayout {
            artifact "[organization]/[organization]/[revision]/[module]-[revision]-bin.[ext]"
        }
    }
}

3.2 - Publish


plugins {
    id 'maven'
}

uploadArchives {
    repositories {
        mavenDeployer {
            repository(url: "file://localhost/tmp/myRepo/")
        }
    }
}

To build the JAR file, generate a .pom file and upload the artifacts, execute the following command:


gradle uploadArchives

Doc..

4 - Documentation


Data Science
Data Analysis
Statistics
Data Science
Linear Algebra Mathematics
Trigonometry

Powered by ComboStrap