Skip to content

eclipse-ecsp/device-common

Device Common Library

Build License Compliance

The Device Common Library is a shared component designed to provide reusable utilities, configurations, and functionalities for device-related projects. It simplifies the development of device management systems by offering pre-built modules and integrations for common tasks such as logging, configuration management, and data processing.

Table of Contents

Key Features

  • Reusable Components: Provides common utilities and helper classes for device-related projects.
  • Spring Integration: Built with Spring Framework for seamless integration with Spring-based applications.
  • Logging Support: Includes SLF4J and Logback for consistent and configurable logging.
  • JSON Handling: Uses Jackson for efficient JSON serialization and deserialization.
  • Database Support: Includes PostgreSQL JDBC driver for database connectivity.
  • Testing Utilities: Integrated with JUnit and Mockito for unit testing.

Use Cases

The Device Common Library can be used in projects that require:

  1. Device Activation: Utilities for activating and reactivating devices such as Dongles, TCUs, and Dashcams.
  2. Data Processing: Common data processing utilities for device-related operations.
  3. Configuration Management: Centralized configuration for device management systems.
  4. Logging and Monitoring: Pre-configured logging for consistent application monitoring.

Getting Started

Prerequisites

The list of tools required to build and run the project:

  • Java 17
  • Maven

Installation

Install Java 17

How to set up Maven

Coding style check configuration

checkstyle.xml is the coding standard to follow while writing new/updating existing code.

Checkstyle plugin maven-checkstyle-plugin:3.2.1 is integrated in pom.xml which runs in the validate phase and check goal of the maven lifecycle and fails the build if there are any checkstyle errors in the project.

To run checkstyle plugin explicitly, run the following command: mvn checkstyle:check

Usage

To include the Device Common Library in your project, add the following dependency to your pom.xml:

<dependency>
    <groupId>org.eclipse.ecsp</groupId>
    <artifactId>device-common</artifactId>
    <version>1.0.0</version>
</dependency>

How to contribute

Please read CONTRIBUTING.md for details on our contribution guidelines, and the process for submitting pull requests to us.

Code of Conduct

Please read CODE_OF_CONDUCT.md for details on our code of conduct, and the process for submitting pull requests to us.

Contributors

The list of contributors who participated in this project.

Security Contact Information

Please read SECURITY.md to raise any security related issues.

Support

Contact the project developers via the project's "dev" list - ecsp-dev

Troubleshooting

Please read CONTRIBUTING.md for details on how to raise an issue and submit a pull request to us.

License

This project is licensed under the Apache-2.0 License - see the LICENSE file for details.

Announcements

All updates to this component are present in our releases page. For the versions available, see the tags on this repository.

About

ECSP Device common

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages