1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt-doc.git synced 2025-04-25 12:07:10 -07:00

fix fat jar main class explanation

This commit is contained in:
Juan Liska 2015-12-12 20:59:32 -06:00
parent 75c4a2b52d
commit f5634bdb30

View file

@ -199,7 +199,7 @@ This is the simplest jar declaration you can have. You can trigger the creation
jar {
fatJar = true
manifest {
attributes("Main-Class", "com.beust.kobalt.KobaltPackage")
attributes("Main-Class", "com.beust.FileHavingMainKt")
}
}
zip {
@ -212,7 +212,7 @@ This is the simplest jar declaration you can have. You can trigger the creation
</pre>
<p>
Our jar file is now declared to be a "fat jar" (which means it will include all its dependencies) and we specified a <code>Main-Class</code> to the jar Manifest, which means we will be able to invoke it with <code>java -jar kobalt-0.61.jar</code>. If you don't like this name, you can override it with a <code>name = "myName.jar"</code> statement.
Our jar file is now declared to be a "fat jar" (which means it will include all its dependencies) and we specified a <code>Main-Class</code> to the jar Manifest, which means we will be able to invoke it with <code>java -jar kobalt-0.61.jar</code>. If you don't like this name, you can override it with a <code>name = "myName.jar"</code> statement. <code>FileHavingMain</code> would be the name of the .kt file in package com.beust that contains the main function that will be run automatically
</p>
<p>