I have 2 different project build on mvn. I am trying to replace to Gradle.
Project 1 is an SDK, and project 2 is using that sdk (example).
In the time of maven
You may be looking for:
gradle publishToMavenLocal
Available with:
apply plugin: 'maven-publish'
See: https://docs.gradle.org/current/userguide/publishing_maven.html