Skip to content

Commit

Permalink
gradle-plugin: Add some info in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ilmat192 committed Oct 23, 2017
1 parent cd351fd commit fc92e9a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions GRADLE_PLUGIN.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,14 @@ The Kotlin/Native Gradle plugin allows one to build artifacts of the following t
* Interoperability library - a special type of library providing an interoperability with some native API. See [`INTEROP.md`](INTEROP.md) for details
* LLVM bitcode

All Kotlin/Native artifacts should be declared in the `konanArtifacts` block:
All Kotlin/Native artifacts should be declared in the `konanArtifacts` block. Note that the `konanInterop` script block was removed in
v0.3.4. Use the `interop` method of the `konanArtifact` block instead:

konanArtifacts {
program('foo') // executable 'foo'
library('bar') // library 'bar'
bitcode('baz') // bitcode file 'baz'
interop('qux') // interoperability library 'qux'
interop('qux') // interoperability library 'qux'. Use it instead of konanInterop block.
}

All artifacts except interop libraries are built by the Kotlin/Native compiler. Such an artifact may be configured using its script block.
Expand Down Expand Up @@ -168,6 +169,7 @@ and set dependencies between building tasks.
artifact kotlinArtifacts.bar

// Interopability libraries are also allowed
// Use it instead of the `useInterop` method available in versions before 0.3.4
artifact 'stdio'
}
```
Expand Down

0 comments on commit fc92e9a

Please sign in to comment.