gradle编译错误

Could not resolve all files for configuration ':compileClasspath'. 

 

修改build.gradle

 

apply plugin: 'java'
apply plugin: 'maven'

group = 'priv.jesse'
version = '0.0.1-SNAPSHOT'

description = """mall"""

sourceCompatibility = 1.5
targetCompatibility = 1.5
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}

repositories {

//maven { url "http://repo.maven.apache.org/maven2" }
maven { url 'https://maven.aliyun.com/repository/google/' }
maven { url 'https://maven.aliyun.com/repository/jcenter/'}
}
dependencies {
compile group: 'net.sourceforge.nekohtml', name: 'nekohtml', version:'1.9.21'
compile(group: 'org.springframework.boot', name: 'spring-boot-starter', version:'1.5.8.RELEASE') {
exclude(module: 'spring-boot-starter-logging')
}
compile group: 'org.springframework.boot', name: 'spring-boot-starter-log4j2', version:'1.5.8.RELEASE'
compile group: 'mysql', name: 'mysql-connector-java', version:'5.1.39'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-data-jpa', version:'1.5.8.RELEASE'
compile group: 'com.alibaba', name: 'druid-spring-boot-starter', version:'1.1.3'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-aop', version:'1.5.8.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-web', version:'1.5.8.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-thymeleaf', version:'1.5.8.RELEASE'
compile group: 'org.jsoup', name: 'jsoup', version:'1.10.3'
compile group: 'com.google.guava', name: 'guava', version:'22.0'
compile(group: 'org.apache.httpcomponents', name: 'httpclient', version:'4.5.3') {
exclude(module: 'commons-logging')
}
compile group: 'com.alibaba', name: 'fastjson', version:'1.2.37'
compile group: 'commons-lang', name: 'commons-lang', version:'2.6'
runtime group: 'org.springframework.boot', name: 'spring-boot-devtools', version:'1.5.8.RELEASE'
testCompile(group: 'org.springframework.boot', name: 'spring-boot-starter-test', version:'1.5.8.RELEASE') {
exclude(module: 'commons-logging')
}
}

allprojects {
repositories {
maven { url 'https://maven.aliyun.com/repository/google/' }
maven { url 'https://maven.aliyun.com/repository/jcenter/'}
}
}
posted @   岩文01  阅读(540)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
点击右上角即可分享
微信分享提示