-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
93 lines (78 loc) · 2.19 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
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.72'
id 'idea'
id 'maven-publish'
id 'java'
id 'com.jfrog.bintray' version '1.8.4'
}
group 'org.ktypeparser'
version '2.1'
repositories {
mavenCentral()
}
dependencies {
compile("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.3.7")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.7")
implementation("org.overviewproject:mime-types:0.1.3")
testImplementation("org.junit.jupiter:junit-jupiter:5.6.2")
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
}
def pomConfig = {
licenses {
license {
name "GNU GENERAL PUBLIC LICENSE, Version 3.0"
url "https://www.gnu.org/licenses/gpl-3.0.en.html"
distribution "repo"
}
}
developers {
developer {
id "alekseinovikov"
name "Aleksei Novikov"
email "novikov.aleksei.92@gmail.com"
}
}
scm {
url "https://github.com/alekseinovikov/KTypeParser"
}
}
publishing {
publications {
mavenPublication(MavenPublication) {
groupId = 'org.ktypeparser'
artifactId = 'ktype-parser'
pom.withXml {
def root = asNode()
root.appendNode('description', 'KTypeParser parses MIME types')
root.appendNode('name', 'KTypeParser')
root.appendNode('url', 'https://github.com/alekseinovikov/KTypeParser')
root.children().last() + pomConfig
}
from components.java
}
}
}
bintray {
user = System.getenv("BINTRAY_USER") ?: System.properties['bintrayUser']
key = System.getenv("BINTRAY_KEY") ?: System.properties['bintrayKey']
configurations = ['archives']
publications = ['mavenPublication']
pkg {
repo = "KTypeParser"
name = project.name
licenses = ['GPL-3.0']
vcsUrl = 'https://github.com/alekseinovikov/KTypeParser.git'
}
}