gradle

Received status code 407 from server: Proxy Authentication Required

吃可爱长大的小学妹 提交于 2021-01-26 19:38:10
问题 After Updating Android Studio and Gradle i get below error. What i have tried: 1. I'm using a proxy and have tried automatic and manual proxy settings. check connection works and is successful, android sdk updates also shows but libraries and repositories not downloaded from google(), jcenter(), etc. 2. run as admin doesn't fix the problem. 3. the same proxy was working correctly before, i also tried other proxies which didn't work. 4. i am using windows 10, gradle 4.4, android studio 3.1. 5.

wagon-git and Gradle

冷暖自知 提交于 2021-01-26 18:41:25
问题 This nice little tool promise help me upload artifacts up to a private Bitbucket repo. http://synergian.github.io/wagon-git/bitbucket.html I am having troubles using this guide in my Gradle build... I've found this short and limited example, https://github.com/UniconLabs/ssl-utils/blob/master/build.gradle Most unclear for me is this section about how to prepare the settings.xml inside my maven home. Am I supposed to use my .gradle folder instead since I work with Gradle? Bitbucket Private

wagon-git and Gradle

喜欢而已 提交于 2021-01-26 18:40:55
问题 This nice little tool promise help me upload artifacts up to a private Bitbucket repo. http://synergian.github.io/wagon-git/bitbucket.html I am having troubles using this guide in my Gradle build... I've found this short and limited example, https://github.com/UniconLabs/ssl-utils/blob/master/build.gradle Most unclear for me is this section about how to prepare the settings.xml inside my maven home. Am I supposed to use my .gradle folder instead since I work with Gradle? Bitbucket Private

Java9模块化指南

人盡茶涼 提交于 2021-01-26 18:25:49
1. 概述 Java9在包之上引入了一个新的抽象级别,正式称为Java平台模块系统(JPMS),简称“模块”。 在本文中,我们将介绍新系统并讨论其各个方面。 2. 什么是模块? 首先,我们需要先了解模块是什么,然后才能了解如何使用它们。 模块是一组密切相关的包和资源以及一个新的模块描述符文件。 换句话说,它是一个“Java包的包”的抽象,允许我们使代码更加 可重用 。 2.1 Packages 模块中的包与我们自Java诞生以来一直使用的Java包是相同的。 当我们创建一个模块时,我们将代码内部组织在包中,就像我们以前对任何其他项目所做的那样。 除了组织我们的代码外,还使用包来确定哪些代码可以在 模块外部公开访问 。我们将在本文后面花更多的时间讨论这个问题。 2.2 Resources 每个模块负责其资源,如媒体或配置文件。 以前,我们将所有资源放在项目的根级别,并手动管理属于应用程序不同部分的资源。 通过模块,我们可以将所需的图像和XML文件与需要的模块一起发送,从而使我们的项目更 易于管理 。 2.3 模块描述符 创建模块时,我们会包含一个描述符文件,该文件定义了新模块的几个方面: Name–我们模块的名称 依赖项–此模块依赖的其他模块的列表 公共包–我们希望从模块外部访问的所有包的列表 提供的服务–我们可以提供其他模块可以使用的服务实现 已使用的服务

google为什么使用mono-repo

蓝咒 提交于 2021-01-26 14:36:18
google为什么使用mono-repo 三丰 soft张三丰 什么是monorepo? Monorepo 它是一种管理 organisation 代码的方式,在这种方式下会摒弃原先一个 module 一个 repo 的方式,取而代之的是把所有的 modules 都放在一个 repo 内来管理。 目前诸如 Babel, React, Angular, Ember, Meteor, Jest 等等都采用了 Monorepo 这种方式来进行源码的管理。 git 多仓库管理的缺点 1.管理调试困难 2.分支管理混乱 3.依赖关系复杂 4.三方依赖版本可能不一致 5.占用总空间大 6.不利于团队协作 单体,多仓库,单体仓库 单体应用 到 多仓库 到单体仓库 单体仓库的优点:代码规范易于管理 配合自动化工具能够做到一键构建,一键部署 易于理解项目整体,开发人员有一个更好的全景视图 易于重用 谁在用monorepo bazel Bazel 是 Google 的一款可再生的代码构建工具。它主要是用于构建 Google 的软件,处理出现在谷歌的开发环境的构建问题,比如说:大规模数据构建问题,共享代码库问题,从源代码构建的软件的相关问题。 Bazel 支持多种语言并且跨平台,还支持自动化测试和部署、具有再现性(Reproducibility)和规模化等特征。Bazel

Unnecessarily replacing a task that does not exist is not supported

