Skip to content

A helpful tool for invoking the Kotlin Annotation Processor (kapt) from the command line.

Notifications You must be signed in to change notification settings

cwoodwar6/kapt-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kapt-cli

A tool for invoking the Kotlin Annotation Processor (kapt) from the command line. This project is a work in progress.

Requirements

Kotlin 1.1.3+

Directions:

  1. Modify the args file and provide values for all variables. (TODO: provide more description)
  2. Modify the module-template.xml file and add values. (TODO: provide an xml generator for fields set in args)
  3. Patch your kotlinc file to add java tools.jar to the compiler classpath. (TODO: provide this as an arg)
  4. Optional: If you've run step 4 previously, you may choose to run ./clean to start fresh.
  5. Invoke ./kapt. (TODO: complete all steps)

References

https://kotlinlang.org/docs/reference/kapt.html

https://stackoverflow.com/questions/45217399/how-to-use-kapt-from-command-line-with-kotlinc

facebook/buck#956

https://github.com/JetBrains/kotlin-web-site/blob/ee466cc3109fc932286e23d4f7b43da2eb6b4dff/pages/docs/reference/kapt.md#using-in-cli

About

A helpful tool for invoking the Kotlin Annotation Processor (kapt) from the command line.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages