• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

Gradle error “package does not exist” when importing previously published library on my local Maven

Posts: 7
Python Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I've created a simple library using Gradle and published it on my default (~/.m2/repository) maven repository location. It contains a single public class (Library) and i've checked that it exists on the repository along with the pom.xml file which is below:

The build.gradle file of this library is the following:

Now i want to "consume" this library so i create an other Gradle project with the following build.gradle file:

When i run gradle dependencies --configuration implementation I get the output:

Then i try to import my library in the new project with import com.appstract.saavMathLib.Library; and when i try to build the project it gives me the error error: package com.appstract.saavMathLib does not exist

What am i doing wrong please?
I don't like that guy. The tiny ad agrees with me.
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic