@@ -55,7 +55,13 @@ dependencies {
5555 implementation(" com.eclipsesource.j2v8:j2v8_linux_x86_64:4.6.0" )
5656 implementation(" com.eclipsesource.j2v8:j2v8_win32_x86_64:4.6.0" )
5757
58- testImplementation(project.project(" :jadx-core" ).sourceSets.getByName(" test" ).output)
58+ testImplementation(
59+ project
60+ .project(" :jadx-core" )
61+ .sourceSets
62+ .getByName(" test" )
63+ .output,
64+ )
5965}
6066
6167val jadxVersion: String by rootProject.extra
@@ -119,12 +125,14 @@ project.components.withType(AdhocComponentWithVariants::class.java).forEach { c
119125tasks.startShadowScripts {
120126 doLast {
121127 val newWindowsScriptContent =
122- windowsScript.readText()
128+ windowsScript
129+ .readText()
123130 .replace(" java.exe" , " javaw.exe" )
124131 .replace(" \" %JAVA_EXE%\" %DEFAULT_JVM_OPTS%" , " start \" jadx-gui\" /B \" %JAVA_EXE%\" %DEFAULT_JVM_OPTS%" )
125132 // Add launch script path as a property
126133 val newUnixScriptContent =
127- unixScript.readText()
134+ unixScript
135+ .readText()
128136 .replace(
129137 Regex (" DEFAULT_JVM_OPTS=.+" , RegexOption .MULTILINE ),
130138 { result -> result.value + " \" \\\" -Djadx.launchScript.path=\$ (realpath $0)\\\"\" " },
@@ -151,18 +159,24 @@ launch4j {
151159 supportUrl.set(" https://github.com/skylot/jadx" )
152160
153161 bundledJrePath.set(if (project.hasProperty(" bundleJRE" )) " %EXEDIR%/jre" else " %JAVA_HOME%" )
154- classpath.set(tasks.getByName(" shadowJar" ).outputs.files.map { " %EXEDIR%/lib/${it.name} " }.sorted().toList())
162+ classpath.set(
163+ tasks
164+ .getByName(" shadowJar" )
165+ .outputs.files
166+ .map { " %EXEDIR%/lib/${it.name} " }
167+ .sorted()
168+ .toList(),
169+ )
155170 println (" Launch4J classpath: ${classpath.get()} " )
156171
157172 chdir.set(" " ) // don't change current dir
158173 libraryDir.set(" " ) // don't add any libs
159174}
160175
161- fun escapeJVMOptions (): List <String > {
162- return application.applicationDefaultJvmArgs
176+ fun escapeJVMOptions (): List <String > =
177+ application.applicationDefaultJvmArgs
163178 .toList()
164179 .map { if (it.startsWith(" -D" )) " \" $it \" " else it }
165- }
166180
167181runtime {
168182 addOptions(" --strip-debug" , " --no-header-files" , " --no-man-pages" )
0 commit comments