Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing repositories in build.gradle #396

Closed
4 tasks
sdedic opened this issue Mar 12, 2021 · 2 comments
Closed
4 tasks

Missing repositories in build.gradle #396

sdedic opened this issue Mar 12, 2021 · 2 comments

Comments

@sdedic
Copy link

sdedic commented Mar 12, 2021

Task List

  • Steps to reproduce provided
  • Stacktrace (if present) provided
  • Example that reproduces the problem uploaded to Github
  • Full description of the issue provided (see below)

Steps to Reproduce

  1. git clone git@github.com:micronaut-projects/micronaut-test.git
  2. run ./gradlew dependencies on the micronaut-test root project

IDE steps to reproduce:

  1. git clone git@github.com:micronaut-projects/micronaut-test.git
  2. use NetBeans IDE 12.3 (or 12.2.), see http://netbeans.apache.org/download/index.html
  3. Use File | Open project and open micronaut-test
  4. Confirm possible download (required for java support)
  5. After project opens, a dialog pops up "Project has problems". Review problems (jansi:1.14 unavailable)

Expected Behaviour

Dependencies should be printed, like

documentation
\--- org.fusesource.jansi:jansi:1.14

Actual Behaviour

Failed dependency is printed:

documentation
\--- org.fusesource.jansi:jansi:1.14 FAILED

Environment Information

  • Operating System: Linux Ubuntu 19.04
  • Micronaut Version: github master
  • JDK Version: Oracle JDK 8

Full description

The NetBeans IDE detects a failed dependency, so it marks the project as broken.

The same happens when I executed ./gradlew dependencies from the commandline on pristine git checkout of the micronaut-test project, so I suppose the project is missing some configuration. It seems this is caused by a missing repositories for regular (non-plugin) artifacts.

I suggest to add

repositories {
   maven { url "https://repo.grails.org/grails/core" }
}

that repository is used by micronaut-build, micronaut-core projects as well.

@JaroslavTulach
Copy link

I can confirm I see the same problem when using this revision:

micronaut-test$ git log | head -n 5
commit e3a6225a3b98923f9bba865e434ea3eb896fa3f2
Author: micronaut-build <65172877+micronaut-build@users.noreply.github.com>
Date:   Mon Mar 1 04:28:18 2021 -0600

    [test] Update common files for branch master (#391)

@graemerocher
Copy link
Contributor

Fixed by d5f9c20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants