Updated dependencies and changed versioning

This commit is contained in:
Abdelilah El Aissaoui 2022-03-28 00:32:01 +02:00
parent 3c40069ec7
commit 47ea1f6089

View file

@ -1,6 +1,7 @@
import org.jetbrains.compose.compose import org.jetbrains.compose.compose
import org.jetbrains.compose.desktop.application.dsl.TargetFormat import org.jetbrains.compose.desktop.application.dsl.TargetFormat
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.gradle.jvm.tasks.Jar
plugins { plugins {
// __KOTLIN_COMPOSE_VERSION__ // __KOTLIN_COMPOSE_VERSION__
@ -12,6 +13,7 @@ plugins {
} }
val projectVersion = "0.1.0" val projectVersion = "0.1.0"
val name = "Gitnuro"
group = "com.jetpackduba" group = "com.jetpackduba"
version = projectVersion version = projectVersion
@ -29,14 +31,14 @@ dependencies {
@OptIn(org.jetbrains.compose.ExperimentalComposeLibrary::class) @OptIn(org.jetbrains.compose.ExperimentalComposeLibrary::class)
implementation(compose.desktop.components.splitPane) implementation(compose.desktop.components.splitPane)
implementation("org.eclipse.jgit:org.eclipse.jgit:6.0.0.202111291000-r") implementation("org.eclipse.jgit:org.eclipse.jgit:6.0.0.202111291000-r")
implementation("org.apache.sshd:sshd-core:2.7.0") implementation("org.apache.sshd:sshd-core:2.8.0")
implementation("com.google.dagger:dagger:2.40.5") implementation("com.google.dagger:dagger:2.41")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2") implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2")
kapt("com.google.dagger:dagger-compiler:2.40.5") kapt("com.google.dagger:dagger-compiler:2.41")
} }
tasks.withType<KotlinCompile>() { tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "11" kotlinOptions.jvmTarget = "17"
kotlinOptions.allWarningsAsErrors = true kotlinOptions.allWarningsAsErrors = true
kotlinOptions.freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn" kotlinOptions.freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
} }
@ -45,12 +47,11 @@ tasks.withType<KotlinCompile>() {
compose.desktop { compose.desktop {
application { application {
mainClass = "MainKt" mainClass = "MainKt"
//
nativeDistributions { nativeDistributions {
includeAllModules = true includeAllModules = true
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb, TargetFormat.AppImage) packageName = name
packageName = "Gitnuro" packageVersion = "0.1.0"
packageVersion = "1.0.0"
} }
} }
} }
@ -62,7 +63,7 @@ task("fatJar", type = Jar::class) {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest { manifest {
attributes["Implementation-Title"] = "Gitnuro" attributes["Implementation-Title"] = name
attributes["Implementation-Version"] = projectVersion attributes["Implementation-Version"] = projectVersion
attributes["Main-Class"] = "MainKt" attributes["Main-Class"] = "MainKt"
} }