書名: Kotlin for Enterprise Applications using Java EE作者名: Raghavendra Rao K本章字數: 25字更新時間: 2021-06-10 18:49:29
Using the all-open plugin in Maven
The all-open plugin for Maven can be used as follows:
<plugin>
<artifactId>kotlin-maven-plugin</artifactId>
<groupId>org.jetbrains.kotlin</groupId>
<version>${kotlin.version}</version>
<configuration>
<compilerPlugins>
<plugin>all-open</plugin>
</compilerPlugins>
<pluginOptions>
<option>all-open:all-open:annotation=javax.inject.Inject</option>
<option>all-open:annotation=all-open:annotation=javax.ejb.Stateless</option>
</pluginOptions>
</configuration>
<dependencies>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-allopen</artifactId>
<version>${kotlin.version}</version>
</dependency>
</dependencies>
</plugin>
推薦閱讀
- Three.js開發指南:基于WebGL和HTML5在網頁上渲染3D圖形和動畫(原書第3版)
- Symfony2 Essentials
- Teaching with Google Classroom
- ExtJS高級程序設計
- iOS開發實戰:從入門到上架App Store(第2版) (移動開發叢書)
- 區塊鏈底層設計Java實戰
- Linux C編程:一站式學習
- NGINX Cookbook
- Webpack實戰:入門、進階與調優
- 圖數據庫實戰
- Creating Data Stories with Tableau Public
- 軟件體系結構
- Microsoft Windows Identity Foundation Cookbook
- Python程序設計案例教程
- 寫給所有人的編程思維