diff --git a/.gitignore b/.gitignore index a6a4454..ef9f51c 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,6 @@ gradle-app.setting !gradle-wrapper.jar .java-version .idea + + +*.iml \ No newline at end of file diff --git a/build.gradle b/build.gradle index c9c2ea7..5b9d286 100644 --- a/build.gradle +++ b/build.gradle @@ -43,3 +43,48 @@ subprojects { wrapper { gradleVersion = "2.10" } + +task build { + buildscript { + repositories { + mavenLocal() + jcenter() + } + + } + + + apply from: "$rootDir/gradle/dependencies.gradle" + + subprojects { + apply plugin: 'com.github.adrianbk.jvmsrc' + apply plugin: 'com.github.ben-manes.versions' + + jvmsrc { + packageName "springfoxdemo" + } + apply plugin: 'java' + apply plugin: 'com.ofg.uptodate' + + repositories { + mavenLocal() + jcenter() + maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local/' } + } + + + sourceCompatibility = 1.7 + targetCompatibility = 1.7 + + configurations.all { + //Dont cache snapshots + resolutionStrategy.cacheChangingModulesFor 0, 'seconds' + } + } + + wrapper { + gradleVersion = "2.10" + } + +} +task stage(dependsOn: ['build']) \ No newline at end of file