安稳与你 提交于 2021-01-26 03:45:30
问题 I got the following error: FAILURE: Build failed with an exception. * Where: Initialization script 'C:\Users\User\AppData\Local\Temp\Console_main__.gradle' line: 18 * What went wrong: A problem occurred configuring root project 'demo'. > Could not create task ':Console.main()'. > Unnecessarily replacing a task that does not exist is not supported. Use create() or register() directly instead. You attempted to replace a task named 'Console.main()', but there is no existing task with that name.

学习日志13

强颜欢笑 提交于 2021-01-25 10:08:15
学习目标: 1.网络请求 学习内容: 1.get方法请求 // 1 创建一个请求队列 RequestQueue requestQueue = Volley . newRequestQueue ( VolleyActivity . this ) ; // 2 创建一个请求 String url = "http://api.m.mtime.cn/PageSubArea/TrailerList.api" ; StringRequest stringRequest = new StringRequest ( url , new Response . Listener < String > ( ) { // 正确接收数据回调 @Override public void onResponse ( String s ) { tv_volley_result . setText ( s ) ; } } , new Response . ErrorListener ( ) { // 发生异常后的监听回调 @Override public void onErrorResponse ( VolleyError volleyError ) { tv_volley_result . setText ( "加载失败" + volleyError ) ; } } ) ; // 3 将创建的请求添加到请求队列中

timeout超时时长优化和hystrix dashboard可视化分布式系统

蓝咒 提交于 2021-01-25 06:58:11
在生产环境中部署一个短路器,一开始需要将一些关键配置设置的大一些,比如timeout超时时长,线程池大小,或信号量容量 然后逐渐优化这些配置,直到在一个生产系统中运作良好 (1)一开始先不要设置timeout超时时长,默认就是1000ms,也就是1s (2)一开始也不要设置线程池大小,默认就是10 (3)直接部署hystrix到生产环境,如果运行的很良好,那么就让它这样运行好了 (4)让hystrix应用,24小时运行在生产环境中 (5)依赖标准的监控和报警机制来捕获到系统的异常运行情况 (6)在24小时之后,看一下调用延迟的占比,以及流量,来计算出让短路器生效的最小的配置数字 (7)直接对hystrix配置进行热修改,然后继续在hystrix dashboard上监控 (8)看看修改配置后的系统表现有没有改善 根据系统表现优化和调整线程池大小,队列大小,信号量容量,以及timeout超时时间的经验 一开始如果默认的线程池大小是10 理想情况下,每秒的高峰访问次数 * 99%的访问延时 + buffer = 30 * 0.2 + 4 = 10线程,10个线程每秒处理30次访问应该足够了,每个线程处理3次访问 此时,我们合理的timeout设置应该为300ms,也就是99.5%的访问延时,计算方法是,因为判断每次访问延时最多在250ms(TP99如果是200ms的话)

QQ突然关停这项功能,网友:爷青结

点点圈 提交于 2021-01-24 14:04:26
点击上方 " 编程技术圈 "关注, 星标或置顶一起成长 后台回复“ 大礼包 ”有惊喜礼包! 每日英文 There is a time in life that is full of uneasiness.We have no other choice but to face it. 生命中总有那么一段时光,充满不安,可是除了勇敢面对,我们别无选择。 每日掏心话 人生不是等价交换,凡事不要斤斤计较。无论在哪里,无论以什么样的状态,要做的就是以不变应万变。 来 自 :扩展迷EXTFANS | 责编:乐乐 编程技术圈(ID:study_tech) 第 1112 次推文 往日回顾: 又一起“删库”跑路:链家程序员怒删公司 9TB 数据,被判 7 年!网友:真惨~ 正文 多年来,腾讯在打造自家的社区类社交系统上,可以说费劲了心思。 说到腾讯的社区产品,那就不得不提到腾讯搜吧。腾讯搜吧于2006年1月推出,旨在抗衡百度贴吧等社区。 但好景不长,腾讯搜吧并未创造出任何亮眼的成绩,在2014年3月便停运了。 在腾讯搜吧停运后两个月,很快,腾讯又推出了兴趣部落。 兴趣部落,官方定义是基于兴趣公开的主题社区,类似于贴吧和微信公众号的结合体。 同时,兴趣部落基于手机QQ获得了强势曝光。QQ用户可以在兴趣部落里实现交流讨论、信息沉淀,也可加入相关联的QQ群进行实时聊天。

Why gradle removes dependency when I build a project

大城市里の小女人 提交于 2021-01-24 12:23:06
问题 I have no idea why gradle is doing this to me. I have a multiproject that looks like this: |Parent |client |common |service Parent is just an empty project and client, common and service are gradle java projects: I have some classes that are used in both client and service, therefore I wanted to create a common project and build a jar that I would later use in both service and client. I can build the common jar, but whenever i try to do 'add dependency on common' and then try to 'refresh