-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
156 lines (119 loc) · 3.54 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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
buildscript {
ext.versions = [
'kotlin' : '1.2.0',
'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.7.5"
classpath "honey:kgit:0.1.9"
}
repositories {
mavenCentral()
mavenLocal()
maven { url 'http://dl.bintray.com/kotlin/kotlin-eap-1.2' }
maven { url 'https://plugins.gradle.org/m2/' }
maven { url 'https://raw.github.com/chaschev/kgit/repository' }
maven { url 'https://raw.github.com/chaschev/gradle-release/repository' }
}
}
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'
apply plugin: 'maven-publish'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
compileKotlin {
kotlinOptions.jvmTarget = '1.8'
}
dependencies {
def withExcludes = { boolean excludeDesign ->
return {
exclude group: 'org.simpleframework', module: 'simple'
if (excludeDesign) {
}
}
}
compile deps.kotlin.stdLib.jre
compile("org.jetbrains.kotlin:kotlin-script-util:${versions.kotlin}")
compile "org.jetbrains.kotlin:kotlin-script-runtime:${versions.kotlin}"
compile "org.eclipse.jgit:org.eclipse.jgit:4.9.0.201710071750-r"
compile "com.xenomachina:kotlin-argparser:2.0.3"
compile "io.github.microutils:kotlin-logging:1.4.6"
compile 'org.slf4j:slf4j-simple:1.7.25'
compile "com.fasterxml.jackson.module:jackson-module-kotlin:2.9.0"
compile 'jline:jline:2.14.5'
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'
}
group = 'honey'
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}
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 {
git {
publishToGit = true
gitRepoUrl = "https://github.com/chaschev/honey-mouth.git"
requireBranch = 'master'
}
}
release {
preTagCommitMessage = 'gradle release - pre tag commit: '
tagCommitMessage = 'gradle release - creating tag: '
newVersionCommitMessage = 'gradle release - new version commit: '
versionPropertyFile = 'gradle.properties'
scmAdapters = [
net.researchgate.release.GitAdapter
]
buildProps = [
"honeyMouth.installClass": 'honey.install.AppInstaller',
"honeyMouth.preinstallClass": 'honey.install.PatchKotlinCompilerPreinstall',
"honeyMouth.dslDefClass": 'honey.install.DefaultInstallDef'
]
git {
publishToGit = true
gitRepoUrl = "https://github.com/chaschev/honey-mouth.git"
gitAccessRepoUrl = "https://raw.github.com/chaschev/honey-mouth/repository"
requireBranch = 'master'
}
}