Skip to main content

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:


  1. add maven-publish in your gradle.
	id 'maven-publish'
  1. update your package details.
archivesBaseName = 'your-app-name'
group = 'io.github.mnaustriaco.project-name'
version = '0.0.10' ## Research versioning.
  1. disable bootJar task:
bootJar {
enabled = false
}
  1. add below code snippet:
publishing {
publications {
maven(MavenPublication) {
groupId = "${group}"
artifactId = "${archivesBaseName}"
version = "${version}"

from components.java
}
}
}