Skip to content

Commit

Permalink
chore(deps): update kotlin to v1.3.20
Browse files Browse the repository at this point in the history
  • Loading branch information
lburgazzoli committed Jan 25, 2019
1 parent f56f04a commit e7427c7
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 22 deletions.
10 changes: 0 additions & 10 deletions contributing.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,6 @@ make dep

The `make dep` command runs `dep ensure -v` under the hood, so make sure that `dep` is properly installed.

For now, you have to set environment variable `KOTLIN_JDK_HOME` pointing to your JDK (not JRE) home directory.
Also ensure, that you are using a Java version 8.

For Mac you can just do a

[source, bash]
----
export KOTLIN_JDK_HOME=$(/usr/libexec/java_home -v 1.8)
----

To build the whole project you now need to run:

```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,13 @@ class KotlinRoutesLoader : RoutesLoader {
val compiler = JvmScriptCompiler()
val evaluator = BasicJvmScriptEvaluator()
val host = BasicJvmScriptingHost(compiler = compiler, evaluator = evaluator)
val javaHome = System.getenv("KOTLIN_JDK_HOME") ?: "/usr/lib/jvm/java"

LOGGER.info("JAVA_HOME is set to {}", javaHome)

URIResolver.resolve(context, source).use { `is` ->
val result = host.eval(
InputStreamReader(`is`).readText().toScriptSource(),
ScriptCompilationConfiguration {
baseClass(IntegrationConfiguration::class)
jvm {
//
// This is needed as workaround for:
// https://youtrack.jetbrains.com/issue/KT-27497
//
javaHome(File(javaHome))

//
// The Kotlin script compiler does not inherit
// the classpath by default
Expand Down
2 changes: 1 addition & 1 deletion runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<log4j2.version>2.11.1</log4j2.version>
<slf4j.version>1.7.25</slf4j.version>
<groovy.version>2.5.5</groovy.version>
<kotlin.version>1.3.11</kotlin.version>
<kotlin.version>1.3.20</kotlin.version>
<snakeyaml.version>1.23</snakeyaml.version>
<spock.version>1.2-groovy-2.5</spock.version>
<jackson.version>2.9.8</jackson.version>
Expand Down
3 changes: 1 addition & 2 deletions script/travis_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

set -e

# Find the JAVA_HOME and set the KOTLIN_JDK_HOME
# Print JAVA_HOME
echo "Java home: $JAVA_HOME"
export KOTLIN_JDK_HOME=$JAVA_HOME

# First build the whole project
make
Expand Down

0 comments on commit e7427c7

Please sign in to comment.