A java library for ALPN (used for HTTP2 negociation).
The maven artifacts are on Bintray and jcenter.
Download the latest jar.
Maven
Include those settings to be able to resolve jcenter artifacts.
<dependency>
<groupId>info.jdavid.alpn</groupId>
<artifactId>alpn-boot</artifactId>
<version>8.212</version>
</dependency>
Gradle
Add jcenter to the list of maven repositories.
repositories {
jcenter()
}
dependencies {
compile 'info.jdavid.alpn:alpn-boot:8.212'
}
You should use the version that matches your jdk version.
dependencies {
compile "info.jdavid.alpn:alpn-boot:${getJDKVersion()}"
}
static def getJDKVersion() {
def v = Runtime.class.getPackage().getImplementationVersion()
return v.replaceFirst('1\\.([78])\\.0_([0-9]+)', '$1.$2')
}
java -Xbootclasspath/p:alpn-boot.jar ...