Ai
1 Star 0 Fork 0

minicoderx/osmdroid

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 2.98 KB
一键复制 编辑 原始数据 按行查看 历史
lijj 提交于 2023-07-23 11:54 +08:00 . 更新maven引用方法,確保正確運行
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
// mavenCentral()
// mavenLocal()
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/'
allowInsecureProtocol = true
}
maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'
allowInsecureProtocol = true
}
maven { url 'http://maven.aliyun.com/nexus/content/repositories/google'
allowInsecureProtocol = true
}
maven { url 'http://maven.aliyun.com/nexus/content/repositories/gradle-plugin'
allowInsecureProtocol = true
}
maven {
url 'https://maven.google.com/'
name 'Google'
allowInsecureProtocol = true
}
maven { url "https://oss.sonatype.org/content/repositories/snapshots"
allowInsecureProtocol = true
}
maven { url "https://repo.maven.apache.org/maven2"
allowInsecureProtocol = true
}
}
dependencies {
classpath "com.android.tools.build:gradle:${project.property('android-plugin.version')}"
}
}
// Set up the spotbugs plugin so we can apply it in a quality pass if needed
plugins {
id 'com.github.spotbugs' version '5.0.6' apply false
}
allprojects {
// NOTE: project.group and project.version must be defined before including
// maven-support.gradle since it uses these values...
project.group = ( project.hasProperty('pom.groupId')
? project.property('pom.groupId') : "" )
project.version =
( project.hasProperty('pom.version') ? project.property('pom.version') : "1.0" )
// forces all changing dependencies (i.e. SNAPSHOTs) to automagicially download
// (thanks, @BillBarnhill!)
configurations.all {
resolutionStrategy {
cacheChangingModulesFor 0, 'seconds'
}
}
repositories {
// mavenCentral()
// mavenLocal()
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/'
allowInsecureProtocol = true
}
maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'
allowInsecureProtocol = true
}
maven { url 'http://maven.aliyun.com/nexus/content/repositories/google'
allowInsecureProtocol = true
}
maven { url 'http://maven.aliyun.com/nexus/content/repositories/gradle-plugin'
allowInsecureProtocol = true
}
maven {
url 'https://maven.google.com/'
name 'Google'
allowInsecureProtocol = true
}
maven { url "https://oss.sonatype.org/content/repositories/snapshots"
allowInsecureProtocol = true
}
maven { url "https://repo.maven.apache.org/maven2"
allowInsecureProtocol = true
}
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/minicoderx/osmdroid.git
git@gitee.com:minicoderx/osmdroid.git
minicoderx
osmdroid
osmdroid
master

搜索帮助