# Description Updating the `jpackage` configuration in our build.gradle and CI to enable installation of the app on multiple OSs Closes #2418 ## Checklist - [x] I have read the [Contribution Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md) - [x] I have performed a self-review of my own code - [x] I have attached images of the change if it is UI based - [x] I have commented my code, particularly in hard-to-understand areas - [x] If my code has heavily changed functionality I have updated relevant docs on [Stirling-PDFs doc repo](https://github.com/Stirling-Tools/Stirling-Tools.github.io/blob/main/docs/) - [x] My changes generate no new warnings - [x] I have read the section [Add New Translation Tags](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/HowToAddNewLanguage.md#add-new-translation-tags) (for new translation tags only)
36 lines
1.1 KiB
Java
36 lines
1.1 KiB
Java
package stirling.software.SPDF.EE;
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
import org.springframework.context.annotation.Configuration;
|
|
import org.springframework.core.Ordered;
|
|
import org.springframework.core.annotation.Order;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import stirling.software.SPDF.model.ApplicationProperties;
|
|
|
|
@Configuration
|
|
@Order(Ordered.HIGHEST_PRECEDENCE)
|
|
@Slf4j
|
|
public class EEAppConfig {
|
|
|
|
private final ApplicationProperties applicationProperties;
|
|
|
|
private final LicenseKeyChecker licenseKeyChecker;
|
|
|
|
public EEAppConfig(
|
|
ApplicationProperties applicationProperties, LicenseKeyChecker licenseKeyChecker) {
|
|
this.applicationProperties = applicationProperties;
|
|
this.licenseKeyChecker = licenseKeyChecker;
|
|
}
|
|
|
|
@Bean(name = "runningEE")
|
|
public boolean runningEnterpriseEdition() {
|
|
return licenseKeyChecker.getEnterpriseEnabledResult();
|
|
}
|
|
|
|
@Bean(name = "SSOAutoLogin")
|
|
public boolean ssoAutoLogin() {
|
|
return applicationProperties.getEnterpriseEdition().isSsoAutoLogin();
|
|
}
|
|
}
|