|
|
@ -55,11 +55,14 @@ subprojects { |
|
|
|
// exclude group: "org.slf4j", module: "slf4j-jdk14" |
|
|
|
exclude group: "org.slf4j", module: "slf4j-nop" |
|
|
|
|
|
|
|
if(PlatformDependencyVersions!=null && PlatformDependencyVersions.size()>0) { |
|
|
|
resolutionStrategy.eachDependency { DependencyResolveDetails detail -> |
|
|
|
def requested = detail.requested; |
|
|
|
def groupAndName = requested.group + ":" + requested.name; |
|
|
|
if(PlatformDependencyVersions[groupAndName]!=null){ |
|
|
|
detail.useVersion(PlatformDependencyVersions[groupAndName]); |
|
|
|
String version = PlatformDependencyVersions[groupAndName]; |
|
|
|
if (version != null) { |
|
|
|
detail.useVersion(version); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -694,6 +697,24 @@ subprojects { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 对每个前端项目在 idea 中排除 node_modules 目录, 避免大量耗时的 idea 索引 |
|
|
|
idea { |
|
|
|
module { |
|
|
|
excludeDirs += file('node_modules') |
|
|
|
excludeDirs += file('dist') |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
clean { |
|
|
|
doFirst{ |
|
|
|
if(isFrontendProject(file('.'))) { |
|
|
|
delete 'dist' |
|
|
|
delete 'node_modules' |
|
|
|
delete 'pnpm-lock.yaml' |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/*********************************************************************** |
|
|
|