-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
54 lines (43 loc) · 1.13 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
import java.time.LocalDate
import java.time.format.DateTimeFormatter
plugins {
kotlin("jvm") apply false
`maven-publish`
`publishing`
id("com.jfrog.bintray")
}
val kotlinVersion: String by project
allprojects {
version = "0.3.0-${kotlinVersion}-SNAPSHOT"
group = "de.classyfi.libs"
repositories {
jcenter()
}
}
val isSnapshot = project.version.toString().endsWith("-SNAPSHOT")
if (isSnapshot) {
version = "${project.version.toString().removeSuffix("-SNAPSHOT")}-${LocalDate.now().format(DateTimeFormatter.BASIC_ISO_DATE)}"
}
val bintray_user: String by project
val bintray_apikey: String by project
subprojects {
version = rootProject.version
apply(plugin = "com.jfrog.bintray")
bintray {
user = bintray_user
key = bintray_apikey
setPublications("mavenJava")
with (pkg) {
repo = "releases"
name = rootProject.name
userOrg = "markt-de"
setLicenses("Apache-2.0")
vcsUrl = "https://github.com/markt-de/spring-kotlinx-serialization"
version.name = project.version.toString()
if (isSnapshot) {
repo = "snapshots"
override = true
}
}
}
}