代码拉取完成,页面将自动刷新
/*
* Copyright (C) 2014 Mike
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
//task wrapper(type: Wrapper) {
// gradleVersion = '2.2.3'
//}
buildscript {
// apply from: "https://github.com/rosjava/android_core/raw/kinetic/buildscript.gradle"
// 使用绝对路径
// apply from: "https://raw.githubusercontent.com/rosjava/android_core/kinetic/buildscript.gradle"
apply from: "E:\\Users\\tsome\\Programs\\repository\\rosjava\\android_core\\kinetic\\buildscript.gradle"
// 添加国内镜像源
repositories {
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
mavenLocal()
mavenCentral()
google()
// jcenter()
maven { url "https://jitpack.io" }
jcenter(){url "http://jcenter.bintray.com/"}
}
dependencies {
//Add this to fix the gradle plugin issues
// classpath 'com.android.tools.build:gradle:1.5.0'
// 因为android studio版本太新,gradle强制更新为最低要求,所以插件最好也更新
classpath 'com.android.tools.build:gradle:4.2.2'
// TEST
classpath 'junit:junit:4.12'
classpath 'org.mockito:mockito-core:1.10.19'
}
}
apply plugin: 'catkin'
allprojects {
/* A github url provides a good standard unique name for your project */
group 'com.github.sccapstone.robotca'
//version = project.catkin.pkg.version
repositories {
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/gradle-plugin' }
mavenLocal()
mavenCentral()
google()
//jcenter()
maven { url "https://jitpack.io" }
jcenter(){url "http://jcenter.bintray.com/"}
}
}
subprojects {
/*
* The android plugin configures a few things:
*
* - local deployment repository : where it dumps the jars and packaged artifacts)
* - local maven repositories : where it finds your locally installed/built artifacts)
* - external maven repositories : where it goes looking if it can't find dependencies locally
* - android build tools version : which version we use across the board
*
* To modify, or add repos to the default external maven repositories list, pull request against this code:
*
* https://github.com/rosjava/rosjava_bootstrap/blob/indigo/gradle_plugins/src/main/groovy/org/ros/gradle_plugins/RosPlugin.groovy#L31
*
* To modify the build tools version, pull request against this code:
*
* https://github.com/rosjava/rosjava_bootstrap/blob/indigo/gradle_plugins/src/main/groovy/org/ros/gradle_plugins/RosAndroid.groovy#L14
*/
apply plugin: 'ros-android'
afterEvaluate { project ->
android {
// Exclude a few files that are duplicated across our dependencies and
// prevent packaging Android applications.
packagingOptions {
exclude "META-INF/LICENSE.txt"
exclude "META-INF/NOTICE.txt"
}
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。