-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
69 lines (61 loc) · 2.02 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
import org.jetbrains.changelog.date
plugins {
`java-gradle-plugin`
`maven-publish`
kotlin("jvm") version "1.5.21"
id("com.gradle.plugin-publish") version "0.11.0"
id("net.researchgate.release") version "2.8.1"
id("org.jetbrains.changelog") version "1.3.0"
}
repositories {
mavenLocal()
gradlePluginPortal()
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation(kotlin("reflect"))
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.12.5")
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.12.5")
implementation("org.apache.commons:commons-lang3:3.12.0")
testImplementation("org.junit-pioneer:junit-pioneer:1.4.2")
testImplementation("org.junit.jupiter:junit-jupiter:5.8.0")
testImplementation("com.willowtreeapps.assertk:assertk-jvm:0.25")
}
tasks {
test {
useJUnitPlatform()
}
"afterReleaseBuild"{
dependsOn("publish", "publishPlugins", "patchChangelog")
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
}
gradlePlugin {
plugins {
create("yaml-secrets-gradle-plugin") {
id = "com.pswidersk.yaml-secrets-plugin"
implementationClass = "com.pswidersk.gradle.yamlsecrets.YamlSecretsPlugin"
displayName = "Gradle plugin to load secret properties from Yaml files. " +
"https://github.com/PrzemyslawSwiderski/yaml-secrets-gradle-plugin"
}
}
}
pluginBundle {
website = "https://github.com/PrzemyslawSwiderski/yaml-secrets-gradle-plugin"
vcsUrl = "https://github.com/PrzemyslawSwiderski/yaml-secrets-gradle-plugin"
description = "Gradle plugin to load secret properties from Yaml files."
tags = listOf("yaml", "yml", "properties", "secrets")
}
publishing {
repositories {
mavenLocal()
}
}
// Configuring changelog Gradle plugin https://github.com/JetBrains/gradle-changelog-plugin
changelog {
header.set(provider { "[${version.get()}] - ${date()}" })
}