Search Gradle plugins

io.github.probelalkhan.netro

Netro is a Gradle plugin that automates the generation of Retrofit API interfaces and Kotlin data models from JSON configuration files. It streamlines API integration by handling multiple HTTP methods (GET, POST, PUT, DELETE) and enforces a structured package organization for maintainability. Built with KotlinPoet and Kotlin Serialization, Netro simplifies API development, reducing boilerplate and improving code consistency.

https://github.com/probelalkhan/netro

Sources: https://github.com/probelalkhan/netro

Version 0.2 (latest)

Created 15 March 2025.

Netro is a Gradle plugin that automates the generation of Retrofit API interfaces and Kotlin data models from JSON configuration files. It streamlines API integration by handling multiple HTTP methods (GET, POST, PUT, DELETE) and enforces a structured package organization for maintainability. Built with KotlinPoet and Kotlin Serialization, Netro simplifies API development, reducing boilerplate and improving code consistency.

Add this plugin to your build using the plugins DSL:

plugins {
  id("io.github.probelalkhan.netro") version "0.2"
}

See also:

  • Adding the plugin to build logic for usage in precompiled script plugins.

    See the relevant documentation for more information.

    Add this plugin as a dependency to <convention-plugins-build>/build.gradle(.kts):

    dependencies {
      implementation("io.github.probelalkhan.netro:io.github.probelalkhan.netro.gradle.plugin:0.2")
    }
    It can then be applied in the precompiled script plugin:
    plugins {
      id("io.github.probelalkhan.netro")
    }
  • The legacy method of plugin application. See the relevant documentation for more information.
    buildscript {
      repositories {
        gradlePluginPortal()
      }
      dependencies {
        classpath("io.github.probelalkhan.netro:io.github.probelalkhan.netro.gradle.plugin:0.2")
      }
    }
    
    apply(plugin = "io.github.probelalkhan.netro")
  • Applying plugins to all subprojects .