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/'}
}
}
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构