janklab / slf4m-jankalog

Modified forks of FLOSS logging libraries to support SLF4M
Other
0 stars 0 forks source link

slf4j 1.5.8: unset file encoding warning #17

Closed apjanke closed 2 years ago

apjanke commented 2 years ago

In mvn compile:

[INFO]
[INFO] --------------< net.janklab.shmorg.slf4j:slf4j-migrator >---------------
[INFO] Building SLF4J Migrator 1.5.8-janklab.1                          [15/15]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ slf4j-migrator ---
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ slf4j-migrator ---
[INFO] Nothing to compile - all classes are up to date
[INFO] ------------------------------------------------------------------------
apjanke commented 2 years ago

Added this to the slf4j-parent pom.xml and the warning went away.

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  </properties>