-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
57 lines (46 loc) · 1.62 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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
plugins {
`embedded-kotlin`
embeddedKotlin("plugin.serialization")
alias(libs.plugins.gradle.pluginPublish)
}
group = "com.ebay.plugins"
gradlePlugin {
website = "https://github.com/eBay/metrics-for-develocity-plugin"
vcsUrl = "https://github.com/eBay/metrics-for-develocity-plugin.git"
plugins {
create("metricsForDevelocity") {
id = "com.ebay.metrics-for-develocity"
implementationClass = "com.ebay.plugins.metrics.develocity.MetricsForDevelocitySettingsPlugin"
displayName = "Metrics for Develocity Plugin"
description = "Gradle plugin which provides a framework for reporting on Develocity build data"
tags = listOf(
"develocity", "analysis", "report"
)
}
}
}
dependencies {
api(libs.develocityApi)
compileOnly(libs.gradle.develocity)
compileOnly(libs.pluginLib.ebay.graphAnalytics)
implementation(libs.kotlinx.coroutines)
implementation(libs.kotlinx.serializationJson)
testImplementation(libs.test.hamcrest)
testImplementation(libs.test.testng)
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
project.tasks.withType(KotlinJvmCompile::class.java) {
compilerOptions {
allWarningsAsErrors.set(true)
freeCompilerArgs.addAll(listOf("-Xjvm-default=all", "-opt-in=kotlin.RequiresOptIn"))
jvmTarget.set(JvmTarget.JVM_11)
}
}
project.tasks.withType(Test::class.java) {
useTestNG()
}