{"action":"created","issue":{"url":"https://api.github.com/repos/square/retrofit/issues/2992","repository_url":"https://api.github.com/repos/square/retrofit","labels_url":"https://api.github.com/repos/square/retrofit/issues/2992/labels{/name}","comments_url":"https://api.github.com/repos/square/retrofit/issues/2992/comments","events_url":"https://api.github.com/repos/square/retrofit/issues/2992/events","html_url":"https://github.com/square/retrofit/issues/2992","id":392477243,"node_id":"MDU6SXNzdWUzOTI0NzcyNDM=","number":2992,"title":"Retrofit 2.5 Android build error: Task transformClassesWithAndroidGradleClassShrinkerForRelease failed","user":{"login":"alixwar","id":5415786,"node_id":"MDQ6VXNlcjU0MTU3ODY=","avatar_url":"https://avatars3.githubusercontent.com/u/5415786?v=4","gravatar_id":"","url":"https://api.github.com/users/alixwar","html_url":"https://github.com/alixwar","followers_url":"https://api.github.com/users/alixwar/followers","following_url":"https://api.github.com/users/alixwar/following{/other_user}","gists_url":"https://api.github.com/users/alixwar/gists{/gist_id}","starred_url":"https://api.github.com/users/alixwar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alixwar/subscriptions","organizations_url":"https://api.github.com/users/alixwar/orgs","repos_url":"https://api.github.com/users/alixwar/repos","events_url":"https://api.github.com/users/alixwar/events{/privacy}","received_events_url":"https://api.github.com/users/alixwar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-19T07:44:58Z","updated_at":"2018-12-25T04:37:53Z","closed_at":null,"author_association":"NONE","body":"My project (pure Java, no Kotlin) used Retrofit2 2.4 but when upgrading to 2.5 the project does not build and I see the following in the build log:\r\n\r\n``` \r\n> Task :submodule1:mergeReleaseConsumerProguardFiles\r\n> Task :submodule2:mergeReleaseConsumerProguardFiles\r\n> Task :submodule3:mergeReleaseConsumerProguardFiles\r\n> Task :submodule4:mergeReleaseConsumerProguardFiles\r\n> Task :submodule5:mergeReleaseConsumerProguardFiles\r\nretrofit2/BuiltInConverters$UnitResponseBodyConverter references unknown class: kotlin/Unit\r\nretrofit2/-KotlinExtensions references unknown class: kotlin/jvm/internal/Intrinsics\r\n\r\n> Task :app:transformClassesWithAndroidGradleClassShrinkerForRelease\r\nretrofit2/BuiltInConverters references unknown class: kotlin/Unit\r\nretrofit2/-KotlinExtensions references unknown class: kotlin/Metadata\r\n\r\n> Task :application:transformClassesWithAndroidGradleClassShrinkerForRelease FAILED\r\n\r\nFAILURE: Build failed with an exception.\r\n\r\n* What went wrong:\r\nExecution failed for task ':application:transformClassesWithAndroidGradleClassShrinkerForRelease'.\r\n> Warnings found during shrinking, please use -dontwarn or -ignorewarnings to suppress them.\r\n```\r\n\r\nMy config:\r\nMulti-module Gradle (Android) project.\r\nOne of the submodules uses Retrofit2.\r\nI use ProGuard with [this config](https://github.com/square/retrofit/blob/master/retrofit/src/main/resources/META-INF/proguard/retrofit2.pro) for the submodule that uses Retrofit2.\r\n\r\nAndroid Gradle Plugin: 3.2.1"},"comment":{"url":"https://api.github.com/repos/square/retrofit/issues/comments/449800047","html_url":"https://github.com/square/retrofit/issues/2992#issuecomment-449800047","issue_url":"https://api.github.com/repos/square/retrofit/issues/2992","id":449800047,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTgwMDA0Nw==","user":{"login":"2862339302","id":10891312,"node_id":"MDQ6VXNlcjEwODkxMzEy","avatar_url":"https://avatars2.githubusercontent.com/u/10891312?v=4","gravatar_id":"","url":"https://api.github.com/users/2862339302","html_url":"https://github.com/2862339302","followers_url":"https://api.github.com/users/2862339302/followers","following_url":"https://api.github.com/users/2862339302/following{/other_user}","gists_url":"https://api.github.com/users/2862339302/gists{/gist_id}","starred_url":"https://api.github.com/users/2862339302/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2862339302/subscriptions","organizations_url":"https://api.github.com/users/2862339302/orgs","repos_url":"https://api.github.com/users/2862339302/repos","events_url":"https://api.github.com/users/2862339302/events{/privacy}","received_events_url":"https://api.github.com/users/2862339302/received_events","type":"User","site_admin":false},"created_at":"2018-12-25T04:37:53Z","updated_at":"2018-12-25T04:37:53Z","author_association":"NONE","body":"proguard-rules.pro\r\n\r\n# Guarded by a NoClassDefFoundError try/catch and only used when on the classpath.\r\n-dontwarn kotlin.Unit\r\n\r\n# Top-level functions that can only be used by Kotlin.\r\n-dontwarn retrofit2.-KotlinExtensions"}}
{"actor":{"display_login":"2862339302"}}