Permalink
Browse files

refactored repositories for buildScript and projects

  • Loading branch information...
ingokegel committed Feb 12, 2017
1 parent 7e88c07 commit 5016ae7fcc059c97764edec86bebb47a8fe40cf1
Showing with 16 additions and 21 deletions.
  1. +5 −21 build.gradle
  2. +11 −0 repositories.gradle
View
@@ -2,31 +2,23 @@ apply plugin: 'idea'
version = '5.1'
ext.mediaDir = file('media')
-ext.libCompileDir = file('lib-compile')
buildDir = file('build/gradle')
ext.externalLibsDir = file("$buildDir/externalLibs")
-buildscript {
+buildscript {scriptHandler ->
ext.kotlinVersion = '1.1.0-beta-38'
repositories {
flatDir {
dirs 'lib-compile'
}
- maven {
- url 'http://jcenter.bintray.com'
- }
- maven {
- url 'http://maven.ej-technologies.com/repository'
- }
maven {
url 'http://dl.bintray.com/jetbrains/intellij-plugin-service'
}
- maven {
- url 'http://dl.bintray.com/kotlin/kotlin-eap-1.1'
- }
}
+ apply from: file('repositories.gradle'), to: scriptHandler
+
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
@@ -47,18 +39,10 @@ allprojects {
repositories {
flatDir {
- dirs libCompileDir, file('lib')
- }
- maven {
- url 'http://jcenter.bintray.com'
- }
- maven {
- url 'http://maven.ej-technologies.com/repository'
- }
- maven {
- url 'http://dl.bintray.com/kotlin/kotlin-eap-1.1'
+ dirs file('lib'), file("$rootDir/lib-compile")
}
}
+ apply from: file("$rootDir/repositories.gradle")
plugins.withType(JavaPlugin).whenPluginAdded {
dependencies {
View
@@ -0,0 +1,11 @@
+repositories {
+ maven {
+ url 'http://jcenter.bintray.com'
+ }
+ maven {
+ url 'http://maven.ej-technologies.com/repository'
+ }
+ maven {
+ url 'http://dl.bintray.com/kotlin/kotlin-eap-1.1'
+ }
+}

0 comments on commit 5016ae7

Please sign in to comment.