码迷,mamicode.com
首页 > 其他好文 > 详细

配置阿里云gradle

时间:2018-06-17 21:23:01      阅读:163      评论:0      收藏:0      [点我收藏+]

标签:frame   enc   spring   aliyun   ati   maven   version   snapshot   test   

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

标签:frame   enc   spring   aliyun   ati   maven   version   snapshot   test   

原文地址:https://www.cnblogs.com/mingzhanghui/p/9193652.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!