We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b883e8 commit 56d86d4Copy full SHA for 56d86d4
build.gradle
@@ -34,24 +34,3 @@ tasks.register('hello') {
34
println './gradlew spotlessCheck'
35
}
36
37
-
38
-tasks.register('fixJbangMarker') {
39
- doLast {
40
- def javaFiles = fileTree('src') {
41
- include '**/*.java'
42
- }
43
- javaFiles.each { file ->
44
- def str = '///usr/bin/env jbang "$0" "$@" ; exit $?'
45
- def lines = file.readLines()
46
- if (lines && !lines[0].equals(str) && lines[0].startsWith('//') && lines[0].toLowerCase().contains('jbang')) {
47
- lines[0] = str
48
- file.text = lines.join('\n')
49
- println "Fixed JBang marker in: ${file}"
50
51
52
53
-}
54
55
-// Run this after formatting
56
-spotlessApply.finalizedBy 'fixJbangMarker'
57
0 commit comments