From 5b122a1fb32c5d07a0c9f7419bcc76a1bc6f24a2 Mon Sep 17 00:00:00 2001 From: Simon Weiler Date: Fri, 16 Jun 2017 17:21:59 +0200 Subject: [PATCH] fix order of statements in gradle file --- build.gradle | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/build.gradle b/build.gradle index 9ffb434..d51a7bb 100644 --- a/build.gradle +++ b/build.gradle @@ -1,3 +1,18 @@ +buildscript { + repositories { + maven { url "http://repo.spring.io/libs-snapshot" } + mavenLocal() + } + dependencies { + classpath "org.springframework.boot:spring-boot-gradle-plugin:1.5.3.RELEASE" + classpath "com.github.ben-manes:gradle-versions-plugin:0.15.0" + } +} + +plugins { + id "com.gorylenko.gradle-git-properties" version "1.4.17" +} + apply plugin: 'idea' apply plugin: 'eclipse' apply plugin: 'java' @@ -9,16 +24,6 @@ apply from: 'dependencies.gradle' defaultTasks 'clean', 'check' -buildscript { - repositories { - maven { url "http://repo.spring.io/libs-snapshot" } - mavenLocal() - } - dependencies { - classpath "org.springframework.boot:spring-boot-gradle-plugin:1.5.3.RELEASE" - classpath "com.github.ben-manes:gradle-versions-plugin:0.15.0" - } -} archivesBaseName = 'edison-jobtrigger' group = 'de.otto.edison' @@ -31,9 +36,6 @@ repositories { maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } } -plugins { - id "com.gorylenko.gradle-git-properties" version "1.4.17" -} configurations.all { // check for updates every build