Using maven locally w/ Gradle
This tutorial will assume that you already know how the ff:
- Maven
- Gradle
As of the moment, My libraries are not uploaded in a central internet repository. therefore I must use my local m2.
In your library build.gradle:
- add
maven-publishin your gradle.
id 'maven-publish'
- update your package details.
archivesBaseName = 'your-app-name'
group = 'io.github.mnaustriaco.project-name'
version = '0.0.10' ## Research versioning.
- disable
bootJartask:
bootJar {
enabled = false
}
- add below code snippet:
publishing {
publications {
maven(MavenPublication) {
groupId = "${group}"
artifactId = "${archivesBaseName}"
version = "${version}"
from components.java
}
}
}