Skip to content
Snippets Groups Projects

Rework Gradle to use Kotlin DSL + Total build file cleanup

  1. Mar 10, 2020
  2. Mar 07, 2020
    • Chris Lemaire's avatar
      2a0c9e1e
    • Chris Lemaire's avatar
      Fix license headers in two remaining files · 17e720ef
      Chris Lemaire authored
      
      Spotless complained about these files too, it seems with the updated
      version, spotless is more keen on formatting javadoc comments.
      
      Signed-off-by: default avatarChris Lemaire <c.lemaire@student.tudelft.nl>
      17e720ef
    • Chris Lemaire's avatar
      Remove build.gradle in favour of build.gradle.kts · 7bd61996
      Chris Lemaire authored
      
      The new build.gradle.kts file was built carefully with Gradle's
      recommendations in mind.
      In this commit all configurations from the old gradle.build are
      copied over to the new gradle.build.kts piece by piece.
      
      This commit reorders the configuration of tasks and plugins and the
      declarations of plugins and dependencies. This is to make for a more
      logically read build script with clear markers of where to put what.
      Additionally, plugins are now applied using the modern way of declaring
      plugins.
      
      Gradle.build.kts is the Kotlin DSL version of a gradle build script.
      It is type-checked properly by IntelliJ and provides code completion
      way more consistently than Groovy.
      Consistency can also be seen in only using double quotes, only using
      one way to declare dependencies, type checked task configuration, etc.
      
      The generateLabracoreClient task is new but inactive because this
      new task was created with Labracore in mind. It will be activated
      in the first Labracore Merge.
      
      Finally, some license headers added to statically served content should
      never have been added as they overwrite licenses placed there by the
      original writers. These headers were removed and the files were excluded
      from the build process.
      
      Signed-off-by: default avatarChris Lemaire <c.lemaire@student.tudelft.nl>
      7bd61996
Loading