Hi Ash,

It's situations like these Google Groups shine since they are searchable:
https://groups.google.com/forum/#!searchin/akka-user/%22No$20configuration$20setting$20found$20for$20key%22%7Csort:date

Also, the Akka Documentation has a lot of effort put into it, and is a
great source of information:
http://doc.akka.io/docs/akka/2.4.1/general/configuration.html#When_using_JarJar__OneJar__Assembly_or_any_jar-bundler

Please let us know if you didn't find the answer in there,

Happy hAkking!


On Wed, Dec 30, 2015 at 6:15 PM, ash.ta <[email protected]> wrote:

> hi,
>
> i'm struggling with a gradle build in attempt to build a fatjar.
> following some examples i've found, i created the following gradle.build:
>
> import 
> com.github.jengelman.gradle.plugins.shadow.transformers.AppendingTransformer
>
> apply plugin: "java"
> apply plugin: "scala"
> apply plugin: "com.github.johnrengelman.shadow"
>
> sourceCompatibility = 1.8
> version = '0.0.1'
>
> if (!JavaVersion.current().java8Compatible) {
>     throw new IllegalStateException("Java 8 is mandatory for building this 
> project")
> }
>
> repositories {
>     mavenCentral()
>     jcenter()
> }
>
> buildscript {
>     repositories {
>         jcenter {
>             url "http://jcenter.bintray.com/";
>         }
>     }
>     dependencies {
>         classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.2'
>     }
> }
>
> dependencies {
>
>     compile("com.typesafe.akka:akka-actor_2.11:2.4.1")
>     compile("com.typesafe.akka:akka-cluster_2.11:2.4.1")
>     compile("com.typesafe.akka:akka-cluster-tools_2.11:2.4.1")
>     compile("com.typesafe.akka:akka-http-experimental_2.11:2.0.1")
>     compile("com.typesafe.akka:akka-http-core-experimental_2.11:2.0.1")
>     compile("org.scala-lang:scala-library:2.11.7")
>
>     testCompile("junit:junit:4.11")
> }
>
> tasks.withType(ScalaCompile) {
>     scalaCompileOptions.useAnt = false
> }
>
> task wrapper(type: Wrapper) {
>     gradleVersion = '2.9'
> }
> jar {
>     manifest {
>         attributes "Main-Class": "com.whatever.Main"
>         attributes "Build-Version": version
>     }
>     from {
>         configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
>     }
>     archiveName 'fat.jar'
> }
>
> shadowJar {
>     transform(AppendingTransformer) {
>         resource = 'reference.conf'
>     }
> }
>
>
>  unfortunately, i still fail to run created jar due to the following error:
>
> Exception in thread "main" com.typesafe.config.ConfigException$Missing: No
> configuration setting found for key 'akka.version'
>
> does anyone have an idea what do i miss here?
>
> thanks!
>
> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Cheers,
√

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to