From fe3c7ffcbec7ba6c1f3de2c1989f533d398771c6 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Mon, 19 Sep 2016 10:38:35 -0700 Subject: [PATCH] Documents compiler arguments. --- plug-ins/index.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/plug-ins/index.html b/plug-ins/index.html index 4676c59..d6f1cf1 100644 --- a/plug-ins/index.html +++ b/plug-ins/index.html @@ -65,6 +65,20 @@ val p = project(wrapper) { The project{} directive creates an object of type Project.

+

Arguments

+

+ You can specify arguments to be passed to the Java and Kotlin compilers as follows: +

+
+val p = project {
+    javaCompiler {
+        args("-source", "1.7", "-target", "1.7")
+    }
+    kotlinCompiler {
+        args("-no-stdlib")
+    }
+}
+

Project