@@ -124,17 +124,13 @@ dependencies {
124124 implementation(libs.kaml)
125125 implementation(libs.markdown)
126126 implementation(libs.markdownJVM)
127+ implementation(gradleApi())
128+ implementation(libs.clikt)
127129
128130 testImplementation(kotlin(" test" ))
129131 testImplementation(libs.mockitoKotlin)
130132 testImplementation(libs.junitJupiter)
131133 testImplementation(libs.junitJupiterParams)
132-
133- implementation(gradleApi())
134- @OptIn(ExperimentalComposeLibrary ::class )
135- testImplementation(compose.uiTest)
136-
137- implementation(libs.clikt)
138134}
139135
140136tasks.test {
@@ -416,23 +412,6 @@ tasks.register<Copy>("includeJavaModeResources") {
416412 from(java.layout.buildDirectory.dir(" resources-bundled" ))
417413 into(composeResources(" ../" ))
418414}
419- // TODO: Move to java mode
420- tasks.register<Copy >(" renameWindres" ) {
421- dependsOn(" includeSharedAssets" ," includeJavaModeResources" )
422- val dir = composeResources(" modes/java/application/launch4j/bin/" )
423- val os = DefaultNativePlatform .getCurrentOperatingSystem()
424- val platform = when {
425- os.isWindows -> " windows"
426- os.isMacOsX -> " macos"
427- else -> " linux"
428- }
429- from(dir) {
430- include(" *-$platform *" )
431- rename(" (.*)-$platform (.*)" , " $1$2" )
432- }
433- duplicatesStrategy = DuplicatesStrategy .INCLUDE
434- into(dir)
435- }
436415tasks.register(" includeProcessingResources" ){
437416 dependsOn(
438417 " includeJdk" ,
@@ -548,7 +527,7 @@ tasks.register("setExecutablePermissions") {
548527afterEvaluate {
549528 tasks.named(" prepareAppResources" ).configure {
550529 dependsOn(" includeProcessingResources" )
551- // Make sure all libraries are bundled
530+ // Make sure all libraries are bundled in the maven repository distributed with the app
552531 dependsOn(listOf (" core" ," java:preprocessor" , " java:gradle" ).map { project(" :$it " ).tasks.named(" publishAllPublicationsToAppRepository" ) })
553532 }
554533 tasks.named(" createDistributable" ).configure {
0 commit comments