Super POM, Parent POM type of hierarchy management in Gradle

前端 未结 3 1865
没有蜡笔的小新
没有蜡笔的小新 2021-02-20 17:36

We are currently using Maven as our build tool and there is a directive to migrate to Gradle. Our current setup is:

  1. We have a super POM that defines all third part
3条回答
  •  悲&欢浪女
    2021-02-20 17:43

    I do the following:

    • Define a gradle script (something like a parent pom)

    • Apply it (something like extending) in my build.gradle file

      apply from: 'https://youUrlHere/parent.gradle'

    For more info, you can have a look here: http://forums.gradle.org/gradle/topics/inheriting_from_a_parent_not_in_the_same_project

    Hope this helps.

提交回复
热议问题