@@ -38,6 +38,7 @@ plugins {
3838val appName = " Taskfolio"
3939val appVersion = libs.versions.tasksApp.name.get()
4040val appVersionCode = System .getenv(" CI_BUILD_NUMBER" )?.toIntOrNull() ? : 1
41+ val ciBuild = (findProperty(" ci" ) as ? String ).toBoolean()
4142
4243compose.resources {
4344 publicResClass = false
@@ -69,6 +70,12 @@ kotlin {
6970 implementation(projects.google.tasks)
7071 implementation(projects.tasksAppShared)
7172
73+ if (ciBuild) {
74+ implementation(libs.ktor.monitor.logging.no.op)
75+ } else {
76+ implementation(libs.ktor.monitor.logging)
77+ }
78+
7279 testImplementation(kotlin(" test" ))
7380 testImplementation(libs.koin.test)
7481 testImplementation(libs.ktor.client.core) {
@@ -95,6 +102,7 @@ compose.desktop {
95102 " -Dapp.name=$appName " ,
96103 " -Dapp.version=$appVersion " ,
97104 " -Dapp.version.full=${appVersion} .${appVersionCode} " ,
105+ " -Dbuild.release=$ciBuild "
98106 )
99107
100108 nativeDistributions {
@@ -161,7 +169,7 @@ compose.desktop {
161169
162170aboutLibraries {
163171 // - If the automatic registered android tasks are disabled, a similar thing can be achieved manually
164- // - `./gradlew :tasks-app-desktop:exportLibraryDefinitions`
172+ // - `./gradlew :tasks-app-desktop:exportLibraryDefinitions -Pci=true `
165173 // - the resulting file can for example be added as part of the SCM
166174 collect {
167175 configPath = file(" $rootDir /license_config" )
0 commit comments