Skip to content

Add documentation about what is the correct order of import packages #258

Open
@manueljordan

Description

@manueljordan

I want to try do some commits into Spring Security, I created a Test class and I got the following:

./gradlew :spring-security-config:build -x test

> Task :spring-security-config:checkstyleTest
   --- --- See the HTML image shown below --- ---

> Task :spring-security-config:checkstyleTest FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':spring-security-config:checkstyleTest'.
> Checkstyle rule violations were found. See the report at: file:///Users/manueljordan/blueroom/sts-workspace-spring-security/spring-security/config/build/reports/checkstyle/test.html
  Checkstyle files with violations: 1
  Checkstyle violations by severity: [error:5]


* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.6.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 2m 26s

The errors are the following:

77

From above practically all are quick to fix, but about

  • Wrong order for 'org.apache.commons.logging.Log' import.

In the current README.adoc content, there is no mention about the order of import packages, so:

  • what must be the correct order?. Where is that list?

I am sharing the following that I configured long time ago for Spring Integration

88

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions