-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
68 lines (58 loc) · 1.78 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
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
plugins {
`java-gradle-plugin`
`kotlin-dsl`
id("com.gradle.plugin-publish").version("0.12.0")
id("pl.allegro.tech.build.axion-release").version("1.14.3")
id("signing")
}
dependencyLocking {
lockAllConfigurations()
}
scmVersion {
tag.prefix.set("release-")
}
project.version = scmVersion.version
project.group = "com.atlassian.performance.tools"
gradlePlugin {
plugins {
create("${project.group}.${project.name}") {
id = "${project.group}.${project.name}"
implementationClass = "${project.group}.GradleRelease"
}
}
}
pluginBundle {
website = "https://bitbucket.org/atlassian/gradle-release"
vcsUrl = "https://bitbucket.org/atlassian/gradle-release"
(plugins) {
"${project.group}.${project.name}" {
displayName = "Performance Tools release plugin"
description = "Performance Tools release plugin"
version = scmVersion.version
tags = listOf("individual")
}
}
}
dependencies {
implementation(gradlePlugin("pl.allegro.tech.build.axion-release", "1.14.3"))
implementation(gradlePlugin("org.jetbrains.dokka", "1.7.20"))
implementation(gradlePlugin("com.github.hierynomus.license", "0.14.0"))
implementation("net.linguica.gradle:maven-settings-plugin:0.5")
implementation("org.eclipse.jgit:org.eclipse.jgit:5.13.1.202206130422-r")
testImplementation("junit:junit:4.12")
testImplementation("org.assertj:assertj-core:3.11.0")
}
fun gradlePlugin(
id: String,
version: String
): String {
return "$id:$id.gradle.plugin:$version"
}
repositories {
gradlePluginPortal()
}
tasks.wrapper {
gradleVersion = "7.6"
distributionType = Wrapper.DistributionType.ALL
}