Skip to content Skip to sidebar Skip to footer

What's In Gradle A Group, Module And Artifact?

The gradle docs don't take the time to explain the entities they are dealing with. That's why I want to ask such a basic question. I've got a to understand in detail, what the term

Solution 1:

The group, artifact and version are chosen semi randomly and do NOT need to match packages or classes in the jar file.

For example commons-lang has groupId = 'commons-lang' but the classes are in org.apache.commons.lang.* package

The group, artifact and version are defined within the build file of the project. In maven this will be in pom.xml in gradle this will be in build.gradle (and settings.gradle)

If you want to know the group, artifact, version for a project (aka GAV, aka maven co-ordinates) you will usually go to the project's home page.

You can also use the maven central advanced search to "fuzzy" search eg by artifactId or by a classname within a jar. If you are using an in-house repository you can likely "fuzzy" search via the web interface there also

Post a Comment for "What's In Gradle A Group, Module And Artifact?"