Skip to content

Instantly share code, notes, and snippets.

View klebertiko's full-sized avatar

Kleber Almeida Toyota klebertiko

View GitHub Profile
@klebertiko
klebertiko / bug-console
Created November 29, 2016 21:16
Verificando bugs de segurança com Maven + FindSecBugs
[INFO] --- maven-jar-plugin:2.6:jar (default-jar) @ gs-serving-web-content ---
[INFO] Building jar: /home/kleber/Downloads/gs-serving-web-content-master/complete/target/gs-serving-web-content-0.1.0.jar
[INFO]
[INFO] --- spring-boot-maven-plugin:1.4.2.RELEASE:repackage (default) @ gs-serving-web-content ---
[INFO]
[INFO] >>> findbugs-maven-plugin:3.0.4:check (default) > :findbugs @ gs-serving-web-content >>>
[INFO]
[INFO] --- findbugs-maven-plugin:3.0.4:findbugs (findbugs) @ gs-serving-web-content ---
[INFO] Fork Value is true
[java] Warnings generated: 1
@klebertiko
klebertiko / nobugs-console
Last active November 29, 2016 21:09
Verificando bugs de segurança com Maven + FindSecBugs
[INFO] --- spring-boot-maven-plugin:1.4.2.RELEASE:repackage (default) @ gs-serving-web-content ---
[INFO]
[INFO] >>> findbugs-maven-plugin:3.0.4:check (default) > :findbugs @ gs-serving-web-content >>>
[INFO]
[INFO] --- findbugs-maven-plugin:3.0.4:findbugs (findbugs) @ gs-serving-web-content ---
[INFO] Fork Value is true
[INFO] Done FindBugs Analysis....
[INFO]
[INFO] <<< findbugs-maven-plugin:3.0.4:check (default) < :findbugs @ gs-serving-web-content <<<
[INFO]
@klebertiko
klebertiko / findbugs-security-exclude.xml
Created November 29, 2016 21:04
Verificando bugs de segurança com Maven + FindSecBugs
<FindBugsFilter>
</FindBugsFilter>
@klebertiko
klebertiko / findbugs-security-include.xml
Created November 29, 2016 21:02
Verificando bugs de segurança com Maven + FindSecBugs
<FindBugsFilter>
<Match>
<Bug category="SECURITY"/>
</Match>
</FindBugsFilter>
@klebertiko
klebertiko / pom.xml
Last active November 29, 2016 20:53
Verificando bugs de segurança com Maven + FindSecBugs
<build>
...
<plugins>
...
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>3.0.4</version>
<configuration>
<effort>Max</effort>
@klebertiko
klebertiko / application.properties
Created August 4, 2016 21:08
Microservice Rest Kotlin
server.port=1010
@klebertiko
klebertiko / JerseyAPI.kt
Created August 4, 2016 20:55
Microservice Rest Koltin
package org.kotlin.api
import org.springframework.stereotype.Component
import javax.ws.rs.GET
import javax.ws.rs.Path
import javax.ws.rs.Produces
import javax.ws.rs.QueryParam
import javax.ws.rs.core.MediaType
/**
@klebertiko
klebertiko / JerseyConfig.kt
Created August 4, 2016 20:53
Microservice Rest Kotlin
package org.kotlin.config
import org.glassfish.jersey.server.ResourceConfig
import org.springframework.context.annotation.Configuration
/**
* Created by Kleber on 04/08/2016.
*/
@Configuration
open class JerseyConfig : ResourceConfig() {
@klebertiko
klebertiko / App.kt
Created August 4, 2016 20:51
Microservice Rest Kotlin
package org.kotlin
import com.fasterxml.jackson.module.kotlin.KotlinModule
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.context.annotation.Bean
import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder
import org.springframework.web.client.RestTemplate
/**
@klebertiko
klebertiko / build.gradle
Created August 4, 2016 20:49
Microservice Rest Kotlin
buildscript {
// Neste bloco declare variaveis das versoes das principais dependencias e plugins
ext {
kotlinVersion = '1.0.3'
springBootVersion = '1.4.0.RELEASE'
jacksonModuleKotlinVersion = '2.7.5'
}
// Neste bloco declare onde encontrar dependencias para os plugins
repositories {
//mavenLocal()