0

I have a Java Maven project.

Is it somehow possible to publish my Maven project with Maven into my local Gradle repository?

Is there maybe some plugin for this?

Harold L. Brown
  • 8,423
  • 11
  • 57
  • 109
  • Are you talking about the Gradle cache? You should not access the cache manually. Why don't you want to use the local Maven repository? – Lukas Körfer Aug 22 '19 at 10:50
  • @LukasKörfer I thought there was the equivalent of a local Maven repository for Gradle too. Since this doesn't exist, my question probably doesn't make sense. – Harold L. Brown Aug 22 '19 at 12:10
  • 1
    Gradle only has an internal cache. But you can easily access the local Maven repository both as a package source and as a publishing target. – Lukas Körfer Aug 22 '19 at 12:12
  • With `mvn install`, you can install the jar in your local Maven folder- that is, in the [userdir]/.m2 folder . You can then edit the Gradle build to retrieve dependencies from the local Maven folder, so that your build will use the jar you just installed. (see https://docs.gradle.org/current/userguide/repository_types.html#sub:maven_local) – Daniele Aug 23 '19 at 20:53

1 Answers1

0

As it was mentioned in the comments, Gradle does not have a repository.

Harold L. Brown
  • 8,423
  • 11
  • 57
  • 109