change BrotliOptions to not leaking brotli4j classes
parent
5e8af038c8
commit
49b6c772a5
@ -1,15 +1,8 @@
|
||||
dependencies {
|
||||
api project(':netty-handler-codec-http')
|
||||
implementation libs.brotli4j // accessing com.aayushatharva.brotli4j.encoder.Encoder
|
||||
testImplementation testLibs.gson
|
||||
testImplementation testLibs.assertj
|
||||
testImplementation testLibs.mockito.core
|
||||
testRuntimeOnly(variantOf(testLibs.netty.tcnative.boringssl.static) {
|
||||
classifier('linux-x86_64')
|
||||
})
|
||||
testRuntimeOnly testLibs.brotli4j.native.linux.x8664
|
||||
testRuntimeOnly testLibs.brotli4j.native.linux.aarch64
|
||||
testRuntimeOnly testLibs.brotli4j.native.osx.x8664
|
||||
testRuntimeOnly testLibs.brotli4j.native.osx.aarch64
|
||||
testRuntimeOnly testLibs.brotli4j.native.windows.x8664
|
||||
testRuntimeOnly project(path: ':netty-tcnative-boringssl-static', configuration: osdetector.classifier)
|
||||
testRuntimeOnly libs.brotli4j.native."${osdetector.os}"."${osdetector.arch.replace('_','')}"
|
||||
}
|
||||
|
@ -0,0 +1,70 @@
|
||||
|
||||
task nettyQuicLinuxX8664(type: Jar) {
|
||||
archiveBaseName.set('netty-handler-codec-quic-native')
|
||||
archiveClassifier.set('linux-x86_64')
|
||||
version rootProject.version
|
||||
from (sourceSets.main.output) {
|
||||
include 'META-INF/native/libnetty_quiche_linux_x86_64.so'
|
||||
}
|
||||
}
|
||||
assemble.dependsOn(nettyQuicLinuxX8664)
|
||||
|
||||
configurations {
|
||||
'linux-x86_64' {
|
||||
canBeConsumed = true
|
||||
canBeResolved = false
|
||||
extendsFrom runtimeOnly
|
||||
}
|
||||
}
|
||||
|
||||
artifacts {
|
||||
'linux-x86_64'(nettyQuicLinuxX8664)
|
||||
}
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
publishNettyQuicLinuxX8664(MavenPublication) {
|
||||
groupId rootProject.group
|
||||
artifactId project.name
|
||||
version rootProject.version
|
||||
artifact nettyQuicLinuxX8664
|
||||
pom {
|
||||
artifactId = project.name
|
||||
name = project.name
|
||||
version = project.version
|
||||
description = rootProject.ext.description
|
||||
url = rootProject.ext.url
|
||||
inceptionYear = rootProject.ext.inceptionYear
|
||||
packaging = 'jar'
|
||||
organization {
|
||||
name = rootProject.ext.organizationName
|
||||
url = rootProject.ext.organizationUrl
|
||||
}
|
||||
developers {
|
||||
developer {
|
||||
id = 'jprante'
|
||||
name = 'Jörg Prante'
|
||||
email = 'joergprante@gmail.com'
|
||||
url = 'https://xbib.org/joerg'
|
||||
}
|
||||
}
|
||||
scm {
|
||||
url = rootProject.ext.scmUrl
|
||||
connection = rootProject.ext.scmConnection
|
||||
developerConnection = rootProject.ext.scmDeveloperConnection
|
||||
}
|
||||
issueManagement {
|
||||
system = rootProject.ext.issueManagementSystem
|
||||
url = rootProject.ext.issueManagementUrl
|
||||
}
|
||||
licenses {
|
||||
license {
|
||||
name = rootProject.ext.licenseName
|
||||
url = rootProject.ext.licenseUrl
|
||||
distribution = 'repo'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,158 @@
|
||||
|
||||
task nettyTcNativeBoringSslStaticLinuxX8664(type: Jar) {
|
||||
archiveBaseName.set('netty-tcnative-boringssl-static')
|
||||
archiveClassifier.set('linux-x86_64')
|
||||
version rootProject.version
|
||||
from (sourceSets.main.output) {
|
||||
include 'META-INF/native/libnetty_tcnative_linux_x86_64.so'
|
||||
}
|
||||
}
|
||||
assemble.dependsOn(nettyTcNativeBoringSslStaticLinuxX8664)
|
||||
|
||||
task nettyTcNativeBoringSslStaticLinuxAarch64(type: Jar) {
|
||||
archiveBaseName.set('netty-tcnative-boringssl-static')
|
||||
archiveClassifier.set('linux-aarch_64')
|
||||
version rootProject.version
|
||||
from (sourceSets.main.output) {
|
||||
include 'META-INF/native/libnetty_tcnative_linux_aarch_64.so'
|
||||
}
|
||||
}
|
||||
assemble.dependsOn(nettyTcNativeBoringSslStaticLinuxAarch64)
|
||||
|
||||
task nettyTcNativeBoringSslStaticOsxX8664(type: Jar) {
|
||||
archiveBaseName.set('netty-tcnative-boringssl-static')
|
||||
archiveClassifier.set('osx-x86_64')
|
||||
version rootProject.version
|
||||
from (sourceSets.main.output) {
|
||||
include 'META-INF/native/libnetty_tcnative_osx_x86_64.jnilib'
|
||||
}
|
||||
}
|
||||
assemble.dependsOn(nettyTcNativeBoringSslStaticOsxX8664)
|
||||
|
||||
task nettyTcNativeBoringSslStaticOsxAarch64(type: Jar) {
|
||||
archiveBaseName.set('netty-tcnative-boringssl-static')
|
||||
archiveClassifier.set('osx-aarch_64')
|
||||
version rootProject.version
|
||||
from (sourceSets.main.output) {
|
||||
include 'META-INF/native/libnetty_tcnative_osx_aarch_64.jnilib'
|
||||
}
|
||||
}
|
||||
assemble.dependsOn(nettyTcNativeBoringSslStaticOsxAarch64)
|
||||
|
||||
task nettyTcNativeBoringSslStaticWindowsX8664(type: Jar) {
|
||||
archiveBaseName.set('netty-tcnative-boringssl-static')
|
||||
archiveClassifier.set('windows-x86_64')
|
||||
version rootProject.version
|
||||
from (sourceSets.main.output) {
|
||||
include 'META-INF/native/libnetty_tcnative_windows_x86_64.dll'
|
||||
}
|
||||
}
|
||||
assemble.dependsOn(nettyTcNativeBoringSslStaticWindowsX8664)
|
||||
|
||||
configurations {
|
||||
'linux-x86_64' {
|
||||
canBeConsumed = true
|
||||
canBeResolved = false
|
||||
extendsFrom runtimeOnly
|
||||
}
|
||||
'linux-aarch64' {
|
||||
canBeConsumed = true
|
||||
canBeResolved = false
|
||||
extendsFrom runtimeOnly
|
||||
}
|
||||
'osx-x86_64' {
|
||||
canBeConsumed = true
|
||||
canBeResolved = false
|
||||
extendsFrom runtimeOnly
|
||||
}
|
||||
'osx-aarch64' {
|
||||
canBeConsumed = true
|
||||
canBeResolved = false
|
||||
extendsFrom runtimeOnly
|
||||
}
|
||||
'windows-x86_64' {
|
||||
canBeConsumed = true
|
||||
canBeResolved = false
|
||||
extendsFrom runtimeOnly
|
||||
}
|
||||
}
|
||||
|
||||
artifacts {
|
||||
'linux-x86_64'(nettyTcNativeBoringSslStaticLinuxX8664)
|
||||
'linux-aarch64'(nettyTcNativeBoringSslStaticLinuxAarch64)
|
||||
'osx-x86_64'(nettyTcNativeBoringSslStaticOsxX8664)
|
||||
'osx-aarch64'(nettyTcNativeBoringSslStaticOsxAarch64)
|
||||
'windows-x86_64'(nettyTcNativeBoringSslStaticWindowsX8664)
|
||||
}
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
publishNettyTcNaticeBoringSslStaticLinuxX8664(MavenPublication) {
|
||||
groupId rootProject.group
|
||||
artifactId project.name
|
||||
version rootProject.version
|
||||
artifact nettyTcNativeBoringSslStaticLinuxX8664
|
||||
pom {
|
||||
artifactId = project.name
|
||||
name = project.name
|
||||
version = project.version
|
||||
description = rootProject.ext.description
|
||||
url = rootProject.ext.url
|
||||
inceptionYear = rootProject.ext.inceptionYear
|
||||
packaging = 'jar'
|
||||
organization {
|
||||
name = rootProject.ext.organizationName
|
||||
url = rootProject.ext.organizationUrl
|
||||
}
|
||||
developers {
|
||||
developer {
|
||||
id = 'jprante'
|
||||
name = 'Jörg Prante'
|
||||
email = 'joergprante@gmail.com'
|
||||
url = 'https://xbib.org/joerg'
|
||||
}
|
||||
}
|
||||
scm {
|
||||
url = rootProject.ext.scmUrl
|
||||
connection = rootProject.ext.scmConnection
|
||||
developerConnection = rootProject.ext.scmDeveloperConnection
|
||||
}
|
||||
issueManagement {
|
||||
system = rootProject.ext.issueManagementSystem
|
||||
url = rootProject.ext.issueManagementUrl
|
||||
}
|
||||
licenses {
|
||||
license {
|
||||
name = rootProject.ext.licenseName
|
||||
url = rootProject.ext.licenseUrl
|
||||
distribution = 'repo'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
publishNettyTcNativeBoringSslStaticLinuxAarch64(MavenPublication) {
|
||||
groupId rootProject.group
|
||||
artifactId project.name
|
||||
version rootProject.version
|
||||
artifact nettyTcNativeBoringSslStaticLinuxAarch64
|
||||
}
|
||||
publishNettyTcNaticeBoringSslStaticOsxX8664(MavenPublication) {
|
||||
groupId rootProject.group
|
||||
artifactId project.name
|
||||
version rootProject.version
|
||||
artifact nettyTcNativeBoringSslStaticOsxX8664
|
||||
}
|
||||
publishNettyTcNativeBoringSslStaticOsxAarch64(MavenPublication) {
|
||||
groupId rootProject.group
|
||||
artifactId project.name
|
||||
version rootProject.version
|
||||
artifact nettyTcNativeBoringSslStaticOsxAarch64
|
||||
}
|
||||
publishNettyTcNaticeBoringSslStaticWindowsX8664(MavenPublication) {
|
||||
groupId rootProject.group
|
||||
artifactId project.name
|
||||
version rootProject.version
|
||||
artifact nettyTcNativeBoringSslStaticWindowsX8664
|
||||
}
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue