netty/netty-channel-epoll-native/build.gradle

83 lines
3 KiB
Groovy
Raw Normal View History

2024-01-13 11:34:04 +01:00
2024-02-02 22:15:59 +01:00
/* currently we do not build our C code natively, but we provide copies of the binaries in META-INF/native */
apply plugin: 'base'
2024-01-13 11:34:04 +01:00
task nettyEpollLinuxX8664(type: Jar) {
2024-01-22 08:39:20 +01:00
destinationDirectory.set(project.layout.buildDirectory.dir('libs'))
archiveBaseName.set(project.name + '-' + project.version)
archiveExtension.set('jar')
2024-01-13 11:34:04 +01:00
archiveClassifier.set('linux-x86_64')
version rootProject.version
2024-01-22 08:39:20 +01:00
from (project.layout.projectDirectory.dir('src/main/resources')) {
2024-01-13 11:34:04 +01:00
include 'META-INF/native/libnetty_transport_native_epoll_x86_64.so'
}
}
assemble.dependsOn(nettyEpollLinuxX8664)
configurations {
'linux-x86_64' {
canBeConsumed = true
canBeResolved = false
2024-02-02 22:15:59 +01:00
/*attributes {
2024-01-22 08:39:20 +01:00
attribute(Category.CATEGORY_ATTRIBUTE, objects.named(Category, Category.LIBRARY))
attribute(Usage.USAGE_ATTRIBUTE, objects.named(Usage, Usage.JAVA_RUNTIME))
attribute(Bundling.BUNDLING_ATTRIBUTE, objects.named(Bundling, Bundling.EXTERNAL))
attribute(TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE, JavaVersion.current().majorVersion.toInteger())
attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, objects.named(LibraryElements, 'linux-x86_64'))
2024-02-02 22:15:59 +01:00
}*/
2024-01-13 11:34:04 +01:00
}
}
artifacts {
'linux-x86_64'(nettyEpollLinuxX8664)
}
publishing {
publications {
publishNettyEpollLinuxX8664(MavenPublication) {
groupId rootProject.group
artifactId project.name
version rootProject.version
artifact nettyEpollLinuxX8664
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'
}
}
}
}
}
2024-02-02 22:15:59 +01:00
}