add constraint for jnr-posix dependency (#3789)

* require 3.1.15 of jnr-posix

* cover more bases with epl license

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>

Co-authored-by: Stefan Pingel <16143240+pinges@users.noreply.github.com>
This commit is contained in:
Sally MacFarlane
2022-05-06 13:58:44 +10:00
committed by GitHub
parent 57c71fdb10
commit baed1ef02c
4 changed files with 23 additions and 0 deletions

View File

@@ -75,6 +75,12 @@ dependencies {
testImplementation 'org.testcontainers:testcontainers'
testImplementation 'org.web3j:abi'
testImplementation 'org.web3j:besu'
testImplementation 'org.web3j:core'
constraints {
implementation('jnr-posix:3.1.15') {
because '3.0.47 from web3j has issues'
}
}
testRuntimeOnly 'org.junit.vintage:junit-vintage-engine'
}

View File

@@ -97,6 +97,14 @@ dependencies {
testImplementation 'org.mockito:mockito-core'
testImplementation 'org.testcontainers:testcontainers'
testImplementation 'tech.pegasys.discovery:discovery'
constraints {
implementation('com.github.jnr:jnr-posix') {
version {
require '3.1.15'
}
because '3.0.47 from web3j has issues'
}
}
testRuntimeOnly 'org.junit.vintage:junit-vintage-engine'
}

View File

@@ -59,6 +59,14 @@ dependencies {
annotationProcessor "org.immutables:value"
implementation "org.immutables:value-annotations"
implementation 'tech.pegasys.discovery:discovery'
constraints {
implementation('com.github.jnr:jnr-posix') {
version {
require '3.1.15'
}
because '3.0.47 from web3j has issues'
}
}
// test dependencies.
testImplementation project(path: ':ethereum:core', configuration: 'testArtifacts')

View File

@@ -168,6 +168,7 @@ downloadLicenses {
// jnr-posix is released under a tri EPL v2.0/GPL/LGPL license
'com.github.jnr:jnr-posix:3.0.47' : epl2,
'com.github.jnr:jnr-posix:3.1.15' : epl2,
// io.netty:netty-tcnative-boringssl-static license markings are not machine readable.
// io.netty:netty-tcnative-classes license markings are not machine readable.