File tree Expand file tree Collapse file tree 1 file changed +16
-16
lines changed
file-plugin/src/main/kotlin/com/imf/plugin/so Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -70,22 +70,22 @@ abstract class SoFilePlugin : Plugin<Project> {
7070 }
7171 // endregion
7272
73- val dep = project.dependencies.add(
74- p7zConfig.name, mapOf<String , String >(
75- " group" to " com.mainlxl.tools" ,
76- " name" to " p7z" ,
77- " classifier" to osdetector.classifier,
78- " version" to " 1.0.1" ,
79- " ext" to " exe"
80- )
81- )
82- runCatching {
83- val file = p7zConfig.fileCollection(dep).singleFile
84- if (! file.canExecute() && ! file.setExecutable(true )) {
85- throw GradleException (" Cannot set ${file} as executable" )
86- }
87- return file.absolutePath
88- }
73+ // val dep = project.dependencies.add(
74+ // p7zConfig.name, mapOf<String, String>(
75+ // "group" to "com.mainlxl.tools",
76+ // "name" to "p7z",
77+ // "classifier" to osdetector.classifier,
78+ // "version" to "1.0.1",
79+ // "ext" to "exe"
80+ // )
81+ // )
82+ // runCatching {
83+ // val file = p7zConfig.fileCollection(dep).singleFile
84+ // if (!file.canExecute() && !file.setExecutable(true)) {
85+ // throw GradleException("Cannot set ${file} as executable")
86+ // }
87+ // return file.absolutePath
88+ // }
8989 // 兜底使用系统环境变量配置的7z命令
9090 val os = System .getenv(" OS" )?.lowercase()
9191 if (os != null && os.contains(" windows" )) {
You can’t perform that action at this time.
0 commit comments