Skip to content

rickbusarow/ModuleCheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d53b682 · Apr 28, 2025
Apr 28, 2025
Feb 4, 2025
Apr 11, 2025
Aug 2, 2023
May 20, 2023
Apr 28, 2025
Jan 16, 2024
Feb 4, 2025
Jan 25, 2024
Jul 9, 2023
Feb 4, 2025
Feb 4, 2025
Jan 25, 2024
Feb 4, 2025
Feb 4, 2025
Feb 4, 2025
Feb 4, 2025
Feb 4, 2025
Feb 4, 2025
Feb 4, 2025
Feb 4, 2025
Apr 11, 2025
Jan 16, 2024
Feb 4, 2025
Nov 8, 2021
Apr 10, 2025
Jan 31, 2024
May 9, 2021
Jan 23, 2025
Apr 22, 2023
Jan 16, 2024
Apr 16, 2025
May 21, 2023
Feb 25, 2023
Feb 25, 2023
Jul 9, 2023
Jan 16, 2024
May 20, 2023
Apr 25, 2025

Repository files navigation

Maven Central Gradle Plugin Portal Sonatype Nexus (Snapshots) License

This is a work in progress, in a very early state, and there are bugs.


ModuleCheck identifies unused internal (sub-project) dependencies within a Gradle project.

It does this without performing a build, which makes the parsing extremely fast.

All inspection is done using Gradle build files, Java/Kotlin source, and res xml files for Kotlin.

Documentation is at https://rickbusarow.github.io/ModuleCheck.

For snapshots, use the "next" version for documentation: https://rickbusarow.github.io/ModuleCheck/docs/next/

Diagram of flattening module structure

Config

// settings.gradle.kts

pluginManagement {
  repositories {
    gradlePluginPortal()
    // Add for SNAPSHOT builds
    maven("https://oss.sonatype.org/content/repositories/snapshots/")
  }
}
// top-level build.gradle.kts

plugins {
  id("com.rickbusarow.module-check") version "0.12.5"
}

Tasks

all checks

./gradlew moduleCheck

all checks with auto-correct

./gradlew moduleCheckAuto

License

Copyright (C) 2021-2023 Rick Busarow
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
     https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.