-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
92 lines (78 loc) · 1.97 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
buildscript {
repositories {
mavenCentral()
}
}
plugins {
id "jacoco"
id "org.jetbrains.kotlin.jvm" version "1.2.31"
id "maven-publish"
id "com.jfrog.bintray" version "1.8.0"
}
repositories {
mavenCentral()
}
group = "name.alatushkin.utils"
version = "0.0.1"
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
testCompile("org.junit.jupiter:junit-jupiter-api:5.1.0")
testRuntime("org.junit.jupiter:junit-jupiter-engine:5.1.0")
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
jvmTarget = "1.8"
}
}
test {
useJUnitPlatform()
}
task wrapper(type: Wrapper) {
gradleVersion = "4.6"
}
task sourceJar(type: Jar) {
from sourceSets.main.allSource
}
jacocoTestReport {
reports {
xml.enabled true
csv.enabled false
}
}
publishing {
publications {
MyPublication(MavenPublication) {
from components.java
artifact sourceJar {
classifier "sources"
}
groupId "$groupId"
artifactId "$project.name"
version "$version"
}
}
repositories {
maven {
url = uri("$buildDir/repository")
}
}
}
bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_API_USER')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
publications = ['MyPublication']
publish = true
override = true
pkg {
repo = 'maven'
name = 'kotlin-variety-strings'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/alatushkin/kotlin-variety-strings.git'
version {
name = "$project.version"
desc = 'Variety strings build snapshot'
released = new Date()
vcsTag = "$project.version-" + (new Date().time % 1000)
}
}
}