File tree 1 file changed +16
-16
lines changed
file-plugin/src/main/kotlin/com/imf/plugin/so
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> {
70
70
}
71
71
// endregion
72
72
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
+ // }
89
89
// 兜底使用系统环境变量配置的7z命令
90
90
val os = System .getenv(" OS" )?.lowercase()
91
91
if (os != null && os.contains(" windows" )) {
You can’t perform that action at this time.
0 commit comments