-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use non-ABI jars for kotlin compilation. (#41)
* Use non-ABI jars for kotlin compilation. Adds two new kotlin_compile attributes: 1. verbose: for printing debugging info 2. args: for passing arbitrary args to compilation Adds new test from @jmmk re: tornadofx * Exclude jars if basename starts with "kotlin-" Slightly less naive attempt at excluding kotlin stdlib jars. * Remove jar name exclusion * Update readme for 0.5.0 Drop support for bazel < 0.7.0 (now uses JavaInfo provider)
- Loading branch information
Showing
6 changed files
with
117 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,10 +10,6 @@ os: | |
env: | ||
#- V=HEAD | ||
- V=0.7.0 | ||
- V=0.6.1 | ||
- V=0.5.4 | ||
- V=0.5.0 | ||
- V=0.4.5 | ||
|
||
before_install: | ||
- OS=linux | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import tornadofx.App | ||
import tornadofx.View | ||
import tornadofx.launch | ||
import tornadofx.vbox | ||
|
||
class MyView: View() { | ||
override val root = vbox() | ||
} | ||
|
||
class MyApp: App(MyView::class) | ||
|
||
fun main(args: Array<String>) = launch<MyApp>(args) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
load("@org_pubref_rules_kotlin//kotlin:rules.bzl", "kotlin_binary") | ||
|
||
kotlin_binary( | ||
name = "main", | ||
main_class = "AppKt", | ||
srcs = ["App.kt"], | ||
verbose = 2, | ||
compile_args = [ | ||
"-jvm-target", "1.8", | ||
], | ||
java_deps = [ | ||
"@tornadofx//:compile", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
local_repository( | ||
name = 'org_pubref_rules_kotlin', | ||
path = '../..', | ||
) | ||
|
||
load('@org_pubref_rules_kotlin//kotlin:rules.bzl', 'kotlin_repositories') | ||
|
||
kotlin_repositories() | ||
|
||
git_repository( | ||
name = 'org_pubref_rules_maven', | ||
remote = 'https://github.com/pubref/rules_maven', | ||
commit = '9c3b07a6d9b195a1192aea3cd78afd1f66c80710', | ||
) | ||
|
||
load('@org_pubref_rules_maven//maven:rules.bzl', 'maven_repositories') | ||
maven_repositories() | ||
|
||
load('@org_pubref_rules_maven//maven:rules.bzl', 'maven_repository') | ||
|
||
maven_repository( | ||
name = 'tornadofx', | ||
deps = [ | ||
'no.tornado:tornadofx:1.7.12', | ||
], | ||
omit = [ | ||
'919f0dfe192fb4e063e7dacadee7f8bb9a2672a9:org.jetbrains:annotations:13.0', | ||
'222365b4b684bfe35a7676c5ff69b4b414e398fa:org.jetbrains.kotlin:kotlin-reflect:1.1.51', | ||
'e34fe80c9714240525f665113dd3749415515655:org.jetbrains.kotlin:kotlin-stdlib:1.1.51', | ||
'8b5933578dc55f32cfc1a25f1db6371e4161fb8f:org.jetbrains.kotlin:kotlin-stdlib-jre7:1.1.51', | ||
'cc8e639ff087472268912159cd66c01f2765c657:org.jetbrains.kotlin:kotlin-stdlib-jre8:1.1.51', | ||
], | ||
transitive_deps = [ | ||
'b55f582add177fe166c9b375c6074eca7cee8642:no.tornado:tornadofx:1.7.12', | ||
'3178f73569fd7a1e5ffc464e680f7a8cc784b85a:org.glassfish:javax.json:1.0.4', | ||
], | ||
) | ||
|
||
load('@tornadofx//:rules.bzl', 'tornadofx_compile') | ||
|
||
tornadofx_compile() | ||
|