-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
97 lines (81 loc) · 2.74 KB
/
build.gradle.kts
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
import com.jfrog.bintray.gradle.BintrayExtension
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.3.50"
java
`maven-publish`
id("com.jfrog.bintray") version "1.8.1"
}
group = "io.github.eliahburns"
version = "0.1.0"
repositories {
jcenter()
maven(url = "https://jitpack.io")
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.0")
implementation("io.github.microutils:kotlin-logging:1.7.4")
testImplementation("org.slf4j:slf4j-simple:1.7.26")
testImplementation("io.kotlintest:kotlintest-runner-junit5:3.3.2")
testCompile("junit", "junit", "4.12")
}
tasks {
withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs += "-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi"
}
}
withType<Test> {
useJUnitPlatform { }
}
}
publishing {
publications {
register(rootProject.name, MavenPublication::class) {
from(components["kotlin"])
groupId = project.group as String
artifactId = rootProject.name
version = project.version as String
pom {
licenses {
license {
name.set("GPL-3.0")
url.set("https://github.com/eliahburns/partitioned-channel/blob/master/LICENSE")
}
}
developers {
developer {
name.set("Eliah Burns")
email.set("[email protected]")
}
}
scm {
url.set("https://github.com/eliahburns/partitioned-channel")
connection.set("scm:git:https://github.com/eliahburns/partitioned-channel")
}
}
}
}
repositories {
maven(url = "https://bintray.com/eliahburns")
}
}
configure<BintrayExtension> {
user = findProperty("BINTRAY_USER") as? String
key = findProperty("BINTRAY_API_KEY") as? String
setPublications(rootProject.name)
publish = true
pkg(delegateClosureOf<BintrayExtension.PackageConfig> {
repo = "maven"
name = "partitioned-channel"
desc = "Kotlin Library for applying parallel actions to a Channel or Flow while maintaining ordering in partitions"
vcsUrl = "https://github.com/eliahburns/partitioned-channel.git"
websiteUrl = "https://eliahburns.github.io/partitioned-channel/"
setLicenses("GPL-3.0")
version(delegateClosureOf<BintrayExtension.VersionConfig> {
name = project.version as String
})
})
}