question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for mavenLocal()

See original GitHub issue
  • The local repo is specified in Kobalt’s config file (~/.config/kobalt/settings.xml).

  • The repo can be referenced with the directive mavenLocal():

    val r = repos(mavenLocal())

  • The task publishToMavenLocal will deploy the artifact to it.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
cbeustcommented, Jul 20, 2016

Update on this issue:

[x] Task "publishToMavenLocal" [x] Directive localMaven() to reference that location in the build file [x] Default is ~/.kobalt/localMavenRepo [x] The default can be overridden in ~/.config/kobalt/settings.xml

[ ] Allow this default to be overridden in the build file [ ] Look up existing Maven settings and use those if found

0reactions
cbeustcommented, Jul 8, 2016

Inline file for convenience:

<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" 
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

    <localRepository>K:/maven/repository</localRepository>
    <mirrors>
        <mirror>
            <id>google-maven-central</id>
            <name>Google Maven Central</name>
            <url>https://maven-central.storage.googleapis.com</url>
            <mirrorOf>central</mirrorOf>
        </mirror>
    </mirrors>

</settings>
Read more comments on GitHub >

github_iconTop Results From Across the Web

Maven Repository and how to publish libraries locally on your ...
Add mavenLocal() as a repository location in the main build.gradle; Make sure mavenLocal() is in the first position of the list.
Read more >
Add support for local maven repository · Issue #248 - GitHub
Add support for local maven repository #248 ... specifying the local repository via repositories { mavenLocal() } block.
Read more >
Add support for specifying the local maven repo with "maven ...
This seems to be an issue with the 'maven' plugin. The system property works properly during artifact resolution using mavenLocal() or when ...
Read more >
Gradle does not use the Maven Local Repository for a new ...
According with my understanding is that Gradle's mavenLocal() should use the same path than <localRepository> defined on Maven's settings.xml ...
Read more >
Local Maven Repository and Libraries | by Francisco Riádigos
gradle file. buildscript { repositories { mavenLocal() } } plugins { // This plugin allows publishing android libraries id "com ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found