Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.

Commit

Permalink
Improve compatibility mode error
Browse files Browse the repository at this point in the history
  • Loading branch information
johndevs committed Nov 10, 2019
1 parent b3557ef commit e16dfae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,11 @@ class VaadinFlowPluginExtension {
compatibilityMode.getOrElse(Boolean.parseBoolean(System.getProperty(COMPATIBILITY_MODE_PROPERTY,
Boolean.FALSE.toString())))
} else {
LOGGER.info('License check failed, running in compatibility mode.')
true
LOGGER.severe('Vaadin 14 support is only available for PRO subscribers. ' +
'Please provide your PRO credentials or set vaadin.compatibilityMode=true ' +
'to run in compatibility mode for free.')
throw new GradleException('Vaadin 14 NPM support is only available for PRO subscribers. Set vaadin' +
'.compatibilityMode=true to use the plugin for free.')
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package com.devsoap.vaadinflow.util

import com.devsoap.vaadinflow.VaadinFlowPlugin
import com.devsoap.vaadinflow.extensions.VaadinClientDependenciesExtension
import com.devsoap.vaadinflow.extensions.VaadinFlowPluginExtension
import com.moowork.gradle.node.NodeExtension
import com.moowork.gradle.node.variant.Variant
import org.gradle.api.Project
Expand Down Expand Up @@ -58,6 +59,10 @@ class VaadinYarnRunnerTest extends Specification {
variant.windows = false
}

project.extensions.getByType(VaadinFlowPluginExtension).with {
compatibilityMode = true
}

runner = new TestRunner(project, workingDir, Mock(ExecResult))
}

Expand Down

0 comments on commit e16dfae

Please sign in to comment.