From e699075097fe83d69496be1c19ba5a3e7f69c524 Mon Sep 17 00:00:00 2001 From: Michael Yan Date: Thu, 20 Jul 2023 23:21:03 +0800 Subject: [PATCH] Gradle Build: cleanup --- gradle/assemble.gradle | 42 ------------------------------------------ 1 file changed, 42 deletions(-) diff --git a/gradle/assemble.gradle b/gradle/assemble.gradle index 2e37d3d82e..c0c3e9619b 100644 --- a/gradle/assemble.gradle +++ b/gradle/assemble.gradle @@ -21,41 +21,6 @@ subprojects { subproject -> } } -task checkDuplicateDependencies(description: 'Checks the dependency graph for multiple versions of the same dependency', - dependsOn: libsConfigurations) { - doLast { -/* - def moduleToVersionsMap = [:] - libsConfigurations.each { configuration -> - configuration.resolvedConfiguration.resolvedArtifacts.each { artifact -> - def dependency = artifact.resolvedDependency - - def key = "${dependency.moduleGroup}/${dependency.moduleName}".toString() - def value = dependency.moduleVersion - - def versions = moduleToVersionsMap[key] - if (!versions) { - versions = [] as Set - moduleToVersionsMap[key] = versions - } - versions << value - } - } - def dups = moduleToVersionsMap.findAll { k, v -> - v.size() > 1 - } - if (dups) { - def msg = 'Multiple versions of some dependencies have been identified in the dependency graph' - println msg - dups.each { k, v -> - println "Dependency: ${k}, Versions: $v" - } - throw new GradleException(msg) - } -*/ - } -} - task configurePopulateDependencies { ext { baseCachesDir = "$gradle.gradleUserHomeDir/caches" @@ -186,8 +151,6 @@ task install(dependsOn: [populateDependencies, grailsCreateStartScripts]) { task } } } -//task install(dependsOn: [populateDependencies, grailsCreateStartScripts] + subprojects.findAll { !it.name.startsWith('grails-test-suite') } -// *.collect { Project p -> p.tasks.withType(PublishToMavenLocal)}) task zipDist(type: Zip, dependsOn: [sourcesJars, install]) { destinationDirectory = "${buildDir}/distributions" as File @@ -214,11 +177,6 @@ task zipDist(type: Zip, dependsOn: [sourcesJars, install]) { } } -/*task zipDoc(type: Zip) { - appendix = 'docs' - from docs.destinationDir -}*/ - task assemble(dependsOn: zipDist) task publishToGrailsLocal { task ->