Skip to content

Commit

Permalink
Try latest 4.x Gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoellnitz committed Mar 21, 2020
1 parent 944f24a commit bb2603e
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion commons.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
*
* Copyright 2011-2019 Martin Goellnitz
* Copyright 2011-2020 Martin Goellnitz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
Expand All @@ -21,6 +21,7 @@ import org.gradle.api.artifacts.ModuleDependency
import org.gradle.api.artifacts.PublishArtifact
import org.gradle.api.internal.artifacts.configurations.DefaultConfiguration
import org.gradle.api.internal.java.JavaLibrary
import org.gradle.api.attributes.AttributeContainer
import org.gradle.api.attributes.Usage
import org.gradle.api.internal.component.UsageContext
import org.gradle.api.internal.component.SoftwareComponentInternal
Expand Down Expand Up @@ -126,6 +127,26 @@ class WrappedRuntimeUsage implements UsageContext {
}


public Set getGlobalExcludes() {
return delegate.globalExcludes
}


public Set getDependencyConstraints() {
return delegate.dependencyConstraints
}


public Set getCapabilities() {
return delegate.apabilities
}


public AttributeContainer getAttributes() {
return delegate.attributes
}


public Set<ModuleDependency> getDependencies() {
Set<ModuleDependency> result = new HashSet<>()
delegate.dependencies.each {
Expand Down

0 comments on commit bb2603e

Please sign in to comment.