0
votes

i have a project layout like

sample/
               A/
                  src/
                     main/
                        java/
                           A.java
                  res/
                     A.jpg
               B/
                  src/
                     main/
                        java/
                           B.java
                  res/
                     B.jpg
               build.gradle
               settings.gradle

how to create two separate jar files(A.jar/B.jar)

A.jar includes A.java, A.jpg

B.jar includes B.java, B.jpg

1
Just create build.gradle files in both A and B folders. - Opal
I know that, but i want to without build.gradle Is there a way? - jake

1 Answers

1
votes

Here you can find a sample project. Basically all configuration is put in build.gradle and settings.gradle files:

build.gradle

subprojects {
   apply plugin: 'java'
}

settings.gradle

include 'A', 'B'