build.gradle_示范
UP 返回
buildscript {
ext {
springBootVersion = '2.1.2.RELEASE'
}
repositories {
//mavenCentral()修改仓库
maven {
url 'http://maven.aliyun.com/nexus/content/groups/public/'
}
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
//在eclipse外编译一定要加下面一项
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
group = 'com.spring.boot.blog'
//版本号,自定义
version = '1.0.0'
sourceCompatibility = '1.8'
repositories {
//mavenCentral()修改仓库
maven {
url 'http://maven.aliyun.com/nexus/content/groups/public/'
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
DOWN 返回