Skip to content

Commit

Permalink
Gradle Build: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rainboyan committed Jul 20, 2023
1 parent 9876a23 commit e699075
Showing 1 changed file with 0 additions and 42 deletions.
42 changes: 0 additions & 42 deletions gradle/assemble.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand All @@ -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 ->
Expand Down

0 comments on commit e699075

Please sign in to comment.