Search Gradle plugins

kotlin2ts.kt2ts

A Gradle Plugin which translates Kotlin data classes into Typescript. It uses Alicia Boya García's TypeScript definition generator for that.

https://github.com/alexvas/kotlin2typescript

Version 1.0.0 (latest)

Created 15 October 2018.

A Gradle Plugin which translates Kotlin data classes into Typescript. It uses Alicia Boya García's TypeScript definition generator for that.

Using the plugins DSL:

plugins {
  id "kotlin2ts.kt2ts" version "1.0.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "kotlin2ts:kotlin2typescript.git:1.0.0"
  }
}

apply plugin: "kotlin2ts.kt2ts"

Using the plugins DSL:

plugins {
  id("kotlin2ts.kt2ts") version "1.0.0"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("kotlin2ts:kotlin2typescript.git:1.0.0")
  }
}

apply(plugin = "kotlin2ts.kt2ts")

Learn how to apply plugins to subprojects