-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
81 lines (70 loc) · 2.59 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
mavenCentral()
jcenter()
maven {
url 'http://oss.sonatype.org/content/repositories/snapshots'
}
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.netflix.nebula:gradle-extra-configurations-plugin:2.2.+"
}
}
allprojects {
configurations {
javadocDeps
}
//COMMON BUILD TOOL AND SDK VERSION FOR ALL MODULES
ext {
VERSION_NAME='0.1.0-SNAPSHOT' //GLOBAL VERSION FOR GRAPHKOOL libs
POM_NAME='GraphKool: GraphQl server port for Kotlin'
GROUP_MAVEN_PUSH= 'com.github.beyondeye.graphkool' //used by maven-push: MAKE SURE THAT THIS MATCHES group DEFINED BELOW IN THIS FILE AND USED BY JITPACK
sourceCompatibility_ = 1.8 //I want this library to be linkable from android projects
targetCompatibility_ = 1.8 //I want this library to be linkable from android projects
extraConfVersion = '2.2.+'
}
}
//config for android specific libs
//configure(subprojects.findAll {it.name != 'reduks-core' && it.name != 'zjsonpatch'}) {
//
//}
//config for java specific libs
//configure(subprojects.findAll {it.name == 'reduks-core' || it.name == 'zjsonpatch'}) {
//
//}
//configure(subprojects.findAll{it.name =='reduks-core' || it.name =='reduks-pcollections'|| it.name =='reduks-bus'}) {
configure(subprojects.findAll{it.name =='graphkool-core' ||it.name =='graphkool-dataloader'}) {
repositories {
mavenCentral()
}
apply plugin: 'kotlin'
apply plugin: 'maven'
group = 'com.github.beyondeye.graphkool' //required by jitpack
sourceCompatibility = sourceCompatibility_ //I want this library to be linkable from android projects
targetCompatibility = targetCompatibility_ //I want this library to be linkable from android projects
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
test.java.srcDirs += 'src/test/kotlin'
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
// testCompile 'org.assertj:assertj-core:1.7.1'
testCompile "junit:junit:$junit_version"
testCompile 'io.kotlintest:kotlintest:1.3.5'
}
//Test Logging
tasks.withType(Test) {
testLogging {
events "started", "passed", "skipped", "failed"
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
//task for updating gradle
task wrapper(type: Wrapper) {
gradleVersion = '2.14.1'
}