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

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -