-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
59 lines (51 loc) · 1.48 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
}
}
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'com.jfrog.bintray'
def VERSION = '0.1.2'
group 'com.taroid.knit'
version VERSION
bintray {
def propertiesFile = rootProject.file('local.properties')
if (propertiesFile.exists()) {
Properties properties = new Properties()
properties.load(propertiesFile.newDataInputStream())
user = properties.getProperty('bintray.user')
key = properties.getProperty('bintray.apiKey')
} else {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_API_KEY')
}
configurations = ['archives']
pkg {
repo = 'maven'
name = 'knit'
desc = 'JUnit API set for Kotlin'
licenses = ['Apache-2.0']
labels = ['kotlin', 'junit']
websiteUrl = 'https://github.com/ntaro/knit'
vcsUrl = 'https://github.com/ntaro/knit.git'
publicDownloadNumbers = true
githubRepo = 'ntaro/knit'
githubReleaseNotesFile = 'README.md'
version {
name = VERSION
released = new Date().format("yyyy-MM-dd'T'HH:mm:ss.SSSZZ")
}
}
}
repositories {
jcenter()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
compile 'junit:junit:4.12'
}