forked from MarkusAmshove/Kluent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
75 lines (66 loc) · 1.65 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
buildscript {
ext.kotlin_version = '1.0.0'
ext.spek_version = "0.1.+"
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
}
}
group 'org.amshove.kluent'
version '1.6'
apply plugin: 'kotlin'
apply plugin: 'idea'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
repositories {
jcenter()
maven {
url = 'http://repository.jetbrains.com/all'
}
}
dependencies {
compile 'junit:junit:4.11'
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile 'org.mockito:mockito-core:2.0.52-beta'
testCompile 'junit:junit:4.11'
testCompile "org.jetbrains.spek:spek:$spek_version"
testCompile 'org.mockito:mockito-core:2.0.52-beta'
}
sourceSets {
main.kotlin.srcDirs += 'src/main/kotlin'
test.kotlin.srcDirs += 'src/test/kotlin'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}
bintrayUpload.dependsOn install
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
publications = ['PublishKluent']
configurations = ['archives']
pkg {
repo = "maven"
name = "Kluent"
licenses = [ 'MIT' ]
vcsUrl = 'https://github.com/MarkusAmshove/Kluent'
}
}
publishing {
publications {
PublishKluent(MavenPublication) {
from components.java
groupId 'org.amshove.kluent'
artifactId 'kluent'
version '1.6'
}
}
}