-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added gradle tasks for publishing qpack to maven
- Loading branch information
Showing
2 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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) | ||
} |