Search Gradle plugins

se.jensim.kt2ts

Generate TypeScript Definitions from your existing code. In case you have your backend written in kotlin or java and you dont want to write your Angular type definitions yourself.

https://github.com/jensim/kt2ts-gradle-plugin

Sources: https://github.com/jensim/kt2ts-gradle-plugin

Version 0.7.1

0.7.1

Created 16 May 2019.

<h3>Generate TypeScript Definitions from your existing code.</h3> In case you have your backend written in kotlin or java and you dont want to write your Angular type definitions yourself. <a href="https://github.com/jensim/kt2ts-gradle-plugin/blob/0.7.1/README.md>README for this release.</a> <a href="https://github.com/jensim/kt2ts-gradle-plugin/blob/master/README.md">README for master branch.</a> <code> plugins { id("se.jensim.kt2ts") version "0.7.1" } kt2ts { annotation = "com.example.ToTypescript" classesDirs = files( tasks.findByName("compileKotlin")?.outputs, tasks.findByName("compileJava")?.outputs) outputFile = file("$buildDir/ts/kt2ts.d.ts") } </code>

Using the plugins DSL:

plugins {
  id("se.jensim.kt2ts") version "0.7.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url = uri("https://plugins.gradle.org/m2/")
    }
  }
  dependencies {
    classpath("se.jensim.kt2ts:kt2ts-plugin:0.7.1")
  }
}

apply(plugin = "se.jensim.kt2ts")

Using the plugins DSL:

plugins {
  id "se.jensim.kt2ts" version "0.7.1"
}

Using legacy plugin application:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "se.jensim.kt2ts:kt2ts-plugin:0.7.1"
  }
}

apply plugin: "se.jensim.kt2ts"

Learn how to apply plugins to subprojects