0

I am very new to java. i want to setup Gradle project in such way so that all the project should refer to the internal folder for dependencies, and all project need to be in child-parent structure as below

root-folders
    -main-project(root-project gradle)
    -api(child-project)
    -ui(child-project)
    -cashflow(child-project)
    -views(all html/css/js files)
    -WEB-INF
        -lib(all jar files)

Everything is in Quarkus framework

  • You should use Gradle to manage the dependencies of the project, both libraries and sub projects. You should not need to have jar files inside the folders. – aled May 20 '23 at 16:13
  • @aled i have some core business logic which i don't want to creates as subproject that way in want to keep the jar files in one place – dhinchak developer May 20 '23 at 16:19
  • 2
    Then create a separate project and install the artifact in a repository, local or remote. – aled May 20 '23 at 16:27
  • You might want to learn about "multi-module" projects in Gradle (similar in Maven). Each module is like a separate project, producing an "artifact" such as a JAR file, but with coordinated builds of the sibling modules. One module is the parent, controlling the other modules’ build. Not to be confused with [*Java Platform Module System*](https://en.wikipedia.org/wiki/Java_Platform_Module_System). – Basil Bourque May 20 '23 at 18:29

1 Answers1

0

In root dir you should have settings.gradle which describes the following:

rootProject.name = 'gradle-example'

to add child modules with names foo and bar:

include 'foo', 'bar'
h1alexbel
  • 69
  • 6