forked from crowdconnected/protoactor-kotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
80 lines (61 loc) · 1.68 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
buildscript {
ext.kotlin_version = '1.3.10'
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.netflix.nebula:nebula-release-plugin:6.1.0'
classpath 'com.netflix.nebula:nebula-bintray-plugin:3.5.2'
classpath('org.jfrog.buildinfo:build-info-extractor-gradle:4.5.4') {
force = true
}
}
}
plugins {
id 'com.github.ben-manes.versions' version '0.17.0'
}
allprojects {
group = 'actor.proto'
apply plugin: 'idea'
apply plugin: 'nebula.release'
}
subprojects {
apply plugin: 'kotlin'
repositories {
jcenter()
}
dependencies {
compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib', version: kotlin_version
compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8', version: kotlin_version
testCompile group: 'org.jetbrains.kotlin', name: 'kotlin-test-junit', version: kotlin_version
testCompile group: 'junit', name: 'junit', version:'4.12'
}
kotlin {
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
allWarningsAsErrors = false
}
}
}
configure(subprojects - project(':examples')) {
apply from: "$rootDir/gradle/publishing.gradle"
apply plugin: 'jacoco'
jacocoTestReport {
reports {
xml.enabled = true
html.enabled = true
}
}
check.dependsOn jacocoTestReport
}
gradle.taskGraph.whenReady { graph ->
tasks.artifactoryPublish.onlyIf {
graph.hasTask(':snapshot')
}
}
task wrapper(type: Wrapper) {
gradleVersion = '4.3.1'
}