-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
58 lines (51 loc) · 1.83 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
plugins {
`java-gradle-plugin`
`kotlin-dsl`
`maven-publish`
id("com.gradle.plugin-publish") version "1.2.1"
}
repositories {
mavenCentral()
}
dependencies {
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testImplementation(platform("org.junit:junit-bom:5.10.2"))
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.junit.jupiter:junit-jupiter-params")
testImplementation("com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.17.1")
testImplementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.17.1")
}
gradlePlugin {
website.set("https://semantic-version.gradle.poolside.dev")
vcsUrl.set("https://github.com/countableSet/semantic-version-plugin")
plugins {
create("semanticVersionPlugin") {
id = "dev.poolside.gradle.semantic-version"
group = "dev.poolside.gradle.semanticversion"
implementationClass = "dev.poolside.gradle.semanticversion.SemanticVersionPlugin"
version = "0.2.1"
displayName = "Poolside Semantic Version Plugin"
description = "Based on a given major.minor version, plugin determines patch version based on what is already " +
"maven repository by auto incrementing it to produce the next version number. Major or minor versions " +
"must be manually changed"
tags.set(listOf("semantic version", "maven", "publish", "auto increment"))
}
}
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
kotlin {
compilerOptions {
jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11)
}
}
tasks {
test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
}