Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cubetiq/sample-guide-java-kotlin-module
Sample Guide for Publish Maven (in Gradle Project) for Java and Kotlin module
https://github.com/cubetiq/sample-guide-java-kotlin-module
gradle maven package
Last synced: 9 days ago
JSON representation
Sample Guide for Publish Maven (in Gradle Project) for Java and Kotlin module
- Host: GitHub
- URL: https://github.com/cubetiq/sample-guide-java-kotlin-module
- Owner: CUBETIQ
- Created: 2020-07-03T05:10:21.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T14:28:29.000Z (11 months ago)
- Last Synced: 2023-12-15T15:37:41.382Z (11 months ago)
- Topics: gradle, maven, package
- Homepage: https://git.cubetiqs.com/CUBETIQ/sample-guide-java-kotlin-module
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### 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](https://oss-internal.cubetiqs.com)
#### Create gradle.properties in root project
```env
nexusUrl=https://oss-internal.cubetiqs.com
nexusUsername=yourUsername
nexusPassword=yourPassword
```#### Config build.grdle in your project
```groovy
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
```shell
gradle upload
```
Or
```shell
./gradlew upload
```#### Noted for Library Publish within GROUP ID
- For Snapshot version must be:
```groovy
group 'com.cubetiqs.libra'
version '1.0-SNAPSHOT'
```
- For Release version must be:
```groovy
group 'com.cubetiqs.libra'
version '1.0-RELEASE'
```
- For General/Normal version must be:
```groovy
group 'com.cubetiqs.libra'
version '1.0'
```#### Noted for Module/Core Publish within GROUP ID
- For Snapshot version must be:
```groovy
group 'com.cubetiqs'
version '1.0-SNAPSHOT'
```
- For Release version must be:
```groovy
group 'com.cubetiqs'
version '1.0-RELEASE'
```
- For General/Normal version must be:
```groovy
group 'com.cubetiqs'
version '1.0'
```#### Contributors
- Sambo Chea#### License
```text
Name: CUBETIQ Solution
Status: Commercial/OSS
```