-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
119 lines (95 loc) · 2.69 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
buildscript {
ext.versions = [
'kotlin' : '1.2.0-rc-39',
'coroutines': '0.19.3',
]
ext.deps = [
'kotlin' : [
'stdLib' : [
'jre' : "org.jetbrains.kotlin:kotlin-stdlib:${versions.kotlin}",
],
'test' : [
'jre' : "org.jetbrains.kotlin:kotlin-test-junit:${versions.kotlin}",
],
'coroutines': "org.jetbrains.kotlinx:kotlinx-coroutines-core:${versions.coroutines}",
],
'junit' : 'junit:junit:4.12'
]
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
classpath "net.researchgate:gradle-release:2.4.0"
}
repositories {
mavenCentral()
maven { url 'http://dl.bintray.com/kotlin/kotlin-eap-1.2' }
maven { url 'https://plugins.gradle.org/m2/' }
}
}
plugins {
// id "org.ajoberstar.grgit" version "2.1.0"
}
apply plugin: 'org.jetbrains.kotlin.platform.jvm'
apply plugin: 'project-report'
//Shadow plugin & dependencies
apply plugin: 'java'
apply plugin: 'net.researchgate.release'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
dependencies {
def withExcludes = { boolean excludeDesign ->
return {
exclude group: 'org.simpleframework', module: 'simple'
if (excludeDesign) {
}
}
}
compile deps.kotlin.stdLib.jre
compile "org.eclipse.jgit:org.eclipse.jgit:4.9.0.201710071750-r"
compile 'io.github.microutils:kotlin-logging:1.4.6'
compile "com.fasterxml.jackson.module:jackson-module-kotlin:2.9.0"
testCompile 'org.apache.logging.log4j:log4j-core:2.9.1'
testCompile 'org.apache.logging.log4j:log4j-api:2.9.1'
testCompile 'org.apache.logging.log4j:log4j-slf4j-impl:2.9.1'
testCompile 'com.nhaarman:mockito-kotlin:1.5.0'
testCompile deps.kotlin.test.jre
testCompile "io.kotlintest:kotlintest:2.0.7"
}
test {
testLogging {
events 'passed', 'skipped', 'failed'
}
}
kotlin {
experimental {
coroutines "enable"
}
}
repositories {
mavenCentral()
maven { url 'http://dl.bintray.com/kotlin/kotlin-eap-1.2' }
jcenter()
}
release {
failOnCommitNeeded = true
failOnPublishNeeded = true
failOnSnapshotDependencies = true
failOnUnversionedFiles = false
failOnUpdateNeeded = true
revertOnFail = true
preCommitText = ''
preTagCommitMessage = 'gradle release - pre tag commit: '
tagCommitMessage = 'gradle release - creating tag: '
newVersionCommitMessage = 'gradle release - new version commit: '
versionPropertyFile = 'gradle.properties'
versionProperties = []
buildTasks = ['build']
scmAdapters = [
net.researchgate.release.GitAdapter
]
git {
requireBranch = 'master'
pushToRemote = 'origin'
pushToBranchPrefix = ''
commitVersionFileOnly = false
}
}