Skip to content

Commit 4becbed

Browse files
committed
Fixes according to review by @jbduncan (as far as possible, using the greclipse formatter)
1 parent b9c1358 commit 4becbed

File tree

7 files changed

+22
-15
lines changed

7 files changed

+22
-15
lines changed

gradle/java-publish.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ if (!ext.isSnapshot) {
127127
bintray {
128128
user = cred('bintray_user')
129129
key = cred('bintray_pass')
130-
publications = ['pluginMaven']
130+
publications = [
131+
'pluginMaven'
132+
]
131133
publish = true
132134
pkg {
133135
repo = 'opensource'

gradle/java-setup.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ apply plugin: 'findbugs'
3535
findbugs {
3636
toolVersion = VER_FINDBUGS
3737
sourceSets = [
38-
sourceSets.main] // don't check the test code
38+
// don't check the test code
39+
sourceSets.main
40+
]
3941
ignoreFailures = false // bug free or it doesn't ship!
4042
reportsDir = file('build/findbugs')
4143
effort = 'max' // min|default|max

lib-extra/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ dependencies {
2222
}
2323

2424
// we'll hold the core lib to a high standard
25-
findbugs { reportLevel = 'low' // low|medium|high (low = sensitive to even minor mistakes)
26-
}
25+
findbugs { reportLevel = 'low' } // low|medium|high (low = sensitive to even minor mistakes)
26+

lib/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ dependencies {
1212
}
1313

1414
// we'll hold the core lib to a high standard
15-
findbugs { reportLevel = 'low' // low|medium|high (low = sensitive to even minor mistakes)
16-
}
15+
findbugs { reportLevel = 'low' } // low|medium|high (low = sensitive to even minor mistakes)

spotless.groovyformat.prefs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
groovy.formatter.remove.unnecessary.semicolons=true
1+
groovy.formatter.remove.unnecessary.semicolons=true
2+
groovy.formatter.longListLength=1

spotlessSelf.gradle

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,19 @@ plugins {
66

77
repositories { jcenter() }
88
spotless {
9+
def noInternalDepsClosure = {
10+
if (it.contains('import org.gradle.internal.') &&
11+
!it.contains('def noInternalDepsClosure')) {
12+
throw new AssertionError("Accidental internal import")
13+
}
14+
}
915
java {
1016
target fileTree('.') {
1117
include '**/*.java'
1218
exclude '_ext/*/build/**'
1319
}
14-
custom 'noInternalDeps', {
15-
if (it.contains('import org.gradle.internal.')) {
16-
throw new AssertionError("Accidental internal import")
17-
}
18-
}
20+
custom 'noInternalDeps', noInternalDepsClosure
1921
bumpThisNumberIfACustomStepChanges(1)
20-
2122
licenseHeaderFile 'spotless.license'
2223
importOrderFile 'spotless.importorder'
2324
eclipseFormatFile 'spotless.eclipseformat.xml'
@@ -28,7 +29,9 @@ spotless {
2829
include '**/*.gradle'
2930
exclude '_ext/**'
3031
}
32+
custom 'noInternalDeps', noInternalDepsClosure
3133
custom 'preventFormatPingPong', { return it.replaceAll('}[ \t\f]+}', '}}') }
34+
bumpThisNumberIfACustomStepChanges(1)
3235
greclipseFormat().configFile('spotless.eclipseformat.xml', 'spotless.groovyformat.prefs')
3336
}
3437
freshmark {

testlib/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ dependencies {
1313
}
1414

1515
// we'll hold the testlib to a low standard (prize brevity)
16-
findbugs { reportLevel = 'high' // low|medium|high (low = sensitive to even minor mistakes)
17-
}
16+
findbugs { reportLevel = 'high' } // low|medium|high (low = sensitive to even minor mistakes)
17+

0 commit comments

Comments
 (0)