Skip to content
KitploitKITPLOIT
FerramentasBlog
Enviar
FerramentasBlog
Enviar

Ferramentas de Hacking, PenTest e Cibersegurança para o seu Arsenal de Segurança!

Kitploit é um diretório de ferramentas de hacking, cibersegurança e pentesting. Descubra as últimas atualizações de projetos para encontrar vulnerabilidades, analisar sistemas, automatizar testes e fortalecer sua segurança.

··Feeds·Contato·Privacidade·© 2026 Kitploit

Diretório de Ferramentas

Categorias

Ver todas as categorias
Loading categories
creadur-rat-gradle — Apache RAT (Release Audit Tool) Gradle Plugin | Kitploit
Ferramentas/GitHubGitHub/eskatos/creadur-rat-gradle
Static AnalysisCode AnalysisConfiguration AuditingDevSecOpsSupply Chain Security
GitHubeskatos/creadur-rat-gradle

creadur-rat-gradle

Apache RAT (Release Audit Tool) Gradle Plugin

Ver Repositório
1112há 1 anoAinda não revisado

Mais Populares

Ver todos →

Descubra as ferramentas mais usadas pela nossa comunidade.

Explore todas as ferramentas

Navegue pela nossa coleção de ferramentas

Ver todas as ferramentas →
Compartilhar

Plugin Gradle do Apache RAT (Ferramenta de Auditoria de Lançamentos)

CI Apache License 2

Este plugin permite executar a ferramenta de auditoria de lançamentos Apache RAT, focada em licenças.

Instalação

No seu arquivo build.gradle(.kts):

root@kitploit:~
plugins {
    id("org.nosphere.apache.rat") version "0.8.1"
}

Uso

O plugin registra uma tarefa chamada rat que você pode configurar no seu arquivo build.gradle(.kts):

Kotlin DSL
root@kitploit:~
tasks.rat {

    // Use the default RAT license header matchers, defaults to `true`
    addDefaultMatchers.set(false)

    // Add custom substring license header matchers
    substringMatcher("family", "category", "pattern-1", "pattern-2")

    // Declare approved license families, if used, any non-declared family won't be approved
    approvedLicense("MIT")

    // Input directory, defaults to '.'
    inputDir.set("some/path")

    // List of Gradle exclude directives, defaults to ['**/.gradle/**']
    excludes.add("**/build/**")

    // RatTask 0.5.0+ implements PatternFilterable
    exclude { it.file in configurations.someConf.files }

    // Rat excludes file, one directive per line
    excludeFile.set(layout.projectDirectory.file(".rat-excludes.txt"))

    // XML, TXT and HTML reports directory, defaults to 'build/reports/rat'
    reportDir.set(file("some/other/path"))

    // Custom XSL stylesheet for the HTML report
    stylesheet.set(file("custom/rat-html-stylesheet.xsl"))

    // Fail the build on rat errors, defaults to true
    failOnError.set(false)
}
Groovy DSL
root@kitploit:~
rat {

    // Input directory, defaults to '.'
    inputDir.set(file("some/path"))

    // List of Gradle exclude directives, defaults to ['**/.gradle/**']
    excludes.add("**/build/**")

    // Rat excludes file, one directive per line
    excludeFile.set(layout.projectDirectory.file(".rat-excludes.txt"))

    // XML, TXT and HTML reports directory, defaults to 'build/reports/rat'
    reportDir.set(file("some/other/path"))

    // Custom XSL stylesheet for the HTML report
    stylesheet.set(file("custom/rat-html-stylesheet.xsl"))

    // Fail the build on rat errors, defaults to true
    failOnError.set(false)

    // Prints the list of files with unapproved licences to the console, defaults to false
    verbose.set(true)
}

Você pode executar a tarefa rat invocando o Gradle:

root@kitploit:~
gradle rat

Se o projeto possui uma tarefa check, então a tarefa rat é automaticamente registrada como dependente dela.

Quando uma auditoria do RAT falha, uma URL clicável do relatório HTML será exibida:

root@kitploit:~
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':rat'.
> Apache Rat audit failure - 35 unapproved licenses
    See file:///path/to/build/reports/rat/index.html

Apache Rat HTML Report

Matriz de compatibilidade

  • (1) Cache de Configuração
  • (2) Cache de Build
Baixar ferramenta
PluginJava MínGradle MínGradle MáxCache de ConfiguraçãoCache de Build
0.8.11.86.08.x🟢🟢
0.8.01.86.08.x🟡🟢
0.7.11.86.07.x🟡🟢
0.7.01.86.07.x🟡🟢
0.6.01.64.76.x🟡🟢
0.5.31.64.76.x🔴🟢
0.5.21.64.76.x🔴🟢
0.5.11.64.75.x🔴🟢
0.5.01.64.75.x🔴🟢
0.4.01.64.75.x🔴🟢
0.3.11.62.144.x🔴🟢
0.3.01.62.144.x🔴🟢
0.2.01.62.144.x🔴🟢
0.1.01.62.144.x🔴🟢