-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
51 lines (43 loc) · 1.47 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Top-level build file where you can add configuration options common to all sub-projects/modules.
import com.builder.ModelTable
import com.builder.publish.PublisherMgr
import com.builder.versions.DepTable
ModelTable.rootProject = getRootProject();
buildscript {
repositories {
gradlePluginPortal()
mavenLocal()
maven { url "https://plugins.gradle.org/m2/" }
mavenCentral()
google()
}
dependencies {
classpath DepTable.Build.gradle
classpath DepTable.Build.builder
classpath DepTable.Kotlin.kotlin_gradle_plugin
// classpath 'com.wuba.easyaop:gradlePlugin:0.1.1-SNAPSHOT'
}
}
allprojects { project ->
repositories {
mavenLocal()
mavenCentral()
google()
}
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'org.jetbrains.kotlin') {
if (details.requested.name == 'kotlin-gradle-plugin' || details.requested.name == 'kotlin-reflect' || details.requested.name == 'kotlin-stdlib-jdk8') {
println("kotlin=>${details.requested};;using Verison:${DepTable.Kotlin.version}")
details.useVersion DepTable.Kotlin.version
} else {
println("kotlin lib=>${details.requested}")
}
}
}
}
PublisherMgr.config(project)
}
task clean(type: Delete) {
delete rootProject.buildDir
}