gradle 定义了版本号 构建项目就是拉取不了, 请问怎么解决呢

    def springVersion = '5.2.9.RELEASE'
    dependencies {
        // 编译期
        providedCompile 'javax.servlet:javax.servlet-api:3.1.0'
        // 运行时
        providedRuntime('javax.servlet:jstl:1.2')
        compileOnly(group: 'org.springframework', name: 'spring-core', version: '$5.2.9.RELEASE')
        compileOnly(
                'org.springframework:spring-context:$5.2.9.RELEASE',
                'org.springframework:spring-beans:$5.2.9.RELEASE',
                'org.springframework:spring-context-support:$5.2.9.RELEASE',
                'org.springframework:spring-web:$5.2.9.RELEASE',
                'org.springframework:spring-webmvc:$5.2.9.RELEASE',
                'org.springframework:spring-aop:$5.2.9.RELEASE',
                'org.springframework:spring-tx:$5.2.9.RELEASE',
                'org.springframework:spring-jdbc:$5.2.9.RELEASE',
                'org.springframework:spring-test:$5.2.9.RELEASE',
                'org.springframework:spring-context:$5.2.9.RELEASE',
        )
    }
}

网络不行吗?
使用阿里镜像呢

可能是版本号有误导致的