-
Notifications
You must be signed in to change notification settings - Fork 517
Expand file tree
/
Copy pathbuild.gradle
More file actions
63 lines (52 loc) · 1.99 KB
/
build.gradle
File metadata and controls
63 lines (52 loc) · 1.99 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
55
56
57
58
59
60
61
62
63
import org.gradlex.maven.plugin.development.task.GenerateHelpMojoSourcesTask
import org.gradlex.maven.plugin.development.task.GenerateMavenPluginDescriptorTask
plugins {
// https://github.com/gradlex-org/maven-plugin-development
alias libs.plugins.maven.plugin.development
}
apply from: rootProject.file('gradle/changelog.gradle')
ext.artifactId = project.artifactIdMaven
version = spotlessChangelog.versionNext
apply from: rootProject.file("gradle/java-setup.gradle")
apply from: rootProject.file('gradle/spotless-freshmark.gradle')
mavenPlugin {
name = 'Spotless Maven Plugin'
artifactId = project.artifactIdMaven
description = project.description
}
dependencies {
implementation projects.lib
implementation projects.libExtra
compileOnly libs.maven.plugin.api
compileOnly libs.maven.plugin.annotations
compileOnly libs.maven.core
compileOnly libs.aether.api
compileOnly libs.jakarta.annotation.api
implementation libs.durian.core
implementation libs.durian.io
implementation libs.durian.collect
implementation libs.plexus.resources
implementation libs.jgit
implementation libs.plexus.build.api
testImplementation project(":testlib")
testImplementation libs.junit.jupiter
testImplementation libs.assertj.core
testImplementation libs.mockito.core
testImplementation libs.durian.io
testImplementation libs.mustache.compiler
testImplementation libs.owasp.encoder
testImplementation libs.maven.plugin.api
testImplementation libs.aether.api
testImplementation libs.plexus.resources
testImplementation libs.maven.core
testRuntimeOnly "org.junit.platform:junit-platform-launcher"
}
apply from: rootProject.file('gradle/special-tests.gradle')
tasks.withType(Test).configureEach {
systemProperty 'spotlessMavenPluginVersion', project.version
systemProperty 'spotlessProjectDir', "${project.rootProject.projectDir}".toString()
dependsOn 'publishToMavenLocal'
dependsOn ':lib:publishToMavenLocal'
dependsOn ':lib-extra:publishToMavenLocal'
}
apply from: rootProject.file("gradle/java-publish.gradle")