Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Latest commit

 

History

71 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gradle Lighthouse 🛡️

Architecture Intelligence for Android & Kotlin Multiplatform

Gradle Lighthouse analyzes your Gradle project, detects architectural risks, evaluates build health, and generates actionable recommendations to improve maintainability, scalability, and developer productivity.

Gradle Plugin Portal Version: 2.3.2 License: MIT Kotlin Gradle 8.x-9.x


💡 Why Gradle Lighthouse?

Most teams know they have technical debt. What they don't know is:

  • Which modules are slowing down incremental builds?
  • Where are architectural boundaries leaking?
  • Which technical debt deserves attention first?
  • How has our architecture evolved over the last 30 builds?

Gradle Lighthouse answers these questions with a single audit.

./gradlew lighthouseAudit lighthouseAggregate

✨ Key Features

📈 Architectural Health Score

A transparent health model that evaluates Security, Build Performance, Dependency Hygiene, Modernization, and more. Uses a Square Root Deduction Model to ensure fair scoring across massive projects.

🌌 Galaxy Graph

An interactive module dependency map with:

  • Cycle Detection: Glowing red edges highlight circular dependencies.
  • Refactoring Sandbox: Simulate refactors by "cutting" links to see instant score impacts.
  • Layer Visualization: Modules grouped by App, Feature, Domain, Data, and Core.

🤖 GenAI Remediation

Go beyond diagnosis. Lighthouse can surgically refactor your build scripts:

  • KAPT to KSP: Automatic migration of annotation processors.
  • Version Catalogs: Bootstrap your libs.versions.toml automatically.

🔮 Predictive Intelligence

Estimate the architectural footprint of an SDK before merging it. See binary size, method count, and startup impact based on community data.


📋 Compatibility

Feature Supported Versions
Gradle 8.0 - 9.x+
Java 17, 21+
Android (AGP) 7.4 - 8.x+
Kotlin 1.9.x, 2.x

🛡️ PR Bot & CI/CD

Automated PR comments showing score deltas, new cycles, and regressions. Full integration with GitHub Actions, SARIF, and JUnit.


🚀 Quick Start

1. Installation

Apply to your root project:

plugins {
    id("io.github.dev-vikas-soni.lighthouse") version "2.3.2"
}

2. Run Audit

./gradlew lighthouseAudit lighthouseAggregate

3. View Reports

  • Global Dashboard: build/reports/lighthouse/project-dashboard.html
  • Module Audit: module/build/reports/lighthouse/index.html

🏗️ Live Showcase

Want to see Gradle Lighthouse in action on a real project? Explore our Showcase Repository which contains complete audit reports, architectural health scores, and dependency visualizations for a complex Android project.

👉 Lighthouse Showcase Repository


📖 Documentation


🤝 Contributing

We welcome contributions! See the Contributing Guide and Developer Docs to get started.

📄 License

MIT License.


🛠️ Other Tools by the Author

If you find Gradle Lighthouse useful, you might also like:

About

Analyze Android module graphs, detect circular dependencies, audit Gradle builds, and uncover architecture bottlenecks before they impact build performance.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

60 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages