forked from ilovemilk/semver-git-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
69 lines (59 loc) · 1.71 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
plugins {
`maven-publish`
`java-gradle-plugin`
`jacoco`
kotlin("jvm") version "1.3.21"
id("com.gradle.plugin-publish") version "0.11.0"
}
group = "io.wusa"
version = "2.3.8"
dependencies {
implementation(kotlin("stdlib-jdk8"))
testImplementation("org.junit.jupiter:junit-jupiter:5.4.0")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.4.0")
testImplementation("io.mockk:mockk:1.9")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.4.0")
}
repositories {
jcenter()
mavenCentral()
}
tasks.named<JacocoReport>("jacocoTestReport").configure {
reports.xml.isEnabled = true
reports.html.isEnabled = false
dependsOn(tasks.named("test"))
}
tasks.withType<Test> {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
tasks.withType<Wrapper> {
gradleVersion = "5.1.1"
}
gradlePlugin {
plugins {
create("semverGitPlugin") {
id = "io.wusa.semver-git-plugin"
displayName = "semver-git-plugin"
description = "Project versioning based on semantic versioning via git tags"
implementationClass = "io.wusa.SemverGitPlugin"
}
}
}
pluginBundle {
website = "https://github.com/ilovemilk/semver-git-plugin"
vcsUrl = "https://github.com/ilovemilk/semver-git-plugin"
description = "Project versioning based on semantic versioning via git tags"
tags = listOf("git", "kotlin", "semver", "semantic-versioning", "version", "semantic", "release")
}
publishing {
publications {
create<MavenPublication>("maven") {
groupId = "io.wusa"
artifactId = "semver-git-plugin"
from(components["java"])
}
}
}