-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
108 lines (91 loc) · 2.38 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
buildscript {
ext.kotlin_version = '1.3.0'
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id "com.jfrog.bintray" version "1.8.4"
}
def kroolGroup = "com.svetylkovo"
def kroolArtifact = "krool"
def kroolVersion = "0.1.0"
def kroolDescription = "Kotlin resource pool based on non-blocking coroutines."
def kroolLicence = "GPL-3.0"
def kroolVcsUrl = "https://github.com/LittleLightCz/Krool.git"
group = kroolGroup
version = kroolVersion
allprojects {
repositories {
jcenter()
maven { url 'https://dl.bintray.com/kotlin/kotlin-eap' }
}
apply plugin: 'kotlin'
apply plugin: 'maven'
apply plugin: 'maven-publish'
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib"
implementation "org.jetbrains.kotlin:kotlin-reflect:1.3.0"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.0.0"
testImplementation "junit:junit:4.12"
testImplementation "org.assertj:assertj-core:3.10.0"
testImplementation "io.mockk:mockk:1.8.5"
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.6"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.6"
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
publishing {
publications {
MyPublication(MavenPublication) {
from components.java
groupId kroolGroup
artifactId kroolArtifact
version kroolVersion
artifact sourcesJar
artifact javadocJar
}
}
}
Properties props = new Properties()
new File("$rootDir/bintray.properties").withInputStream {
props.load(it)
}
bintray {
user = props.getProperty('bintray.user')
key = props.getProperty('bintray.apikey')
publications = ['MyPublication']
override = true
pkg {
repo = 'Krool'
name = kroolArtifact
userOrg = user
licenses = [kroolLicence]
vcsUrl = kroolVcsUrl
labels = ['kotlin', 'pool', 'resource']
publicDownloadNumbers = true
version {
name = kroolVersion
desc = kroolDescription
vcsTag = kroolVersion
}
}
}