question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

scala license header

See original GitHub issue

How can I apply the licenseHeader for scala? My configuration:

spotless {
        scala {
            scalafmt()
            licenseHeader = '// TMA IOT'
        }
    }

fails with: Could not set unknown property 'licenseHeader' for object of type com.diffplug.gradle.spotless.ScalaExtension.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
geoHeilcommented, Jun 26, 2018

No @nedtwigg was correct. Thx.

1reaction
jbduncancommented, Jun 26, 2018

Ah, @nedtwigg got there before me! I was going to say more or less what he said, other than I think that actually the license header method is licenseHeader('the license that I want', 'someRegex'), so the two arguments are swapped. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

sbt-header - Scaladex
This configuration will apply Apache License 2.0 headers to Scala and Java files. sbt-header provides two tasks: headerCreate and headerCheck , which are ......
Read more >
Scala static code analysis: Track lack of copyright and license ...
Each source file should start with a header stating file ownership and the license which must be used to distribute the application.
Read more >
de.heikoseeberger.sbtheader.HeaderPlugin Scala Example
This page shows Scala examples of de.heikoseeberger.sbtheader. ... Author: lagom File: CopyrightHeader.scala License: Apache License 2.0, 5 votes ...
Read more >
License - Typelevel
Let the Scala compiler work for you. We provide type classes, instances, conversions, testing, supplements to the standard library, and much more.
Read more >
[RSPEC-1451] Track lack of copyright and license headers - Jira
Each source file should start with a header stating file ownership and the ... [Scala] Enable Rule: S1451 Track lack of copyright and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found