forked from square/okio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
90 lines (84 loc) · 3.01 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
buildscript {
ext.versions = [
'kotlin': '1.2.60',
'kotlinNative': '0.8.2',
'jmhPlugin': '0.4.5',
'animalSnifferPlugin': '1.4.3',
'dokka': '0.9.16',
'jmh': '1.20',
'animalSniffer': '1.16',
'junit': '4.12',
'assertj': '1.7.0',
'shadowPlugin': '2.0.2',
'nodePlugin': '1.2.0',
'mavenPublishPlugin': '0.4.0',
'ktlintPlugin': '5.1.0',
]
ext.deps = [
'kotlin': [
'gradlePlugin': "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}",
'stdLib': [
'common': "org.jetbrains.kotlin:kotlin-stdlib-common",
'jdk8': "org.jetbrains.kotlin:kotlin-stdlib-jdk8",
'jdk7': "org.jetbrains.kotlin:kotlin-stdlib-jdk7",
'jdk6': "org.jetbrains.kotlin:kotlin-stdlib",
'js': "org.jetbrains.kotlin:kotlin-stdlib-js",
],
'test': [
'common': "org.jetbrains.kotlin:kotlin-test-common",
'annotations': "org.jetbrains.kotlin:kotlin-test-annotations-common",
'jdk': "org.jetbrains.kotlin:kotlin-test-junit",
'js': "org.jetbrains.kotlin:kotlin-test-js",
],
'native': [
'gradlePlugin': "org.jetbrains.kotlin:kotlin-native-gradle-plugin:${versions.kotlinNative}",
]
],
'jmh': [
'gradlePlugin': "me.champeau.gradle:jmh-gradle-plugin:${versions.jmhPlugin}",
'core': "org.openjdk.jmh:jmh-core:${versions.jmh}",
'generator': "org.openjdk.jmh:jmh-generator-annprocess:${versions.jmh}",
],
'animalSniffer': [
'gradlePlugin': "ru.vyarus:gradle-animalsniffer-plugin:${versions.animalSnifferPlugin}",
'annotations': "org.codehaus.mojo:animal-sniffer-annotations:${versions.animalSniffer}",
],
'japicmp': 'me.champeau.gradle:japicmp-gradle-plugin:0.2.6',
'dokka': "org.jetbrains.dokka:dokka-gradle-plugin:${versions.dokka}",
'shadow': "com.github.jengelman.gradle.plugins:shadow:${versions.shadowPlugin}",
'node': "com.moowork.gradle:gradle-node-plugin:${versions.nodePlugin}",
'mavenPublish': "com.vanniktech:gradle-maven-publish-plugin:${versions.mavenPublishPlugin}",
'ktlint': "gradle.plugin.org.jlleitschuh.gradle:ktlint-gradle:${versions.ktlintPlugin}",
'test': [
'junit': "junit:junit:${versions.junit}",
'assertj': "org.assertj:assertj-core:${versions.assertj}",
]
]
dependencies {
classpath deps.kotlin.gradlePlugin
classpath deps.kotlin.native.gradlePlugin
classpath deps.animalSniffer.gradlePlugin
classpath deps.japicmp
classpath deps.dokka
classpath deps.shadow
classpath deps.jmh.gradlePlugin
classpath deps.node
classpath deps.mavenPublish
classpath deps.ktlint
}
repositories {
mavenCentral()
gradlePluginPortal()
}
}
allprojects {
group = GROUP
version = VERSION_NAME
}
subprojects {
repositories {
mavenCentral()
jcenter()
}
apply plugin: "org.jlleitschuh.gradle.ktlint"
}