This repository has been archived by the owner on Jan 19, 2023. It is now read-only.
forked from diffplug/spotless
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
59 lines (50 loc) · 2.38 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
plugins {
// https://www.benediktritter.de/maven-plugin-development/#release-history
id 'de.benediktritter.maven-plugin-development' version '0.4.0'
}
repositories { mavenCentral() }
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')
apply plugin: 'de.benediktritter.maven-plugin-development'
mavenPlugin {
name = 'Spotless Maven Plugin'
artifactId = project.artifactIdMaven
description = project.description
}
String VER_MAVEN_API = '3.0'
String VER_ECLIPSE_AETHER = '1.1.0'
String VER_PLEXUS_RESOURCES = '1.2.0'
dependencies {
implementation project(':lib')
implementation project(':lib-extra')
compileOnly "org.apache.maven:maven-plugin-api:${VER_MAVEN_API}"
compileOnly "org.apache.maven.plugin-tools:maven-plugin-annotations:${VER_MAVEN_API}"
compileOnly "org.apache.maven:maven-core:${VER_MAVEN_API}"
compileOnly "org.eclipse.aether:aether-api:${VER_ECLIPSE_AETHER}"
implementation "com.diffplug.durian:durian-core:${VER_DURIAN}"
implementation "com.diffplug.durian:durian-collect:${VER_DURIAN}"
implementation("org.codehaus.plexus:plexus-resources:${VER_PLEXUS_RESOURCES}")
implementation "org.eclipse.jgit:org.eclipse.jgit:${VER_JGIT}"
implementation 'org.sonatype.plexus:plexus-build-api:0.0.7'
testImplementation project(":testlib")
testImplementation "org.junit.jupiter:junit-jupiter:${VER_JUNIT}"
testImplementation "org.assertj:assertj-core:${VER_ASSERTJ}"
testImplementation "org.mockito:mockito-core:${VER_MOCKITO}"
testImplementation "com.diffplug.durian:durian-io:${VER_DURIAN}"
testImplementation 'com.github.spullara.mustache.java:compiler:0.9.10'
testImplementation "org.apache.maven:maven-plugin-api:${VER_MAVEN_API}"
testImplementation "org.eclipse.aether:aether-api:${VER_ECLIPSE_AETHER}"
testImplementation "org.codehaus.plexus:plexus-resources:${VER_PLEXUS_RESOURCES}"
testImplementation "org.apache.maven:maven-core:${VER_MAVEN_API}"
}
apply from: rootProject.file('gradle/special-tests.gradle')
tasks.withType(Test).configureEach {
systemProperty 'spotlessMavenPluginVersion', project.version
dependsOn 'publishToMavenLocal'
dependsOn ':lib:publishToMavenLocal'
dependsOn ':lib-extra:publishToMavenLocal'
}
apply from: rootProject.file("gradle/java-publish.gradle")