Okhttp Maven

xml的格式 08-30 阅读数 1869 okhttp是一个非常强大的网络框架,封装了http及https的网络协议实现,向上层提供统一的网络访问接口,熟悉一个框架最直接的办法是用起来,而想用好,少不了要熟悉了解其源码,RTFSC(Read. Also, is it possible to include only portions of the lib instead of the entire jar? Either way, how to I add it to my existing project? I assume its some type of import but I'm not sure. jarWEB-INF/lib/okhttp-ws-3. Using the plugins DSL: plugins { id("io. xml files and stuff for the docker-maven-plugin (adding extra stuff into the base image) - snippet. handshake failure - okhttp uses DefaultSSLSocketFactory Showing 1-3 of 3 messages. 使用nexus在局域网内搭建maven私服及idea的使用. The issuer ceritificate is added to the truststore of the JVM used to execute the maven calls. In Retrofit 2, all network operations are performed via OkHttp library. Java REST Client Examples Using OkHttp. - Continuous integration practices: Git flow, Unit testing, maven/gradle - Experience with popular frameworks for Android such as Robolectric, Retrofit, Dagger, Butterknife, Gson, Event Bus, Okhttp etc. okhttp3:okhttp:. 0"} Gradle will download the artifacts for okhttp as jar and for percent as aar. By default jsonschema2pojo is bound to generate-sources but if you want resources present in the current module to be on the classpath when the plugin executes, then you should bind jsonschema2pojo to the. In this article, we will write a code using Java 1. 0 in the same app at the same time. OkHttp is extremely efficient and has a great API. IDEA中MAVEN项目打JAR包的简单方法. Maven artifact version com. xmlにライブラリを記述したら勝手に導入してくれました!. The dependencies can be located on your machine or in a remote repository, and any transitive dependencies they declare are automatically included as well. okhttp-gson [DEFAULT] HTTP client: OkHttp 3. I am trying to verify my build of the okhttp library. The Search Engine for The Central Repository. It’s how we exchange data & media. Resources Content Tweets by @sonatype_ops. The preceding image shows the Initializr with Maven chosen as the build tool. In this article, we will write a code using Java 1. Install the Android SDK. New Version: 4. The scopes being interpreted are the scopes as Maven sees them, not as specified in the pom. OkHttp supports Android 5. Podcast Episode #126: We chat GitHub Actions, fake boyfriends apps, and the dangers of legacy code. Shipping two copies of a library is a terrible long-term solution! It bloats your app, consumes more memory, and exacerbates the 65K dex limit. An HTTP & HTTP/2 client for Android and Java applications. OkHttp has one library dependency on Okio, a small library for high-performance I/O. When enabled, developers have access to the Chrome Developer Tools feature natively part of the Chrome desktop browser. IDEA中MAVEN项目打JAR包的简单方法. 3 (22 October 2019) io. 0) directly depends on OkHttp 2. I get the following error: [[email protected] surefire-reports]$. Integration libraries are optional and not included in either Glide’s jar or maven dependency. OkHttpClient' not the 'com. OkHttpClient用例 版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog. jarWEB-INF/lib/okhttp-ws-3. Unresolved org. okhttp:okhttp:2. Useful to check their licenses, for example. This feature is useful for us to create application that support fully bi-directional streaming of messages between client and server. Guava is a suite of core and expanded libraries that include utility classes, google's collectio. I wanted to add okhttp library to an android app and noticed that I could also use the same library in a regular java file. Download the latest JAR or grab via Maven:. com | Email:info at java2s. Integration libraries are optional and not included in either Glide's jar or maven dependency. 5 / OkHttp / Get informed about new snapshots or releases. We can download a file synchronously and asynchronously with OkHttp. Include the corresponding Maven, Gradle, or jar dependency in your build. In order to use Maven, it is necessary to explicitly add dependencies to the Maven pom. You can read Android OkHttp3 Http Get Post. Accessing the API. OkHttpClient Java class. We have an SonarQube 7. The Search Engine for The Central Repository. User friendly API. Concurrent Safe Local Repository. The dependencies can be located on your machine or in a remote repository, and any transitive dependencies they declare are automatically included as well. If your service has multiple IP addresses OkHttp will attempt alternate addresses if the first connect fails. You can also use Gradle. Contribute to square/okhttp development by creating an account on GitHub. Note: There is a new version for this artifact. Guava is a suite of core and expanded libraries that include utility classes, google's collectio. Fix the issue and everybody wins. The OkHttp 3. Resources Content Tweets by @sonatype_ops. For more information see the website and the wiki. x with Android 4. Contribute to square/okhttp development by creating an account on GitHub. Also, is it possible to include only portions of the lib instead of the entire jar? Either way, how to I add it to my existing project? I assume its some type of import but I'm not sure. com | © Demo Source and Support. Support http2, sharing the same socket for all requests from a machine. Square OkHttp. So I went for it. It also shows values of com. developerWorks forums allow community members to ask and answer questions on technical topics. Please do not use this for any other purpose. If you are using Maven or Gradle as build system you can simply add a dependency to. Enable gzip request. In this article, we will write a code using Java 1. OkHttp has one library dependency on Okio, a small library for high-performance I/O. Maven artifact version com. JSON processing: Gson 2. Apache HttpComponents. In order to use Maven, it is necessary to explicitly add dependencies to the Maven pom. Apache HttpClient. 48,663 developers are working on 4,785 open source repos using CodeTriage. OkHttp-Stats is an android library built on top of OkHttp3, which is responsible for intercepting all the network calls and for calculating network stats such as the average network speed of the user. It comes with advanced features such as connection pooling (if HTTP/2 isn't available), transparent GZIP compression, and response caching to avoid the network completely for repeated requests. 0 in this page. Introduction to the Dependency Mechanism. Hi Gerald, There is no need for us to pass proxy configuration to Okhttp since it will out of the box support properties http. spring mvc+mybatis+mysql+maven+bootstrap 整合实现增删查改简单实例. Publish straight from GitHub or Bitbucket. Shipping two copies of a library is a terrible long-term solution! It bloats your app, consumes more memory, and exacerbates the 65K dex limit. An HTTP & HTTP/2 client for Android and Java applications. Integrate japicmp. OkHttpClient' which I need. We highly recommend you keep OkHttp up-to-date. handshake failure - okhttp uses DefaultSSLSocketFactory Showing 1-3 of 3 messages. okhttp3okhttp3. We use maven to manage our dependencies and are using Apache HttpClient version 4. GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together. It supports both the HttpURLConnection and HttpClient APIs so you can upgrade painlessly. OkHttp perseveres when the network is troublesome: it will silently recover from common connection problems. This worked nicely up until sonar-maven-plugin 3. Apache Maven Indexer (former Sonatype Nexus Indexer) is the defacto standard for producing indexes of Maven repositories. Apache Maven Resources. Include comment with link to declaration Compile Dependencies (1) Category/License Group / Artifact Version Updates; I/O Apache 2. The Search Engine for The Central Repository. It has below characters. 1 / OkHttp / Get informed about new snapshots or releases. JSON processing: Gson 2. To download the index, select Windows Preferences Maven and enable the Download repository index updates on startup option. SFMETA-INF/704FE274. Download okhttp-apache-1. In this post, we will create an OkHttp POST HTTP request example in Java. OkHttp has one library dependency on Okio, a small library for high-performance I/O. If you're using OkHttp, you should upgrade to the latest version immediately! Staying up to date on OkHttp is a good idea - we track the latest HTTPS cipher suites & TLS versions to balance connectivity with. HttpURLConnection. Requirements. 一,OKHttp介绍okhttp是一个第三方类库,用于android中请求网络。这是一个开源项目,是安卓端最火热的轻量级框架,由移动支付Square公司贡献(该公司还贡献了Picasso和LeakCanary) 。用于替代HttpUrlConnection和Apache HttpClient(android API23 里已移除HttpClient)。. Installing in the default local Maven repo. I am using spring boot application, so the pom file looks like this:. MFimages/16x16/logo_mdt_failed. Eliezio has 6 jobs listed on their profile. Java REST Client Examples Using OkHttp. Java REST client example 1. All rights reserved. ksoap2-android meets okhttp The ksoap2-android project has been in mostly maintenance mode for a long time, but it is still receiving lots of usage. Over the past 10 years, the company re-invented several times, passed through different stages and gained robustness and maturity. x clients does have a dependency on okhttp and you can find the dependency list here. One surprising consequence of this approach is that the Maven coordinates and package name of OkHttp 4 will be okhttp3. OkHttp is now the default HTTP client on the Android platform. Recently a very useful improvement came up in discussions around HTTP connections issues. OkHttp NetworkOnMainThreadException OkHttp Code Here an example of maven optional usage: Maven Optional can be described as a dependency that is marked as. When deciding on your dependency manager in Java you have two main choices Maven and Gradle (or something more complex like Google's Bazel). developerWorks forums allow community members to ask and answer questions on technical topics. io helps you find new open source packages, modules and frameworks and keep track of ones you depend upon. Since HTTP/2 is gaining momentum I thought it would be a nice experiment to see if it's possible to convert some applications to HTTP/2. sonar analysis with https fails since sonar-maven-plugin version 3. maven-plugin A Gradle plugin for building maven plugins. How do I upgrade? Confirm that your project’s minSdkVersion is at least 21 and that your Android Gradle Plugin version is at least 3. Consultez le profil complet sur LinkedIn et découvrez les relations de Julien, ainsi que des emplois dans des entreprises similaires. A duplex request body is special in how it is transmitted on the network and in the API contract between OkHttp and the application. New Version: 4. RSAMETA-INF/lib/asm-7. There are two places that you. And, a great thing about using Feign is that we don't have to write any code for calling the service, other than an interface definition. An HTTP client for Android, Kotlin, and Java. If you are using Maven or Gradle as build system you can simply add a dependency to. An HTTP & HTTP/2 client for Android and Java applications. The example source code can be found on the Github project or you can download it by clicking on java-examples. In this article, we will write a code using Java 1. But, if I do that, the project won’t compile because Estimote’s library also has an OkHttp dependecy in it and colides with my OkHttp dependency. OkHttpの公式サイト. We can download a file synchronously and asynchronously with OkHttp. java-无法获取OkHttp的response. Q9 Ø ãÎ s¦XÉ2 Ë*ê"E9"ÌÝRî( ƒ9™º¥'Vˆu £v=ÜžVhd:í(êÒ ÅrßOÄ ªºˆW©%ˆX. OkHttp官方教程解析-彻底入门OkHttp使用 最近半年来身边开发的朋友越来越多的提到OkHttp,上谷歌百度一下,确实OkHttp成了时下最火的HTTP框架,于是我也开始放下Volley,转而关注OkHttp,五一期间仔细看了官方WiKi介绍(我喜欢学习官方的文档),现在把自己整理的. Fetching resource over the network is both slow and expensive. 如何用Okhttp访问双向认证的网站 [待上传] 第五章:搭建Okhttp源码调试环境 ; 下载Okhttp源码 [待上传] 安装Maven [待上传] 如何用Maven编译Okhttp源码 [待上传] 如何用IDEA导入Okhttp源码 [待上传] 第六章:Okhttp源码分析. We highly recommend you keep OkHttp up-to-date. 2: Maven; Gradle; SBT; Ivy; Grape; Leiningen; Buildr. 0 / OkHttp / Get informed about new snapshots or releases. Swagger Petstore. Use OkHttp's interceptors to hook into your application's HTTP calls. Be aware that value set in setReadTimeout is the one used in setSoTimeout on the Socket internally in the OkHttp Connection class. OkHTTP is an open source project designed to be an efficient HTTP client. Maven Plugin A swagger-codegen Maven plugin that can be configured easily in your pom. jarMETA-INF/lib/commons-codec-1. How much is this artifact used as a dependency in other Maven artifacts in Central repository and GitHub:. OkHTTP is an open source project designed to be an efficient HTTP client for Android and Java applications. New Relic should support OkHttp 3. The OkHttp post examples source code can be found on the Github project. Maven は Project Object Model (POM) という考え方に基づき、プロジェクトのビルド、テスト、ドキュメンテーション、成果物の配備など、プロジェクトのライフサイクル全体を. However, below we list Log4j core as a compile time dependency to improve. Include comment with link to declaration Compile Dependencies (1) Category/License Group / Artifact Version Updates; I/O Apache 2. okhttp mockwebserver 2. The preceding image shows the Initializr with Maven chosen as the build tool. TackThis Android November 2015 – March 2017. Join GitHub today. Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2. 请先本地安装maven 经验内容仅供参考,如果您需解决具体问题(尤其法律、医学等领域),建议您详细咨询相关领域专业人士。 举报 作者声明: 本篇经验系本人依照真实经历原创,未经许可,谢绝转载。. okhttp okhttp-android-support; Blame History Permalink [maven-release-plugin] prepare for next development iteration · d6be7545 jwilson authored May 22, 2015. jarMETA-INF/lib. xmlにライブラリを記述したら勝手に導入してくれました!. You can read Android OkHttp3 Http Get Post. OkHttp has one library dependency on Okio, a small library for high-performance I/O. Search and download functionalities are using the official Maven repository. Description Synchronous and asynchronous network request framework for Android You can download jar file okhttp 3. Support http2, sharing the same socket for all requests from a machine. If you're using OkHttp, you should upgrade to the latest version immediately! Staying up to date on OkHttp is a good idea - we track the latest HTTPS cipher suites & TLS versions to balance connectivity with. Maven Dependency volley-okhttp-gson-library >> 1. A duplex request body is special in how it is transmitted on the network and in the API contract between OkHttp and the application. x branch supports Android 2. okhttp3 » okhttp-android-support Apache Classes to support the Android platform's use of OkHttp (not required for most developers). We use cookies for various purposes including analytics. ksoap2-android meets okhttp The ksoap2-android project has been in mostly maintenance mode for a long time, but it is still receiving lots of usage. Dependency Convergence. okhttp") version "4. The Search Engine for The Central Repository. pl BUG: b/32916152 assets/android-studio-ux-assets Bug: 32992167 brillo/manifest cts_drno_filter Parent project for CTS projects that requires Dr. okhttp3:logging-interceptor:3. Apache Maven Indexer (former Sonatype Nexus Indexer) is the defacto standard for producing indexes of Maven repositories. 2 You should include the dependency code given in this page to add Maven Dependency of com. These settings might be helpful if you decide to deploy your project to a Maven repository. 1-jar-with-dependencies. An HTTP client for Android, Kotlin, and Java. This tutorial describes how to use the Apache HttpClient library for accessing HTTP resources. On the next page of the wizard, specify the fields which resemble Maven naming conventions. An example to add HttpLoggingInterceptor to OkHttpClient. Download okhttp-1. OkHttp provides HttpLoggingInterceptor which logs HTTP request and response data. Once Basic Authentication is set up for the template, each request will be sent preemptively containing the. Download the latest JAR or grab via Maven: com. Contribute to grpc/grpc-java development by creating an account on GitHub. JitPack makes it easy to release your Java or Android library. ~Yˆ@•P qSB Å Eh zP qKÄ'„=˜Š@ç÷e~1$ì†)Â'Ð‡Û Ó Q áˆ( €yÜ0˜ Õ•R‰• ´©ºÆ GÀþœj. In this article, we will write a code using Java 1. API version: 1. All modern Android apps need to do network requests. okhttp是一个非常强大的网络框架,封装了http及https的网络协议实现,向上层提供统一的网络访问接口,熟悉一个框架最直接的办法是用起来,而想用好,少不了要熟悉了解其源码,RTFSC(Read The Fuck Source Code),okhttp的github路径为:. Unresolved org. But because upgrading is difficult we will backport critical fixes to the 3. okhttp okhttp-android-support; Blame History Permalink [maven-release-plugin] prepare for next development iteration · d6be7545 jwilson authored May 22, 2015. 如何用Okhttp访问双向认证的网站 [待上传] 第五章:搭建Okhttp源码调试环境 ; 下载Okhttp源码 [待上传] 安装Maven [待上传] 如何用Maven编译Okhttp源码 [待上传] 如何用IDEA导入Okhttp源码 [待上传] 第六章:Okhttp源码分析. gradle file. Does it make sense? (In order to avoid "OkHttp changes the global SSL context, breaks other HTTP clients" square/okhttp#184) /** * An {@link com. The Apache HttpComponents™ project is responsible for creating and maintaining a toolset of low level Java components focused on HTTP and associated protocols. okio » okio: 1. 请先本地安装maven 经验内容仅供参考,如果您需解决具体问题(尤其法律、医学等领域),建议您详细咨询相关领域专业人士。 举报 作者声明: 本篇经验系本人依照真实经历原创,未经许可,谢绝转载。. 因为时基于maven构建,所以所有依赖都由maven管理,这样我们只要确保maven管理的jar包不重复、不缺失,就不会报错ClassNotFoundException。 点击最右侧的Maven Projects【见图片5】 可以查看到所有maven管理的包: 怎么确保jar包引用不重复呢? 没有包后面提示:ommited for. Be aware that value set in setReadTimeout is the one used in setSoTimeout on the Socket internally in the OkHttp Connection class. 3+ (API level 9+) and Java 7+. jarMETA-INF/lib/commons-io-2. Credentials. OkHttp supports Android 5. / OkHttp Logging Interceptor / Get informed about new snapshots or releases. 0 Showing 1-3 of 3 messages. Maven artifact version com. This article will tell you how to use OkHttp3 to upload or download json string or file between web server and android application. okhttp3:okhttp:. - Continuous integration practices: Git flow, Unit testing, maven/gradle - Experience with popular frameworks for Android such as Robolectric, Retrofit, Dagger, Butterknife, Gson, Event Bus, Okhttp etc. If you've written an Android app, OkHttp may improve the speed & reliability of your networking. For more information see the website and the wiki. Description can be found here. We highly recommend you keep OkHttp up-to-date. An HTTP client for Android, Kotlin, and Java. Q&A for Work. Does it make sense? (In order to avoid "OkHttp changes the global SSL context, breaks other HTTP clients" square/okhttp#184) /** * An {@link com. Download the latest JAR or grab via Maven:. Search and download functionalities are using the official Maven repository. Strictly speaking Log4j core is only needed at runtime and not at compile time. Contribute to grpc/grpc-java development by creating an account on GitHub. I get the following error: [[email protected] surefire-reports]$. By default this order is: NTLM, Digest, Basic. Publish REST API. OkHttp is the recommend HttpClient that's used inside the Retrofit Networking Library. 0 and allows multiple HTTP requests to be multiplexed over one socket connection. HttpStack HttpStack} implementation which * uses OkHttp as its transport. META-INF/MANIFEST. 0 / OkHttp Logging Interceptor / Get informed about new snapshots or releases. java-无法获取OkHttp的response. New Version: 4. Apache HttpComponents. The tutorial has shown you how to create a WebSocket client example with OkHttp. User friendly API. 7 and OkHttp 3. Include comment with link to declaration Compile Dependencies (1) Category/License Group / Artifact Version Updates; I/O Apache 2. Because UI updates can only be done on the main thread, the approach used by Retrofit can make it easier to make changes to your views. Tech stack: Git, Gerrit, Gradle, Android, Java 1. For Retrofit 2, the developers introduced multiple breaking changes, because Retrofit in its second major release actually uses OkHttp instead of working with and around it. License The Apache Software. YouTube Data API: Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. 1: 26: async-http-client. Support http2, sharing the same socket for all requests from a machine. okhttp to com. Dependency management is a core feature of Maven. 2 / OkHttp / Get informed about new snapshots or releases. Integration libraries are optional and not included in either Glide’s jar or maven dependency. Note on "snapshot" (pre-release) builds. 0; This spec is mainly for testing Petstore server and contains fake endpoints, models. For more information see the website and the wiki. An HTTP client for Android, Kotlin, and Java. OkHttpDownloader is a Picasso’s class, and to instantiate this class I need to include OkHttp dependency. okhttp3:okhttp:3. Retrofit is the class through which your API interfaces are turned into callable objects. Q9 Ø ãÎ s¦XÉ2 Ë*ê"E9"ÌÝRî( ƒ9™º¥'Vˆu £v=ÜžVhd:í(êÒ ÅrßOÄ ªºˆW©%ˆX. 2: Central: 54: Oct, 2019: 4. dependencies {implementation "com. By default jsonschema2pojo is bound to generate-sources but if you want resources present in the current module to be on the classpath when the plugin executes, then you should bind jsonschema2pojo to the. Client implementation based on the OkHttp client library. isOneShot: open fun isOneShot():Boolean Returns true if this body expects at most one call to writeTo and can be transmitted at most once. jarWEB-INF/lib/logging-interceptor-3. Via the Maven index you can search for dependencies, select them and add them to your pom file. This HttpURLConnection class is available since Java 1. Guava is a suite of core and expanded libraries that include utility classes, google's collectio. Get OkHttp from Maven or download it from the project website. HttpURLConnection. As with auto-updating web browsers, staying current with HTTPS clients is an important defense against potential security problems. 0 Showing 1-3 of 3 messages. This rule requires that dependency version numbers converge. This article shows how to use Springs RestTemplate to consume a RESTful Service secured with Basic Authentication. HttpClient (and web browsers) will not accept untrusted connections, by default. Clone via HTTPS Clone with Git or checkout with SVN using the repository's web address. OkHttpClient用例 版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog. It brings HTTP 2. On the next page of the wizard, specify the fields which resemble Maven naming conventions. See the complete profile on LinkedIn and discover Eliezio’s connections and jobs at similar companies. We highly recommend you keep OkHttp up-to-date. 0' Snapshots of the development version are available in Sonatype's snapshots repository. Download JAR files for okhttp-ws-2. okhttp okhttp-android-support; Blame History Permalink [maven-release-plugin] prepare for next development iteration · d6be7545 jwilson authored May 22, 2015. Running 'mvn -X clean verify' on a recent download of the master branch. OkHttpはデフォルトで効率的なHTTPクライアントです。 書き方が簡潔になる他にも有用です。 HTTP/2サポートにより、同じホストへのすべての要求がソケットを共有できる。. okhttp3:okhttp:3. xmllicenses io. ImagePipeline-OkHttp 3 Integration How much is this artifact used as a dependency in other Maven artifacts in Central repository and GitHub:. httpcomponents:httpasyncclient. Search and download Java libraries/JAR files inclusive their dependencies. Contribute to square/okhttp development by creating an account on GitHub. Search Help. This tutorial show you how to use Apache HttpClient to create a RESTful Java client to perform “GET” requests to REST service. See the complete profile on LinkedIn and discover Eliezio’s connections and jobs at similar companies. We have a bunch of Spring Boot micro services and those services communicate with each other via REST calls. mojo:sonar-maven-plugin:3. * Change Maven group ID from com. Author of percent declared the packacing type as aar in POM file, therefore Gradle will use this default packaging type to download the artifact. Maven runtime changes. The fact-checkers, whose work is more and more important for those who prefer facts over lies, police the line between fact and falsehood on a day-to-day basis, and do a great job. Today, my small contribution is to pass along a very good overview that reflects on one of Trump’s favorite overarching falsehoods. Namely: Trump describes an America in which everything was going down the tubes under  Obama, which is why we needed Trump to make America great again. And he claims that this project has come to fruition, with America setting records for prosperity under his leadership and guidance. “Obama bad; Trump good” is pretty much his analysis in all areas and measurement of U.S. activity, especially economically. Even if this were true, it would reflect poorly on Trump’s character, but it has the added problem of being false, a big lie made up of many small ones. Personally, I don’t assume that all economic measurements directly reflect the leadership of whoever occupies the Oval Office, nor am I smart enough to figure out what causes what in the economy. But the idea that presidents get the credit or the blame for the economy during their tenure is a political fact of life. Trump, in his adorable, immodest mendacity, not only claims credit for everything good that happens in the economy, but tells people, literally and specifically, that they have to vote for him even if they hate him, because without his guidance, their 401(k) accounts “will go down the tubes.” That would be offensive even if it were true, but it is utterly false. The stock market has been on a 10-year run of steady gains that began in 2009, the year Barack Obama was inaugurated. But why would anyone care about that? It’s only an unarguable, stubborn fact. Still, speaking of facts, there are so many measurements and indicators of how the economy is doing, that those not committed to an honest investigation can find evidence for whatever they want to believe. Trump and his most committed followers want to believe that everything was terrible under Barack Obama and great under Trump. That’s baloney. Anyone who believes that believes something false. And a series of charts and graphs published Monday in the Washington Post and explained by Economics Correspondent Heather Long provides the data that tells the tale. The details are complicated. Click through to the link above and you’ll learn much. But the overview is pretty simply this: The U.S. economy had a major meltdown in the last year of the George W. Bush presidency. Again, I’m not smart enough to know how much of this was Bush’s “fault.” But he had been in office for six years when the trouble started. So, if it’s ever reasonable to hold a president accountable for the performance of the economy, the timeline is bad for Bush. GDP growth went negative. Job growth fell sharply and then went negative. Median household income shrank. The Dow Jones Industrial Average dropped by more than 5,000 points! U.S. manufacturing output plunged, as did average home values, as did average hourly wages, as did measures of consumer confidence and most other indicators of economic health. (Backup for that is contained in the Post piece I linked to above.) Barack Obama inherited that mess of falling numbers, which continued during his first year in office, 2009, as he put in place policies designed to turn it around. By 2010, Obama’s second year, pretty much all of the negative numbers had turned positive. By the time Obama was up for reelection in 2012, all of them were headed in the right direction, which is certainly among the reasons voters gave him a second term by a solid (not landslide) margin. Basically, all of those good numbers continued throughout the second Obama term. The U.S. GDP, probably the single best measure of how the economy is doing, grew by 2.9 percent in 2015, which was Obama’s seventh year in office and was the best GDP growth number since before the crash of the late Bush years. GDP growth slowed to 1.6 percent in 2016, which may have been among the indicators that supported Trump’s campaign-year argument that everything was going to hell and only he could fix it. During the first year of Trump, GDP growth grew to 2.4 percent, which is decent but not great and anyway, a reasonable person would acknowledge that — to the degree that economic performance is to the credit or blame of the president — the performance in the first year of a new president is a mixture of the old and new policies. In Trump’s second year, 2018, the GDP grew 2.9 percent, equaling Obama’s best year, and so far in 2019, the growth rate has fallen to 2.1 percent, a mediocre number and a decline for which Trump presumably accepts no responsibility and blames either Nancy Pelosi, Ilhan Omar or, if he can swing it, Barack Obama. I suppose it’s natural for a president to want to take credit for everything good that happens on his (or someday her) watch, but not the blame for anything bad. Trump is more blatant about this than most. If we judge by his bad but remarkably steady approval ratings (today, according to the average maintained by 538.com, it’s 41.9 approval/ 53.7 disapproval) the pretty-good economy is not winning him new supporters, nor is his constant exaggeration of his accomplishments costing him many old ones). I already offered it above, but the full Washington Post workup of these numbers, and commentary/explanation by economics correspondent Heather Long, are here. On a related matter, if you care about what used to be called fiscal conservatism, which is the belief that federal debt and deficit matter, here’s a New York Times analysis, based on Congressional Budget Office data, suggesting that the annual budget deficit (that’s the amount the government borrows every year reflecting that amount by which federal spending exceeds revenues) which fell steadily during the Obama years, from a peak of $1.4 trillion at the beginning of the Obama administration, to $585 billion in 2016 (Obama’s last year in office), will be back up to $960 billion this fiscal year, and back over $1 trillion in 2020. (Here’s the New York Times piece detailing those numbers.) Trump is currently floating various tax cuts for the rich and the poor that will presumably worsen those projections, if passed. As the Times piece reported: