Go to file
Sambo Chea ab8d06f519 Add ignore file 2020-07-03 12:31:37 +07:00
.gitignore Add ignore file 2020-07-03 12:31:37 +07:00
LIC.TXT Add lic.txt 2020-07-03 12:30:44 +07:00
README.md Updated and run and publish the package 2020-07-03 12:30:21 +07:00

Sample Guide Maven Publish to CUBETIQ OSS Repository

For Java and Kotlin module for general Web Tech Stack

OSS Repository: https://oss-internal.cubetiqs.com

Create gradle.properties in root project

nexusUrl=https://oss-internal.cubetiqs.com
nexusUsername=yourUsername
nexusPassword=yourPassword

Config build.grdle in your project

plugins {
    id 'java'
    id 'maven'
    ...
}

repositories {
    // For public version
    maven {
        url "${nexusUrl}/repository/maven-public/"
    }
    // For snapshot version
    maven {
        url "${nexusUrl}/repository/maven-snapshots/"
    }
    // For release version
    maven {
        url "${nexusUrl}/repository/maven-releases/"
    }
    ...
}

uploadArchives {
    repositories {
        mavenDeployer {
            repository(url: "${nexusUrl}/repository/maven-releases/") {
                authentication(userName: nexusUsername, password: nexusPassword)
            }
            snapshotRepository(url: "${nexusUrl}/repository/maven-snapshots") {
                authentication(userName: nexusUsername, password: nexusPassword)
            }
        }
    }
}

...

Publish the package

gradle upload

Or

./gradlew upload

Noted for Library Publish within GROUP ID

  • For Snapshot version must be:
group 'com.cubetiqs.libra'
version '1.0-SNAPSHOT'
  • For Release version must be:
group 'com.cubetiqs.libra'
version '1.0-RELEASE'
  • For General/Normal version must be:
group 'com.cubetiqs.libra'
version '1.0'

Noted for Module/Core Publish within GROUP ID

  • For Snapshot version must be:
group 'com.cubetiqs'
version '1.0-SNAPSHOT'
  • For Release version must be:
group 'com.cubetiqs'
version '1.0-RELEASE'
  • For General/Normal version must be:
group 'com.cubetiqs'
version '1.0'

Contributors

License

Name: CUBETIQ Solution
Status: Commercial/OSS