Small adjustments (#2017)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
org.eclipse.hawkbit.artifact.repository.ArtifactFilesystemConfiguration
|
||||||
@@ -39,24 +39,7 @@
|
|||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
<optional>true</optional>
|
<optional>true</optional>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>org.eclipse.hawkbit</groupId>
|
|
||||||
<artifactId>hawkbit-ddi-resource</artifactId>
|
|
||||||
<version>${project.version}</version>
|
|
||||||
<optional>true</optional>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.eclipse.hawkbit</groupId>
|
|
||||||
<artifactId>hawkbit-mgmt-resource</artifactId>
|
|
||||||
<version>${project.version}</version>
|
|
||||||
<optional>true</optional>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.eclipse.hawkbit</groupId>
|
|
||||||
<artifactId>hawkbit-artifact-repository-filesystem</artifactId>
|
|
||||||
<version>${project.version}</version>
|
|
||||||
<optional>true</optional>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework</groupId>
|
<groupId>org.springframework</groupId>
|
||||||
<artifactId>spring-context-support</artifactId>
|
<artifactId>spring-context-support</artifactId>
|
||||||
@@ -66,15 +49,17 @@
|
|||||||
<artifactId>protostuff-core</artifactId>
|
<artifactId>protostuff-core</artifactId>
|
||||||
<optional>true</optional>
|
<optional>true</optional>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>io.protostuff</groupId>
|
|
||||||
<artifactId>protostuff-runtime</artifactId>
|
|
||||||
<optional>true</optional>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>jakarta.servlet</groupId>
|
<groupId>jakarta.servlet</groupId>
|
||||||
<artifactId>jakarta.servlet-api</artifactId>
|
<artifactId>jakarta.servlet-api</artifactId>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>io.protostuff</groupId>
|
||||||
|
<artifactId>protostuff-runtime</artifactId>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
* SPDX-License-Identifier: EPL-2.0
|
* SPDX-License-Identifier: EPL-2.0
|
||||||
*/
|
*/
|
||||||
package org.eclipse.hawkbit.autoconfigure;
|
package org.eclipse.hawkbit.autoconfigure.artifact;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.artifact.repository.urlhandler.ArtifactUrlHandler;
|
import org.eclipse.hawkbit.artifact.repository.urlhandler.ArtifactUrlHandler;
|
||||||
import org.eclipse.hawkbit.artifact.repository.urlhandler.ArtifactUrlHandlerProperties;
|
import org.eclipse.hawkbit.artifact.repository.urlhandler.ArtifactUrlHandlerProperties;
|
||||||
@@ -20,7 +20,7 @@ import org.springframework.context.annotation.Configuration;
|
|||||||
import org.springframework.context.annotation.PropertySource;
|
import org.springframework.context.annotation.PropertySource;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Auto-configuration for {@link ArtifactUrlHandler} based on a properties.
|
* Autoconfiguration for {@link ArtifactUrlHandler} based on a properties.
|
||||||
*/
|
*/
|
||||||
@Configuration
|
@Configuration
|
||||||
@EnableConfigurationProperties({ ArtifactUrlHandlerProperties.class })
|
@EnableConfigurationProperties({ ArtifactUrlHandlerProperties.class })
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
/**
|
|
||||||
* Copyright (c) 2015 Bosch Software Innovations GmbH and others
|
|
||||||
*
|
|
||||||
* This program and the accompanying materials are made
|
|
||||||
* available under the terms of the Eclipse Public License 2.0
|
|
||||||
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: EPL-2.0
|
|
||||||
*/
|
|
||||||
package org.eclipse.hawkbit.autoconfigure.repository;
|
|
||||||
|
|
||||||
import org.eclipse.hawkbit.artifact.repository.ArtifactFilesystemConfiguration;
|
|
||||||
import org.eclipse.hawkbit.artifact.repository.ArtifactFilesystemRepository;
|
|
||||||
import org.eclipse.hawkbit.artifact.repository.ArtifactRepository;
|
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
|
||||||
import org.springframework.context.annotation.Configuration;
|
|
||||||
import org.springframework.context.annotation.Import;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Auto configuration for the {@link ArtifactFilesystemRepository}.
|
|
||||||
*/
|
|
||||||
@Configuration
|
|
||||||
@ConditionalOnMissingBean(ArtifactRepository.class)
|
|
||||||
@ConditionalOnClass({ ArtifactFilesystemConfiguration.class })
|
|
||||||
@Import(ArtifactFilesystemConfiguration.class)
|
|
||||||
public class ArtifactFilesystemAutoConfiguration {
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -53,9 +53,7 @@ import org.springframework.util.CollectionUtils;
|
|||||||
* {@link EnableAutoConfiguration Auto-configuration} for security.
|
* {@link EnableAutoConfiguration Auto-configuration} for security.
|
||||||
*/
|
*/
|
||||||
@Configuration
|
@Configuration
|
||||||
@EnableConfigurationProperties({
|
@EnableConfigurationProperties({ SecurityProperties.class, HawkbitSecurityProperties.class, TenantAwareUserProperties.class })
|
||||||
SecurityProperties.class,
|
|
||||||
DdiSecurityProperties.class, HawkbitSecurityProperties.class, TenantAwareUserProperties.class })
|
|
||||||
public class SecurityAutoConfiguration {
|
public class SecurityAutoConfiguration {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
org.eclipse.hawkbit.autoconfigure.artifact.ArtifactUrlHandlerAutoConfiguration
|
||||||
org.eclipse.hawkbit.autoconfigure.cache.CacheAutoConfiguration
|
org.eclipse.hawkbit.autoconfigure.cache.CacheAutoConfiguration
|
||||||
org.eclipse.hawkbit.autoconfigure.repository.event.EventPublisherAutoConfiguration
|
org.eclipse.hawkbit.autoconfigure.repository.event.EventPublisherAutoConfiguration
|
||||||
org.eclipse.hawkbit.autoconfigure.repository.ArtifactFilesystemAutoConfiguration
|
org.eclipse.hawkbit.autoconfigure.repository.ArtifactFilesystemAutoConfiguration
|
||||||
@@ -6,4 +7,3 @@ org.eclipse.hawkbit.autoconfigure.scheduling.AsyncConfigurerAutoConfiguration
|
|||||||
org.eclipse.hawkbit.autoconfigure.scheduling.ExecutorAutoConfiguration
|
org.eclipse.hawkbit.autoconfigure.scheduling.ExecutorAutoConfiguration
|
||||||
org.eclipse.hawkbit.autoconfigure.security.SecurityAutoConfiguration
|
org.eclipse.hawkbit.autoconfigure.security.SecurityAutoConfiguration
|
||||||
org.eclipse.hawkbit.autoconfigure.security.InMemoryUserManagementAutoConfiguration
|
org.eclipse.hawkbit.autoconfigure.security.InMemoryUserManagementAutoConfiguration
|
||||||
org.eclipse.hawkbit.autoconfigure.ArtifactUrlHandlerAutoConfiguration
|
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
package org.eclipse.hawkbit.autoconfigure.ddi;
|
package org.eclipse.hawkbit.autoconfigure.ddi;
|
||||||
|
|
||||||
import org.eclipse.hawkbit.ddi.rest.resource.DdiApiConfiguration;
|
import org.eclipse.hawkbit.ddi.rest.resource.DdiApiConfiguration;
|
||||||
|
import org.eclipse.hawkbit.security.DdiSecurityProperties;
|
||||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.context.annotation.Import;
|
import org.springframework.context.annotation.Import;
|
||||||
@@ -19,7 +20,7 @@ import org.springframework.context.annotation.Import;
|
|||||||
*/
|
*/
|
||||||
@Configuration
|
@Configuration
|
||||||
@ConditionalOnClass(DdiApiConfiguration.class)
|
@ConditionalOnClass(DdiApiConfiguration.class)
|
||||||
@Import(DdiApiConfiguration.class)
|
@Import({ DdiApiConfiguration.class, DdiSecurityProperties.class} )
|
||||||
public class DdiApiAutoConfiguration {
|
public class DdiApiAutoConfiguration {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user