netty/netty-tcnative-boringssl-static-native/build.gradle

164 lines
5.8 KiB
Groovy
Raw Normal View History

task nettyTcNativeBoringSslStaticLinuxX8664(type: Jar) {
archiveBaseName.set('netty-tcnative-boringssl-static')
archiveClassifier.set('linux-x86_64')
version rootProject.version
2024-01-22 08:39:20 +01:00
//from (sourceSets.main.output) {
from (project.layout.projectDirectory.dir('src/main/resources')) {
include 'META-INF/native/libnetty_tcnative_linux_x86_64.so'
}
}
2024-01-22 08:39:20 +01:00
//assemble.dependsOn(nettyTcNativeBoringSslStaticLinuxX8664)
task nettyTcNativeBoringSslStaticLinuxAarch64(type: Jar) {
archiveBaseName.set('netty-tcnative-boringssl-static')
archiveClassifier.set('linux-aarch_64')
version rootProject.version
2024-01-22 08:39:20 +01:00
//from (sourceSets.main.output) {
from (project.layout.projectDirectory.dir('src/main/resources')) {
include 'META-INF/native/libnetty_tcnative_linux_aarch_64.so'
}
}
2024-01-22 08:39:20 +01:00
//assemble.dependsOn(nettyTcNativeBoringSslStaticLinuxAarch64)
task nettyTcNativeBoringSslStaticOsxX8664(type: Jar) {
archiveBaseName.set('netty-tcnative-boringssl-static')
archiveClassifier.set('osx-x86_64')
version rootProject.version
2024-01-22 08:39:20 +01:00
//from (sourceSets.main.output) {
from (project.layout.projectDirectory.dir('src/main/resources')) {
include 'META-INF/native/libnetty_tcnative_osx_x86_64.jnilib'
}
}
2024-01-22 08:39:20 +01:00
//assemble.dependsOn(nettyTcNativeBoringSslStaticOsxX8664)
task nettyTcNativeBoringSslStaticOsxAarch64(type: Jar) {
archiveBaseName.set('netty-tcnative-boringssl-static')
archiveClassifier.set('osx-aarch_64')
version rootProject.version
2024-01-22 08:39:20 +01:00
//from (sourceSets.main.output) {
from (project.layout.projectDirectory.dir('src/main/resources')) {
include 'META-INF/native/libnetty_tcnative_osx_aarch_64.jnilib'
}
}
2024-01-22 08:39:20 +01:00
//assemble.dependsOn(nettyTcNativeBoringSslStaticOsxAarch64)
task nettyTcNativeBoringSslStaticWindowsX8664(type: Jar) {
archiveBaseName.set('netty-tcnative-boringssl-static')
archiveClassifier.set('windows-x86_64')
version rootProject.version
2024-01-22 08:39:20 +01:00
//from (sourceSets.main.output) {
from (project.layout.projectDirectory.dir('src/main/resources')) {
include 'META-INF/native/libnetty_tcnative_windows_x86_64.dll'
}
}
2024-01-22 08:39:20 +01:00
//assemble.dependsOn(nettyTcNativeBoringSslStaticWindowsX8664)
configurations {
'linux-x86_64' {
canBeConsumed = true
canBeResolved = false
2024-01-22 08:39:20 +01:00
//extendsFrom runtimeOnly
}
'linux-aarch64' {
canBeConsumed = true
canBeResolved = false
2024-01-22 08:39:20 +01:00
//extendsFrom runtimeOnly
}
'osx-x86_64' {
canBeConsumed = true
canBeResolved = false
2024-01-22 08:39:20 +01:00
//extendsFrom runtimeOnly
}
'osx-aarch64' {
canBeConsumed = true
canBeResolved = false
2024-01-22 08:39:20 +01:00
//extendsFrom runtimeOnly
}
'windows-x86_64' {
canBeConsumed = true
canBeResolved = false
2024-01-22 08:39:20 +01:00
//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
}
}
}