Skip to content

Commit

Permalink
Improve assemble task and remove deprecation warnings
Browse files Browse the repository at this point in the history
Closes gh-887
  • Loading branch information
rainboyan committed Jan 6, 2025
1 parent 93483de commit af3b721
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 366 deletions.
350 changes: 0 additions & 350 deletions buildSrc/src/main/groovy/JavadocFixTool.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.artifacts.Configuration
import org.gradle.api.artifacts.Dependency
import org.gradle.api.artifacts.ExternalDependency
import org.gradle.api.artifacts.ResolvedDependency
import org.gradle.api.attributes.Usage
import org.gradle.api.internal.artifacts.dependencies.DefaultExternalModuleDependency
import org.gradle.api.specs.Spec

class GrailsBuildPlugin implements Plugin<Project> {

Expand All @@ -31,7 +29,7 @@ class GrailsBuildPlugin implements Plugin<Project> {
}

def addChildren
addChildren = { Collection deps, Set allDeps = new LinkedHashSet() ->
addChildren = { Collection deps, Set allDeps ->
deps.each { ResolvedDependency resolvedDependency ->
def notSeenBefore = allDeps.add(resolvedDependency)
if (notSeenBefore) { // defend against circular dependencies
Expand All @@ -43,7 +41,7 @@ class GrailsBuildPlugin implements Plugin<Project> {

def dependencies = new LinkedHashSet()
for (configuration in configurations) {
addChildren(configuration.resolvedConfiguration.getFirstLevelModuleDependencies({ it instanceof ExternalDependency } as Spec), dependencies)
addChildren(configuration.resolvedConfiguration.getFirstLevelModuleDependencies(), dependencies)
}

def sourceDependencies = dependencies.collect { ResolvedDependency resolvedDependency ->
Expand Down
Loading

0 comments on commit af3b721

Please sign in to comment.