• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
  • salvin francis
  • Piet Souris

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
  • 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?
Put the moon back where you found it! We need it for tides and poetry and stuff. Like this tiny ad:
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!