• Stars
    star
    135
  • Rank 269,297 (Top 6 %)
  • Language
    Scala
  • License
    MIT License
  • Created about 9 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Build kotlin code using sbt

kotlin-plugin

Build Status

Build kotlin code using sbt

Current version 2.0.0

Usage

  • for sbt 1.0.0+ addSbtPlugin("com.hanhuy.sbt" % "kotlin-plugin" % "2.0.0")
  • for sbt 0.13.x addSbtPlugin("com.hanhuy.sbt" % "kotlin-plugin" % "1.0.9")
  • Kotlin code will build automatically from src/XXX/kotlin
  • If necessary, add kotlinLib("stdlib"), it is not included by default.
    • Loading standard kotlin libraries and plugins: use kotlinLib(NAME) as above to load standard kotlin modules provided by JetBrains. For JetBrains kotlin compiler plugins, use kotlinPlugin(NAME) (e.g. kotlinPlugin("android-extensions")). The difference is that the latter marks the module as a compile-internal dependency and will be excluded from the final build product.
    • Any other libraries can be loaded using the normal libraryDependencies mechanism. Compiler plugins should be added as a normal libraryDependency but specified to be % "compile-internal"
  • If a non-standard Classpath key needs to be added to the kotlin compile step, it can be added using the kotlinClasspath(KEY) function
    • For example, to compile with the android platform using android-sdk-plugin: kotlinClasspath(Compile, bootClasspath in Android)

Options

  • kotlincPluginOptions: specifies options to pass to kotlin compiler plugins. Use val plugin = KotlinPluginOptions(PLUGINID) and plugin.option(KEY, VALUE) to populate this setting
  • kotlinSource: specifies kotlin source directory, defaults to src/main/kotlin and src/test/kotlin
  • kotlinVersion: specifies versions of kotlin compiler and libraries to use, defaults to 1.3.41
  • kotlinLib(LIB): load a standard kotlin library, for example kotlinLib("stdlib"); the library will utilize the version specified in kotlinVersion plugin
  • kotlincOptions: options to pass to the kotlin compiler

Examples

Limitations

  • currently requires kotlin 1.1.4+

More Repositories

1

keepasshttp

KeePass plugin to expose password entries securely (256bit AES/CBC) over HTTP
JavaScript
1,924
star
2

passifox

Extensions to allow Chrome and Firefox (4.0+) to auto form-fill passwords from KeePass (requires KeePassHttp)
JavaScript
901
star
3

keepshare

KeepShare, a super easy-to-use client to KeePass for Android
Scala
68
star
4

EnragedRabbitOnRRF

RepRapFirmware configuration and macros to drive the Enraged Rabbit Carrot Feeder
G-code
29
star
5

qicr

qicr irc client
Scala
24
star
6

sbt-unused

An SBT plugin to let you know when you mess up
Scala
22
star
7

iota

IO Type for Android + modern, functional UI language
Scala
21
star
8

advanced-keyguard-manager

https://play.google.com/store/apps/details?id=com.hanhuy.android.bluetooth.keyguard
Java
13
star
9

android-conversions

Automatic implicit conversions and extensions functions for the Android framework in Scala
Scala
11
star
10

qmk-keymap-chocofi

My Chocofi keymap
C
9
star
11

keepassj

Pure Java direct port of KeePassLib from C#.NET
Java
8
star
12

hdhr

HDHomeRun Java API and Viewer Application
Java
8
star
13

advanced-audio-manager

Audio Volume Management Application
Java
6
star
14

sbt-key-path

SBT plugin for discovering dependency paths from key A to B
Scala
5
star
15

sbt-simple-server

Simple SBT server plugin
Scala
5
star
16

android-futures

A port of Scala Futures to Android+Java
Java
5
star
17

qmk_userspace

My QMK userspace folder
C
4
star
18

android-common

Some common scala libs for android
Scala
4
star
19

esp-rrf-neopixels

ESP8266 (Wemos D1 Mini) NeoPixel controller for RepRapFirmware (BLV printers)
C++
3
star
20

recontrolr

Android Remote Control Application
Scala
3
star
21

window-hider

Hide any Windows application to the systray and restore it
Rust
3
star
22

thermal-camera

DIY Thermal Camera using an MLX90640
Python
3
star
23

ffbecalc

Unit Calculator for Final Fantasy Brave Exvius
Scala
3
star
24

qmk-keymap-kyria

QMK Keymap for splitkb/kyria
C
2
star
25

android-tvm

Simple android loan calculator
Scala
2
star
26

voron2-rrf-config

RRF Configuration for my Voron 2.4
G-code
2
star
27

vboxservice

VirtualBox windows service
C#
2
star
28

zmtray-java

Zimbra Java Toaster - Email Notifier
Java
2
star
29

EdgeCounter

Simple counter tool for devices with Samsung edge screen support
Kotlin
1
star
30

zmk-config-kyria

1
star
31

esp32cam-firmware

ESP32 Cam firmware that supports multiple clients
C++
1
star
32

talkmap

Google IO 2011 Last-Call Winner; http://talkmap.appspot.com/ -- Supports Chrome 9+, FF4+ and IE9+
Python
1
star
33

network-clipboard

Networked Clipboard for use according to http://www.hanhuy.com/pfn/integrating_screen_and_clipboard
C#
1
star
34

ezscreens

Easy screenshot appengine application
Python
1
star
35

esp32-thermal-camera

C++
1
star
36

voxitoki

Android walkie-talkie with local LAN auto-discovery
Scala
1
star
37

itunes-controller

Command line interface to iTunes (for keyboard bindings, etc.)
C#
1
star
38

blv-toolhead-pcb

BLV toolhead umbilical breakout board for the metal kit
1
star