Gradle Composite Build with different project types (ant, maven)

mrdc

Is it possible to create a Gradle Composite Build using maven or ant+ivy projects as subprojects?

If yes, how to do it?

I checked the documentation at here and it has some reference to ant and maven, but not so clear about this type of integration.

My goal is to have a composite build where the app is a gradle project and the libraries can be gradle, maven or ant and can be easily managed in a IDE like eclipse or IntelliJ

chenrui

I don't think you can use Gradle to do the inter-projectType build orchestration. But you can transform the other projectType (maven or ant) into using Gradle, and then you can start to use composite gradle build between these modules. With that said, you probably have to maintain two build tools for the maven/ant module, if you still need them.

NOTE The composite build concept is essentially to help the cross-project development (intends to replace the binary dependency), it actually makes sense that you need to use Gradle across the board.

The documentation reference you mentioned are actually for the artifact publication flow (maven-publish, ivy-publish), that won't be useful in the build integration.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

How to convert a Maven build to Gradle?

From Dev

Maven or Gradle build types/variants

From Dev

How to build a Lotus Domino Database using SVN and Ant, Maven or Gradle

From Dev

Add Ant Library Project into my Gradle project

From Dev

How to upload an artifact to Artifactory / consume it in a build system (Gradle Maven Ant) where the artifact does not have an extension

From Dev

How does gradle execute an ant build file

From Dev

How to provide Gradle dependencies for Ant build

From Dev

Maven project failed to build

From Dev

Converting Maven project to Gradle

From Dev

Jenkins - Ant Build Maven Deploy

From Dev

Different Gradle versions in my project? (gradle.xml vs build.gradle)

From Dev

maven project as dependency in gradle project

From Dev

Use Ant project as Gradle subproject

From Dev

How to checkout and build maven project from gradle?

From Dev

IntelliJ / Gradle - composite build project - how to import from different module?

From Dev

Java Project Ant to Maven Migration

From Dev

Changing an ant project to maven

From Dev

Ant jar library in maven project

From Dev

Add Ant Library Project into my Gradle project

From Dev

Gradle Project build failed

From Dev

Include a Netbeans Maven project in a Netbeans Ant project

From Dev

How to generate Ant and Maven build files for an Eclipse Java project?

From Dev

build tool (Gradle vs Ant vs Maven) for java EE

From Dev

building a Maven project with Ant project as a child

From Dev

Why maven uses difference plugin version to build different project

From Dev

Inserting different item types in composite collection

From Dev

Use Ant project as Gradle subproject

From Dev

How to checkout and build maven project from gradle?

From Dev

Gradle composite builds version ingredients and maven publish

Related Related

  1. 1

    How to convert a Maven build to Gradle?

  2. 2

    Maven or Gradle build types/variants

  3. 3

    How to build a Lotus Domino Database using SVN and Ant, Maven or Gradle

  4. 4

    Add Ant Library Project into my Gradle project

  5. 5

    How to upload an artifact to Artifactory / consume it in a build system (Gradle Maven Ant) where the artifact does not have an extension

  6. 6

    How does gradle execute an ant build file

  7. 7

    How to provide Gradle dependencies for Ant build

  8. 8

    Maven project failed to build

  9. 9

    Converting Maven project to Gradle

  10. 10

    Jenkins - Ant Build Maven Deploy

  11. 11

    Different Gradle versions in my project? (gradle.xml vs build.gradle)

  12. 12

    maven project as dependency in gradle project

  13. 13

    Use Ant project as Gradle subproject

  14. 14

    How to checkout and build maven project from gradle?

  15. 15

    IntelliJ / Gradle - composite build project - how to import from different module?

  16. 16

    Java Project Ant to Maven Migration

  17. 17

    Changing an ant project to maven

  18. 18

    Ant jar library in maven project

  19. 19

    Add Ant Library Project into my Gradle project

  20. 20

    Gradle Project build failed

  21. 21

    Include a Netbeans Maven project in a Netbeans Ant project

  22. 22

    How to generate Ant and Maven build files for an Eclipse Java project?

  23. 23

    build tool (Gradle vs Ant vs Maven) for java EE

  24. 24

    building a Maven project with Ant project as a child

  25. 25

    Why maven uses difference plugin version to build different project

  26. 26

    Inserting different item types in composite collection

  27. 27

    Use Ant project as Gradle subproject

  28. 28

    How to checkout and build maven project from gradle?

  29. 29

    Gradle composite builds version ingredients and maven publish

HotTag

Archive