Skip to content
KitploitKITPLOIT
ИнструментыБлог
Отправить
ИнструментыБлог
Отправить

Инструменты для хакинга, пентеста и кибербезопасности — ваш арсенал защиты!

Kitploit — это каталог инструментов для хакинга, кибербезопасности и пентестинга. Находите последние обновления проектов для поиска уязвимостей, анализа систем, автоматизации тестирования и усиления вашей безопасности.

··Ленты·Контакты·Конфиденциальность·© 2026 Kitploit

Каталог инструментов

Категории

Все категории
Loading categories
creadur-rat-gradle — Плагин Gradle Apache RAT (Инструмент аудита релизов) | Kitploit
Инструменты/GitHubGitHub/eskatos/creadur-rat-gradle
Статический анализАнализ КодаАудит конфигурацииDevSecOpsБезопасность Цепочки Поставок
GitHubeskatos/creadur-rat-gradle

creadur-rat-gradle

Плагин Gradle Apache RAT (Инструмент аудита релизов)

Репозиторий
111231 день назадЕщё не проверено

Популярное

Смотреть все →

Откройте для себя самые используемые инструменты нашего сообщества.

Изучить все инструменты

Просмотрите нашу коллекцию инструментов

Смотреть все инструменты →
Поделиться

Плагин Apache RAT (Release Audit Tool) для Gradle

CI Apache License 2

Этот плагин позволяет запускать инструмент аудита релизов Apache RAT, ориентированный на лицензии.

Установка

В вашем файле build.gradle(.kts):

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

Использование

Плагин регистрирует задачу с именем rat, которую вы можете настроить в вашем файле 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)
}

Вы можете запустить задачу rat, вызвав Gradle:

root@kitploit:~
gradle rat

Если в проекте есть задача check, то задача rat автоматически регистрируется как зависимая от неё.

Когда аудит Rat завершается с ошибкой, в выводе появится кликабельный URL-адрес HTML-отчёта:

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

Матрица совместимости

ПлагинМин. JavaМин. GradleМакс. GradleКэш конфигурацииКэш сборки
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🔴
  • (1) Кэш конфигурации
  • (2) Кэш сборки
Скачать инструмент
🟢
0.3.01.62.144.x🔴🟢
0.2.01.62.144.x🔴🟢
0.1.01.62.144.x🔴🟢