shadowjar

How do I make Dagger 1 and Dagger 2 coexist together in one Android project?

你离开我真会死。 提交于 2020-08-09 18:51:28
问题 We have a huge codebase to migrate from dagger 1 to dagger 2 but we would like to do it step by step. For that we were thinking to have both versions as our project dependency and do the migration module by module. But we were unable to make it work. This is the article we referred https://fernandocejas.com/2016/08/03/android-dagger-1-and-2-living-together/ but without any luck or is there any other way? Thanks. 回答1: There's no other way. When trying to use both Dagger versions together, you

How do I make Dagger 1 and Dagger 2 coexist together in one Android project?

蹲街弑〆低调 提交于 2020-08-09 18:50:59
问题 We have a huge codebase to migrate from dagger 1 to dagger 2 but we would like to do it step by step. For that we were thinking to have both versions as our project dependency and do the migration module by module. But we were unable to make it work. This is the article we referred https://fernandocejas.com/2016/08/03/android-dagger-1-and-2-living-together/ but without any luck or is there any other way? Thanks. 回答1: There's no other way. When trying to use both Dagger versions together, you

How do I make Dagger 1 and Dagger 2 coexist together in one Android project?

陌路散爱 提交于 2020-08-09 18:50:30
问题 We have a huge codebase to migrate from dagger 1 to dagger 2 but we would like to do it step by step. For that we were thinking to have both versions as our project dependency and do the migration module by module. But we were unable to make it work. This is the article we referred https://fernandocejas.com/2016/08/03/android-dagger-1-and-2-living-together/ but without any luck or is there any other way? Thanks. 回答1: There's no other way. When trying to use both Dagger versions together, you

How can I get the HOCON configuration file format to work in Vert.x deployed as fat jar?

旧城冷巷雨未停 提交于 2020-01-25 09:46:13
问题 I want to use the HOCON format for configuration in a Vert.x application deployed as a fat jar. I'm facing the same issue as described in this similar question. However I applied the gradle Plugin "io.vertx.vertx-plugin" (v1.0.1) and succeeded in getting the line io.vertx.config.hocon.HoconProcessor into META-INF/services/io.vertx.config.spi.ConfigProcessor in the jar. I still get the exception. What else could be required for the proper bundling of the HoconProcessor class in the jar? 来源:

How to specify the entry point, Main-Class, for a FatJar using Gradle Kotlin DSL?

百般思念 提交于 2020-01-11 13:24:33
问题 How do I specify the Main-Class attribute in the ShadowJar once it's imported? import org.jetbrains.kotlin.gradle.tasks.KotlinCompile import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar plugins { kotlin("jvm") version "1.2.51" id("com.github.johnrengelman.shadow") version "2.0.4" } group = "xxx.yyy" version = "1.0-SNAPSHOT" repositories { mavenCentral() } dependencies { implementation(kotlin("stdlib-jdk8")) } tasks.withType<KotlinCompile> { kotlinOptions.jvmTarget = "1.8" }

how to import the ShadowJar plugin for Kotlin (Gradle) builds?

徘徊边缘 提交于 2019-12-11 04:47:44
问题 Build failed: thufir@dur:~/NetBeansProjects/kotlin_dsl$ thufir@dur:~/NetBeansProjects/kotlin_dsl$ gradle clean run > Configure project : e: /home/thufir/NetBeansProjects/kotlin_dsl/build.gradle.kts:4:12: Unresolved reference: github FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'kotlin_dsl'. > Could not open cache directory 74ykawxta6db3b2bfk9grjikp (/home/thufir/.gradle/caches/4.3.1/gradle-kotlin-dsl/74ykawxta6db3b2bfk9grjikp). >

How can I fix missing conf files when using shadowJar and Scala dependencies?

亡梦爱人 提交于 2019-12-09 14:58:13
问题 Writing this for users who have future issues like me. Libraries that are built on the Typesafe config typically use their own reference.conf files and refer to certain configuration keys. When building a fat JAR using the Gradle shadowJAR plugin, these files aren't included. Dependencies like Spray and Akka throw errors when the fat JAR attempts to run. Errors look like: Exception in thread "main" com.typesafe.config.ConfigException$Missing: No configuration setting found for key 'spray'

specify Kotlin class as the Main-Class entry point in a MANIFEST.MF?

本秂侑毒 提交于 2019-12-08 06:35:54
问题 How do I explicitly tell shadowJar to use a Kotlin file as the entry point for the resulting uberJar ? (Or, fat JAR as you prefer.) clumsily editing META-INF/MANIFEST.MF and the replacing it in the zip file (used the GUI to put it back): thufir@dur:~/NetBeansProjects/kotlin/build/libs$ thufir@dur:~/NetBeansProjects/kotlin/build/libs$ ll total 900 drwxrwxr-x 2 thufir thufir 4096 Nov 5 03:42 ./ drwxrwxr-x 8 thufir thufir 4096 Nov 5 03:42 ../ -rw-rw-r-- 1 thufir thufir 903184 Nov 5 03:42

How to specify the entry point, Main-Class, for a FatJar using Gradle Kotlin DSL?

跟風遠走 提交于 2019-12-02 09:20:52
How do I specify the Main-Class attribute in the ShadowJar once it's imported ? import org.jetbrains.kotlin.gradle.tasks.KotlinCompile import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar plugins { kotlin("jvm") version "1.2.51" id("com.github.johnrengelman.shadow") version "2.0.4" } group = "xxx.yyy" version = "1.0-SNAPSHOT" repositories { mavenCentral() } dependencies { implementation(kotlin("stdlib-jdk8")) } tasks.withType<KotlinCompile> { kotlinOptions.jvmTarget = "1.8" } tasks.withType<ShadowJar> { baseName = "app" classifier = "inajar" version = "9" //main-class = "foobar" }

What are .kotlin_builtins files and can I omit them from my uberjars?

Deadly 提交于 2019-11-29 14:08:14
问题 I'm working on integrating proguard to my gradle build for an application written in Kotlin. I'm finding that proguard is stripping out the Kotlin standard library (as it should in my simple Hello World program) but it's leaving a bunch of files in my jar that have the file extension .kotlin_builtins . When I configure my gradle task to exclude those files, the program still appears to work fine. What are those files and must they ship with my executable uberjar? Here's my build.gradle file's