配置阿里云gradle
Posted mingzhanghui
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了配置阿里云gradle相关的知识,希望对你有一定的参考价值。
build.gradle
buildscript { ext { springBootVersion = ‘1.5.15.BUILD-SNAPSHOT‘ } repositories { // mavenCentral() maven {url "http://maven.aliyun.com/nexus/content/groups/public/" } maven { url "https://repo.spring.io/snapshot" } maven { url "https://repo.spring.io/milestone" } } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") } } apply plugin: ‘java‘ apply plugin: ‘eclipse‘ apply plugin: ‘org.springframework.boot‘ group = ‘com.waylau.spring.boot.blog‘ version = ‘0.0.1-SNAPSHOT‘ sourceCompatibility = 1.8 repositories { // mavenCentral() maven {url "http://maven.aliyun.com/nexus/content/groups/public/" } maven { url "https://repo.spring.io/snapshot" } maven { url "https://repo.spring.io/milestone" } } dependencies { compile(‘org.springframework.boot:spring-boot-starter-web‘) testCompile(‘org.springframework.boot:spring-boot-starter-test‘) }
以上是关于配置阿里云gradle的主要内容,如果未能解决你的问题,请参考以下文章