forked from link108/spinnakerPluginExample
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
72 lines (64 loc) · 1.57 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
buildscript {
ext.kotlin_version = '1.4.10'
repositories {
mavenCentral()
}
dependencies {
classpath "org.yaml:snakeyaml:1.19"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
plugins {
id("io.spinnaker.plugin.bundler").version("$spinnakerGradleVersion")
id("com.palantir.git-version").version("0.12.2")
id("com.diffplug.spotless").version("5.1.0")
}
apply plugin: 'kotlin'
repositories {
mavenCentral()
}
spinnakerBundle {
pluginId = "Armory.RandomWaitPlugin"
description = "An example of a PF4J-based plugin that provides a custom pipeline stage."
provider = "https://github.com/spinnaker-plugin-examples"
version = rootProject.version
}
//version = normalizedVersion()
subprojects {
group = "io.armory.plugin.stage.wait.random"
version = rootProject.version
if (name != "random-wait-deck") {
apply plugin: "com.diffplug.spotless"
spotless {
kotlin {
ktlint().userData([
disabled_rules : "no-wildcard-imports",
indent_size : "2",
continuation_indent_size: "2",
])
}
}
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
//String normalizedVersion() {
// String fullVersion = gitVersion()
// String normalized = fullVersion.split("-").first()
// if (fullVersion.contains("dirty")) {
// return "$normalized-SNAPSHOT"
// } else {
// return normalized
// }
//}