-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
59 lines (47 loc) · 1.39 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.6.10"
id("com.gradle.plugin-publish") version "1.0.0"
}
group = "com.revolut"
version = "0.5"
repositories {
mavenCentral()
}
dependencies {
compileOnly(gradleKotlinDsl())
testImplementation(platform("org.junit:junit-bom:5.9.1"))
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("com.google.truth:truth:1.1.3")
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
}
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions.jvmTarget = "1.8"
}
kotlin {
explicitApi()
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
gradlePlugin {
plugins {
create("task-graph-assertions") {
id = "com.revolut.task-graph-assertions"
implementationClass = "com.revolut.TaskGraphAssertionsPlugin"
displayName = "Task Graph Assertions Plugin"
description = "Add assertions to be aware that your complex gradle build tasks hierarchy is still here"
}
}
}
pluginBundle {
website = "https://github.com/revolut-mobile/task-graph-assertions#readme"
vcsUrl = "https://github.com/revolut-mobile/task-graph-assertions"
tags = listOf("validation", "task-graph")
}