File: build.gradle

package info (click to toggle)
byte-buddy 1.14.19-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 17,684 kB
  • sloc: java: 186,543; xml: 7,684; sh: 217; ansic: 101; makefile: 14
file content (18 lines) | stat: -rw-r--r-- 637 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
version = pom.parent.version.toString()

configurations {
    mavenBridge {
        canBeResolved = false
        canBeConsumed = true
        attributes {
            attribute(Usage.USAGE_ATTRIBUTE, objects.named(Usage, 'java-runtime'))
        }
        outgoing.artifact(objects.fileProperty().fileProvider(providers.provider {
            def file = rootProject.file("../byte-buddy/target/byte-buddy-${version}.jar")
            if (!file.exists()) {
                throw new GradleException("Cannot resolve ${version} of byte-buddy artifact what is required for a substitution")
            }
            file
        }))
    }
}