File tree 3 files changed +16
-28
lines changed
3 files changed +16
-28
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,13 @@ plugins {
11
11
id ' org.jdrupes.mdoclet' version ' 1.0.5' apply false
12
12
// https://github.com/spotbugs/spotbugs/releases
13
13
id " com.github.spotbugs" version " 2.0.0" apply false
14
+ // here
15
+ id ' com.diffplug.gradle.spotless' version ' 3.27.0'
14
16
}
15
17
18
+ // this is... not the canonical way to do spotless :)
19
+ apply from : ' spotlessSelf.gradle'
20
+
16
21
// root eclipse project
17
22
apply plugin : ' com.diffplug.gradle.eclipse.resourcefilters'
18
23
eclipseResourceFilters {
Original file line number Diff line number Diff line change @@ -28,24 +28,19 @@ dependencies {
28
28
29
29
tasks. eclipse. dependsOn(pluginUnderTestMetadata)
30
30
31
- // ///////////////////
32
- // SPOTLESS (fake) //
33
- // ///////////////////
34
- task spotlessCheck (type : JavaExec ) {
35
- classpath sourceSets. test. runtimeClasspath
36
- main = ' com.diffplug.gradle.spotless.SelfTestCheck'
37
- }
38
- check. dependsOn(spotlessCheck)
39
-
40
- task spotlessApply (type : JavaExec ) {
41
- classpath sourceSets. test. runtimeClasspath
42
- main = ' com.diffplug.gradle.spotless.SelfTestApply'
43
- }
44
31
test { testLogging. showStandardStreams = true }
45
32
46
- test { useJUnit { excludeCategories ' com.diffplug.spotless.category.NpmTest' } }
33
+ test {
34
+ useJUnit {
35
+ excludeCategories ' com.diffplug.spotless.category.NpmTest'
36
+ }
37
+ }
47
38
48
- task npmTest (type : Test ) { useJUnit { includeCategories ' com.diffplug.spotless.category.NpmTest' } }
39
+ task npmTest (type : Test ) {
40
+ useJUnit {
41
+ includeCategories ' com.diffplug.spotless.category.NpmTest'
42
+ }
43
+ }
49
44
50
45
// ////////////////////////
51
46
// GRADLE PLUGIN PORTAL //
Original file line number Diff line number Diff line change 1
- buildscript {
2
- repositories {
3
- jcenter()
4
- }
5
- }
6
-
7
- // applied by SelfTest
8
- plugins {
9
- id ' com.diffplug.gradle.spotless'
10
- id ' java'
11
- }
12
-
13
- repositories { jcenter() }
1
+ apply plugin : ' com.diffplug.gradle.spotless'
14
2
spotless {
15
3
def noInternalDepsClosure = {
16
4
String text = it
You can’t perform that action at this time.
0 commit comments