-
-
Notifications
You must be signed in to change notification settings - Fork 97
/
build.gradle
executable file
·94 lines (80 loc) · 2 KB
/
build.gradle
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
import org.gradle.api.internal.classpath.ModuleRegistry
import org.gradle.api.internal.project.ProjectInternal
buildscript {
ext.kotlinVersion = '1.9.25'
repositories {
mavenCentral()
google()
gradlePluginPortal()
mavenLocal()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath 'com.vanniktech:gradle-code-quality-tools-plugin:0.22.0'
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.27.0'
}
}
apply plugin: 'java-library'
apply plugin: 'java-gradle-plugin'
apply plugin: 'kotlin'
apply plugin: 'com.vanniktech.code.quality.tools'
apply plugin: "com.vanniktech.maven.publish"
validatePlugins {
enableStricterValidation = true
}
codeQualityTools {
ktlint {
toolVersion = "0.47.1"
}
detekt {
enabled = false
}
pmd {
enabled = false
}
checkstyle {
enabled = false
}
cpd {
enabled = false
}
}
gradlePlugin {
plugins {
graphGeneratorDependencyPlugin {
id = 'com.vanniktech.dependency.graph.generator'
implementationClass = 'com.vanniktech.dependency.graph.generator.DependencyGraphGeneratorPlugin'
}
}
}
repositories {
mavenCentral()
google()
gradlePluginPortal()
}
dependencies {
implementation localGroovy()
implementation gradleApi()
api "guru.nidi:graphviz-java:0.18.1"
testImplementation 'junit:junit:4.13.2'
testImplementation "com.android.tools.build:gradle:7.3.1"
testImplementation "org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion"
// https://github.com/gradle/gradle/issues/16774#issuecomment-893493869
def toolingApiBuildersJar = (project as ProjectInternal).services.get(ModuleRegistry.class)
.getModule("gradle-tooling-api-builders")
.classpath
.asFiles
.first()
testRuntimeOnly(files(toolingApiBuildersJar))
}
sourceCompatibility = JavaVersion.VERSION_1_8
wrapper {
gradleVersion = '7.6.4'
distributionType = Wrapper.DistributionType.ALL
}
test {
testLogging {
exceptionFormat "full"
}
jvmArgs("-Xmx2048m")
}