microsoft / azure-gradle-plugins

Azure Plugins for Gradle
MIT License
45 stars 28 forks source link

Reorganize build.gradle for clear code in gradle tasks #97

Closed andxu closed 3 years ago

andxu commented 3 years ago

What problem is this PR solving?

before this sprint, there is only one project and in this sprint, we have added two more projects, they would share some tasks like checkstyle and prepare resource, it is better to lay the shared configurations in parent project so that, each sub project would not need to configure them again. Another problem is that, in common lib, it doesn't have the template file, we need to by-pass the template replace task.

What has been done in this PR?

  1. move PrepareResourceTask to parent project
  2. move duplicate configurations(eg:checkstyle, eclipse, idea, maven-publish) to parent project
  3. remove the gradle wrapper since parent project already has it
  4. check existence of file src/main/resources/ApplicationInsightsTemplate.xml and then do the replace task
  5. use a much short MIT header