-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
72 lines (60 loc) · 1.43 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
plugins {
kotlin("jvm") version "1.4.10"
id("maven-publish")
id("com.jfrog.bintray") version "1.8.5"
`java-library`
java
}
group = "com.ilunos.common"
version = "1.0.1"
repositories {
maven("https://dl.bintray.com/nanabell/ilunos")
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib"))
}
publishing {
publications {
create<MavenPublication>("ilunos-common") {
from(components["java"])
pom {
name.set("Ilunos Common")
description.set("Common Library used by other Ilunos components")
developers {
developer {
id.set("nanabell")
name.set("Nanabell")
organization.set("Ilunos")
}
}
}
}
}
}
tasks {
java {
withJavadocJar()
withSourcesJar()
}
compileKotlin {
kotlinOptions.jvmTarget = "13"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "13"
}
}
bintray {
user = project.findProperty("bintray.user").toString()
key = project.findProperty("bintray.key").toString()
setPublications("ilunos-common")
publish = false
pkg.apply {
repo = "ilunos"
name = "ilunos-common"
version.apply {
name = "v${project.version}"
vcsTag = "v${project.version}"
}
}
}