build.gradle文件
group 'com.lyj'
version '1.0-SNAPSHOT'
apply plugin: 'java'
//应用插件 在idea中编写代码需要添加idea
apply plugin: 'idea'
//编译jdk的版本
sourceCompatibility = 1.8
repositories {
//本地maven依赖
mavenLocal()
mavenCentral()
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
compile group: 'org.springframework', name: 'spring-context', version: '4.3.3.RELEASE'
}