简体   繁体   English

Intellij上的Gradle scala项目

[英]Gradle scala project on intellij

How do we create a new gradle project with scala ? 我们如何用scala创建一个新的gradle项目? For a maven scala project we had the help of archtypes. 对于maven scala项目,我们得到了archtypes的帮助。 What is the similar technique when I change my build script into gradle so that I can get a readymade project structure to go ahead and add my scala files into the project without adding src folders etc. 当我将构建脚本更改为gradle时,类似的技术是什么,以便我可以获得现成的项目结构,并将我的scala文件添加到项目中,而无需添加src文件夹等。

You can leverage the build init plugin for this: gradle init --type scala-library 您可以使用build init插件gradle init --type scala-library

This will create a project in the current directory, setup the Gradle wrapper and generate basic build files. 这将在当前目录中创建一个项目,设置Gradle包装器并生成基本构建文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM