1、下载安装配置GRADLE环境
2、编辑gradle.build文件
apply plugin: 'scala' apply plugin: 'idea' group 'com.m24.learn' version '1.0-SNAPSHOT' sourceCompatibility = 1.8 repositories { mavenLocal() maven { url "http://maven.aliyun.com/nexus/content/groups/public/" } mavenCentral() } dependencies { compile group: 'org.scala-lang', name: 'scala-library', version: '2.12.6' }
3、在gradle.build文件所在目录下执行 gradle idea,创建gradle项目
4、将该项目引入idea中