Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
硅谷海盗
kotlin
提交
aa74f163
K
kotlin
项目概览
硅谷海盗
/
kotlin
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kotlin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
aa74f163
编写于
2月 03, 2018
作者:
I
Ilya Gorbunov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Minor: improve table formatting
上级
ad385f42
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
11 addition
and
0 deletion
+11
-0
libraries/tools/kotlin-gradle-plugin/Module.md
libraries/tools/kotlin-gradle-plugin/Module.md
+11
-0
未找到文件。
libraries/tools/kotlin-gradle-plugin/Module.md
浏览文件 @
aa74f163
...
...
@@ -5,11 +5,13 @@
### kotlin
How to apply:
```
apply plugin: 'kotlin'
```
Tasks:
| Name | Type | Description
|------------------------------|--------------------|---------------|
| compileKotlin | [KotlinJvmCompile] | A task is created for
`main`
source set |
...
...
@@ -17,6 +19,7 @@ Tasks:
| compile
*SourceSetName*
Kotlin | [KotlinJvmCompile] | A task is created for each additional source set |
Each [KotlinJvmCompile] task provides
`kotlinOptions`
([KotlinJvmOptions]) extension:
```
compileKotlin {
kotlinOptions {
...
...
@@ -31,16 +34,19 @@ compileKotlin {
A plugin that should be used for Android development.
How to apply:
```
apply plugin: 'kotlin-android'
```
Tasks:
| Name | Type | Description
|------------------------------|--------------------|---------------|
| compile
*VariantName*
Kotlin | [KotlinJvmCompile] | A task is created for each variant |
Note that tasks are created after evaluation, so all references to tasks should be done in
`afterEvaluate`
section:
```
afterEvaluate {
compileDebugKotlin {
...
...
@@ -52,6 +58,7 @@ afterEvaluate {
```
Android plugin also adds
`kotlinOptions`
extension to
`android`
section to set options for all kotlin tasks:
```
android {
kotlinOptions {
...
...
@@ -61,6 +68,7 @@ android {
```
Task's
`kotlinOptions`
"override" ones in
`android`
section:
```
android {
kotlinOptions {
...
...
@@ -82,11 +90,13 @@ afterEvaluate {
### kotlin2js
How to apply:
```
apply plugin: 'kotlin2js'
```
Tasks:
| Name | Type | Description
|--------------------------------|--------------------|---------------|
| compileKotlin2Js | [KotlinJsCompile] | A task is created for
`main`
source set |
...
...
@@ -94,6 +104,7 @@ Tasks:
| compile
*SourceSetName*
Kotlin2Js| [KotlinJsCompile] | A task is created for each additional source set |
Each [KotlinJsCompile] task provides
`kotlinOptions`
([KotlinJsOptions]) extension:
```
compileKotlin2Js {
kotlinOptions {
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录