Repository navigation
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
54 lines (46 loc) · 1.57 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
54 lines (46 loc) · 1.57 KB
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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
plugins {
`embedded-kotlin`
alias(libs.plugins.gradle.pluginPublish)
}
group = "com.ebay"
gradlePlugin {
website = "https://github.com/ebay/graph-analytics-plugin"
vcsUrl = "https://github.com/ebay/graph-analytics-plugin.git"
plugins {
create("com.ebay.graph-analytics") {
id = "com.ebay.graph-analytics"
implementationClass = "com.ebay.plugins.graph.analytics.GraphAnalyticsPlugin"
displayName = "Graph Analytics Plugin"
description = "Gradle plugin to perform project graph analysis, assertion, and reporting for multi-module projects"
tags = listOf(
"graph", "analysis", "assert", "multiprojects", "module", "dependency-graph"
)
}
}
}
dependencies {
api(libs.jgrapht.core)
api(libs.jgrapht.io) {
// Not needed since it is only used for DOT, GML, JSON, and CSV support.
exclude(group = "org.antlr", module = "antlr4-runtime")
}
testImplementation(libs.test.hamcrest)
testImplementation(libs.test.mockito.kotlin)
testImplementation(libs.test.testng)
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
tasks.withType(KotlinJvmCompile::class.java) {
compilerOptions {
allWarningsAsErrors.set(true)
jvmTarget.set(JvmTarget.JVM_11)
freeCompilerArgs.addAll(listOf("-opt-in=kotlin.RequiresOptIn"))
}
}
tasks.withType<Test> {
useTestNG()
}