gradle - Install project built jar to local maven repository -
I am trying to establish my project built jar in my local Mewen repository. I've been using Grade 2.1 with the Android Studio IDE, but I did not work for it here I have my own build.gradle Pre> Apply the plugin: Apply 'maven' plugin: 'android' ... Install the group 'com.my.app' {repositories .mavenInstaller {pom.artifactId = 'MyApp' pom.packaging = 'jar '}}
When I create gradle, I found an error message:
The Gradle DSL method was not found:' install () '
Why my grade is set to install ()
The method can not be recognized? How to install Project Jar in the local Mewen repository?
I think the documents that you are seeing
and here The relevant piece of code is:
Apply the plugin: 'maven' uploadArchives {repositories {mavenDeployer {repository (url: "file: // localhost / tmp / myRepo /"}}}} < / Code>
Comments
Post a Comment