Giter Club home page Giter Club logo

Comments (6)

Molyna avatar Molyna commented on June 22, 2024 1

@zonder129 you should be able to exclude the usage of log4j binding.

I don't have anything to test this with myself right now but something like this for gradle should potentially do it.
configurations { runtime.exclude group: "org.slf4j", module: "slf4j-log4j12" }

or

dependencies { compile group: 'com.google.actions', name: 'actions-on-google', version: '1.0.2' { exclude group: "org.slf4j", name: "slf4j-log4j12" } }

Or for Maven something like (I don't use Maven myself so this might need some work)

<exclusions> <exclusion> <groupId>org.slf4j</groupId> <artifactId>slf4j-log4j12</artifactId> </exclusion> </exclusions>

from actions-on-google-java.

dzuluaga avatar dzuluaga commented on June 22, 2024 1

Thanks @Molyna for the suggestion. For Maven, this exclusion worked for me:

<dependency>
    <groupId>com.google.actions</groupId>
    <artifactId>actions-on-google</artifactId>
    <version>1.0.2</version>
    <exclusions>
        <exclusion>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-log4j12</artifactId>
        </exclusion>
    </exclusions>
</dependency>

Also, unrelated but if you're in the path of testing on Google App Engine Standard along with Spring Boot framework, you'll need to follow steps from Spring Boot App Engine Standard. Here are some steps, but not limited to. So, make sure you follow steps from the link above.

1) Use Servlet 3.1.0: Do not include the Jetty dependencies. But you must include Servlet API dependency:

<dependency>
    <groupId>javax.servlet</groupId>
    <artifactId>javax.servlet-api</artifactId>
    <version>3.1.0</version>
    <scope>provided</scope>
</dependency>

2) Remove Tomcat Starter After excluding Tomcat, the command ./mvnw spring-boot:run won't work anymore. You can still run Google App Engine locally by using the command ./mvnw appengine:run.

<dependency>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-starter-web</artifactId>
  <exclusions>
    <exclusion>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-tomcat</artifactId>
    </exclusion>
  </exclusions>
</dependency>

3) Exclude JUL to SLF4J Bridge

<!-- Exclude any jul-to-slf4j -->
<dependency>
    <groupId>org.slf4j</groupId>
    <artifactId>jul-to-slf4j</artifactId>
    <scope>provided</scope>
</dependency>

from actions-on-google-java.

taycaldwell avatar taycaldwell commented on June 22, 2024

Thank you for the report, we are currently looking into this.

from actions-on-google-java.

zonder129 avatar zonder129 commented on June 22, 2024

I am having the same problem, please fix it as soon as possible! It's overriding my own logging properties and makes me really sad :(

from actions-on-google-java.

zonder129 avatar zonder129 commented on June 22, 2024

@Molyna thank you, that is really great workaround, I totally forgot about exclude stuff. Thanks again!

from actions-on-google-java.

taycaldwell avatar taycaldwell commented on June 22, 2024

The log4j dependency has been removed as of https://github.com/actions-on-google/actions-on-google-java/releases/tag/v1.1.0

from actions-on-google-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.