-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbuild.gradle
55 lines (49 loc) · 1.32 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}"
}
}
plugins {
id("io.spinnaker.plugin.bundler").version("$spinnakerGradleVersion")
id("com.palantir.git-version").version("0.12.2")
id("org.jetbrains.kotlin.jvm").version("$kotlinVersion")
id("org.jetbrains.kotlin.kapt").version("$kotlinVersion")
id("com.diffplug.spotless").version("5.1.0")
}
allprojects {
repositories {
jcenter() {
metadataSources {
artifact()
mavenPom()
}
}
mavenCentral()
if (property("korkVersion").toString().endsWith("-SNAPSHOT")) {
mavenLocal()
}
}
}
spinnakerBundle {
pluginId = "aws.ManagedDeliveryK8sPlugin"
description = "K8s support for Managed Delivery"
provider = "https://aws.amazon.com"
version = rootProject.version
}
version = normalizedVersion()
subprojects {
group = "com.amazon.spinnaker.keel.k8s"
version = rootProject.version
}
String normalizedVersion() {
String fullVersion = gitVersion()
String normalized = fullVersion.split("-").first()
if (fullVersion.contains("dirty")) {
return "$normalized-SNAPSHOT"
} else {
return normalized
}
}