|
|
@ -1,3 +1,5 @@ |
|
|
|
import org.gradle.api.artifacts.DependencyResolveDetails |
|
|
|
|
|
|
|
apply from: "build-version.gradle" |
|
|
|
|
|
|
|
def isFrontendProject(currentDir){ |
|
|
@ -52,6 +54,14 @@ subprojects { |
|
|
|
// exclude group: "org.apache.logging.log4j", module: "log4j-to-slf4j" |
|
|
|
// exclude group: "org.slf4j", module: "slf4j-jdk14" |
|
|
|
exclude group: "org.slf4j", module: "slf4j-nop" |
|
|
|
|
|
|
|
resolutionStrategy.eachDependency { DependencyResolveDetails detail -> |
|
|
|
def requested =detail.requested; |
|
|
|
def groupAndName =requested.group + ":" + requested.name; |
|
|
|
if(PlatformDependencyVersions[groupAndName]!=null){ |
|
|
|
detail.useVersion(PlatformDependencyVersions[groupAndName]); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
dependencyManagement { |
|
|
@ -672,7 +682,16 @@ subprojects { |
|
|
|
|
|
|
|
processResources { |
|
|
|
if(isFrontendProject(file('.'))) { |
|
|
|
exclude("**/${project.name}/*.*") |
|
|
|
exclude("**/${project.name}/*.*"); |
|
|
|
if(project.name!='io.sc.platform.mvc.frontend' && project.name!='io.sc.platform.security.frontend'){ |
|
|
|
// exclude("**/${project.name}/javascript/codemirror.*"); |
|
|
|
// exclude("**/${project.name}/javascript/echarts.*"); |
|
|
|
// exclude("**/${project.name}/javascript/platform-core.*"); |
|
|
|
// exclude("**/${project.name}/javascript/quasar.*"); |
|
|
|
// exclude("**/${project.name}/javascript/vue.*"); |
|
|
|
// exclude("**/${project.name}/fonts/*.*"); |
|
|
|
// exclude("**/${project.name}/webjars/**/*.*"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|