Skip to content

Commit

Permalink
added gradle tasks for publishing qpack to maven
Browse files Browse the repository at this point in the history
  • Loading branch information
ptrd committed Oct 8, 2023
1 parent d8b45cb commit 7d2b230
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Ignore Gradle project-specific cache directory
.gradle
gradle.properties

# Ignore Gradle build output directory
build
Expand Down
65 changes: 65 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
apply plugin: 'signing'

java {
sourceCompatibility = JavaVersion.VERSION_11
Expand Down Expand Up @@ -29,3 +31,66 @@ test {
}
}
}

group = 'net.luminis.networking'
version = '1.0'

java {
withJavadocJar()
withSourcesJar()
}

publishing {
publications {
library(MavenPublication) {
artifactId = 'qpack'
from components.java
pom {
name = 'QPack'
description = 'Java implementation of QPack, the Header Compression for HTTP over QUIC as specified by RFC 9204'
url = 'https://github.com/ptrd/qpack'

licenses {
license {
name = 'GNU Lesser General Public License v3'
url = 'https://www.gnu.org/licenses/lgpl-3.0-standalone.html'
}
}

developers {
developer {
id = 'peterd'
name = 'Peter Doornbosch'
email = '[email protected]'
organization = 'Luminis'
organizationUrl = 'https://www.luminis.eu'
}
}

scm {
connection = 'scm:git:[email protected]:ptrd/qpack.git'
developerConnection = 'scm:git:[email protected]:ptrd/qpack.git'
url = 'https://github.com/ptrd/qpack'
}
}
}
}
repositories {
maven {
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = project.properties.ossrhUsername
password = project.properties.ossrhPassword
}
}
}
}

signing {
sign publishing.publications.library
}

javadoc {
options.addStringOption('Xdoclint:none', '-quiet')
options.addBooleanOption('html5', true)
}

0 comments on commit 7d2b230

Please sign in to comment.