Skip to content

Commit

Permalink
add license-checker
Browse files Browse the repository at this point in the history
  • Loading branch information
mshabarov committed Sep 26, 2024
1 parent 7f8172f commit c63a34e
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions articles/flow/configuration/licenses/daily-active-users.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,40 @@ It can be set in the following ways:

If Vaadin does not find the subscription key in any of the sources above, it fails fast the application’s startup with the corresponding message.

Vaadin License Checker is mandatory at runtime in production for Vaadin subscriptions using DAU.
It may be available in your project as a transitive dependency from Vaadin commercial products used by it, but we recommend to add the License Checker explicitly into production build profile:

Check warning on line 100 in articles/flow/configuration/licenses/daily-active-users.adoc

View workflow job for this annotation

GitHub Actions / lint

[vale] reported by reviewdog 🐶 [Vaadin.We] Try to avoid using first-person plural like 'we'. Raw Output: {"message": "[Vaadin.We] Try to avoid using first-person plural like 'we'.", "location": {"path": "articles/flow/configuration/licenses/daily-active-users.adoc", "range": {"start": {"line": 100, "column": 112}}}, "severity": "WARNING"}

[.example]
--
[source,xml]
----
<source-info group="Maven"></source-info>
<profile>
<!-- Production mode is activated using -Pproduction -->
<id>production</id>
<dependencies>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>license-checker</artifactId>
</dependency>
</dependencies>
<!-- ... -->
</profile>
----
[source,groovy]
----
<source-info group="Gradle"></source-info>
dependencies {
// other dependencies
def productionMode = project.findProperty('vaadin.productionMode')?.toBoolean()
if (productionMode) {
implementation 'com.vaadin:license-checker'
}
}
----
--

If you use subscription plan with DAU license model and want to build your application for production by not using the server license key (e.g. if you want to build from a local machine with internet access), you *must* set the subscription key, for example:

[source,terminal]
Expand Down

0 comments on commit c63a34e

Please sign in to comment.