File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -49,13 +49,16 @@ spotless {
49
49
}
50
50
}
51
51
52
+ def versionLast = spotlessChangelog. versionLast
53
+ def versionNext = spotlessChangelog. versionNext
54
+
52
55
// if this freshmark has a changelog file, then it has version-sensitive content
53
56
if (tasks. names. contains(' changelogCheck' )) {
54
57
// normally we use versionLast for our freshmark
55
58
spotless {
56
59
freshmark {
57
60
properties {
58
- it. put(' versionLast' , spotlessChangelog . versionLast)
61
+ it. put(' versionLast' , versionLast)
59
62
}
60
63
}
61
64
}
@@ -65,7 +68,7 @@ if (tasks.names.contains('changelogCheck')) {
65
68
freshmarkSetup. execute(freshmark)
66
69
freshmark. properties {
67
70
// that uses versionNext as versionLast
68
- it. put(' versionLast' , spotlessChangelog . versionNext)
71
+ it. put(' versionLast' , versionNext)
69
72
}
70
73
def changelogBumpFreshmark = freshmark. createIndependentApplyTask(' changelogBumpFreshmark' )
71
74
// freshmark should run after the changelog bump
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ spotless {
8
8
*/
9
9
String regex = " import org\\ .gradle\\ .api\\ .internal\\ .(?!plugins\\ .DslObject)(?!project\\ .ProjectInternal)"
10
10
if ((text. contains(' import org.gradle.internal.' ) || text. find(regex)) &&
11
- ! text. contains(' def noInternalDepsClosure' )) {
11
+ ! text. contains(' def noInternalDepsClosure' )) {
12
12
throw new AssertionError (" Accidental internal import" )
13
13
}
14
14
}
Original file line number Diff line number Diff line change 1
1
pluginManagement {
2
2
plugins {
3
- // We are stuck dogfooding at 5.5.0 for a very strange reason:
4
- // 5.8.0+ Cannot get property 'versionLast' on null object @ spotless-freshmark.gradle:58
5
- // 5.6.0+ Tried to add format named 'freshmark' of type class @ spotless-freshmark.gradle:55
6
- id ' com.diffplug.spotless' version ' 5.5.1'
3
+ id ' com.diffplug.spotless' version ' 5.17.1'
7
4
// https://github.com/diffplug/goomph/blob/main/CHANGES.md
8
5
id ' com.diffplug.eclipse.resourcefilters' version ' 3.33.2'
9
6
// https://plugins.gradle.org/plugin/com.gradle.plugin-publish
@@ -102,10 +99,10 @@ if (getStartProperty('com.diffplug.spotless.include.ext.nop2') == 'true') {
102
99
103
100
// the p2-based projects are too expensive for routine CI builds, so they have to be invoked explicitly
104
101
for (kind in [
105
- ' cdt' ,
106
- ' groovy' ,
107
- ' wtp'
108
- ]) {
102
+ ' cdt' ,
103
+ ' groovy' ,
104
+ ' wtp'
105
+ ]) {
109
106
if (getStartProperty(" com.diffplug.spotless.include.ext.${ kind} " ) == ' true' ) {
110
107
include " eclipse-${ kind} "
111
108
project(" :eclipse-${ kind} " ). projectDir = file(" _ext/eclipse-${ kind} " )
You can’t perform that action at this time.
0 commit comments