-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle
More file actions
39 lines (34 loc) · 960 Bytes
/
Copy pathbuild.gradle
File metadata and controls
39 lines (34 loc) · 960 Bytes
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
buildscript {
repositories {
mavenCentral()
maven { url "https://dl.bintray.com/spinnaker/gradle/" }
}
dependencies {
classpath("com.netflix.spinnaker.gradle:spinnaker-extensions:$spinnakerGradleVersion")
}
}
plugins {
id("com.palantir.git-version").version("0.12.2")
id("com.moowork.node").version("1.3.1").apply(false)
}
apply plugin: "io.spinnaker.plugin.bundler"
spinnakerBundle {
pluginId = "Armory.PulumiPlugin"
description = "A Pulumi plugin that provides a pulumi pipeline stage."
provider = "https://github.com/spinnaker-hackathon"
version = rootProject.version
}
version = normalizedVersion()
subprojects {
group = "io.armory.plugin.stage.pulumi"
version = rootProject.version
}
String normalizedVersion() {
String fullVersion = gitVersion()
String normalized = fullVersion.split("-").first()
if (fullVersion.contains("dirty")) {
return "$normalized-SNAPSHOT"
} else {
return normalized
}
}