-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
78 lines (68 loc) · 1.76 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
import org.gradle.jvm.tasks.Jar
import com.jfrog.bintray.gradle.BintrayExtension
group = "com.rowma.rowma-kotlin"
version = "1.1.3"
val artifactID = "rowma-kotlin"
val publicationName = "default"
plugins {
`maven-publish`
kotlin("jvm") version "1.3.70"
id("com.jfrog.bintray") version "1.8.5"
}
repositories {
jcenter()
}
dependencies {
implementation(kotlin("stdlib"))
implementation("io.socket:socket.io-client:1.0.0")
implementation("com.github.nazmulidris:color-console:1.0.0")
testImplementation(platform("org.junit:junit-bom:5.7.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
}
tasks.test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
val sourcesJar by tasks.registering(Jar::class) {
classifier = "sources"
from(sourceSets.main.get().allSource)
}
publishing {
publications {
create<MavenPublication>("default") {
from(components["java"])
}
}
publications.invoke {
publicationName(MavenPublication::class) {
artifactId = artifactID
artifact(sourcesJar.get())
}
}
}
fun findProperty(s: String) = project.findProperty(s) as String?
bintray {
user = findProperty("bintrayUser")
key = findProperty("bintrayApiKey")
publish = true
setPublications(publicationName)
pkg(delegateClosureOf<BintrayExtension.PackageConfig> {
repo = "rowma"
name = "rowma-kotlin"
userOrg = "asmsuechan"
websiteUrl = "https://github.com"
githubRepo = "rowma/rowma-kotlin"
vcsUrl = "https://github.com/rowma/rowma-kotlin"
description = ""
setLabels("kotlin")
setLicenses("MIT")
desc = description
})
}
repositories {
maven{
url = uri("https://jitpack.io")
}
}