Skip to content

update crypto libs and json #130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 24 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
c655963
[#130](https://github.com/hap-java/HAP-Java/pull/130)
gjvanderheiden Dec 23, 2020
1061cbe
#130(https://github.com/hap-java/HAP-Java/pull/130)
gjvanderheiden Dec 23, 2020
6a472be
fix typo in enum value
oli-d Jan 2, 2021
b6290a5
Merge pull request #132 from oli-d/fix_typo_sopped
ccutrer Jan 3, 2021
87bab73
remove optional event parameters. it breaks some accessories in home app
Jan 24, 2021
45d9403
Merge pull request #134 from yfre/remove_event_param
ccutrer Jan 24, 2021
c9e61c7
extend support for min/max/step to further accessories
Feb 2, 2021
b090400
Add initial workflow for CI
andylintner Mar 28, 2021
f0aea59
Setup for release
andylintner Mar 28, 2021
98efd97
Remove old deploy mechanism
andylintner Mar 28, 2021
cd8c793
Remove assembly plugin
andylintner Apr 3, 2021
fc882b9
Publish site on deploy
andylintner Apr 3, 2021
df63574
Merge pull request #140 from andylintner/artifact-upload
andylintner Apr 3, 2021
3c976ab
Fix site-deploy
andylintner Apr 4, 2021
31e5b93
Merge pull request #142 from andylintner/fix-site-deploy
andylintner Apr 4, 2021
e4085bd
Fix for unregistering service when re-advertising
andylintner Apr 4, 2021
c1ceec9
Use the sonatype publisher for snapshots
andylintner Apr 4, 2021
06e0165
Add gpg keyname to signing config
andylintner Apr 4, 2021
dd97a77
Merge pull request #143 from andylintner/unregister-service-fix
andylintner Apr 7, 2021
eefe56a
Merge pull request #136 from yfre/further_min_max_values
andylintner Apr 10, 2021
2837188
[#130](https://github.com/hap-java/HAP-Java/pull/130)
gjvanderheiden Dec 23, 2020
b48151f
#130(https://github.com/hap-java/HAP-Java/pull/130)
gjvanderheiden Dec 23, 2020
6300359
Merge remote-tracking branch 'origin/update_crypto_and_json_lib' into…
gjvanderheiden Apr 15, 2021
e506e2e
It's been a while, version 1.69 is there now
gjvanderheiden Nov 18, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Java CI with Maven and Deploy

on:
push:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11 for Maven Central
uses: actions/setup-java@v1
with:
java-version: '11'
architecture: x64
server-id: ossrh
gpg-private-key: ${{ secrets.GPG_SECRET_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
server-username: MAVEN_USERNAME
server-password: MAVEN_CENTRAL_TOKEN
- name: Setup git profile
run: |
git config --global user.name github-actions
git config --global user.email [email protected]
- name: Publish Snapshot to Maven Central
run: mvn deploy -B -Possrh
env:
MAVEN_USERNAME: hap-java-dev
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
- name: Publish site
run: mvn -B site-deploy -Dusername=github-actions -Dpassword=${{ secrets.GITHUB_TOKEN }}
23 changes: 23 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Java CI with Maven

on:
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: '11'
architecture: x64
- name: Build with Maven
run: mvn -B package --file pom.xml
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven

name: Stage Release on Master Branch

on:
workflow_dispatch:
inputs:
releaseVersion:
description: Version to release
required: true

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: '11'
architecture: x64
server-id: ossrh
gpg-private-key: ${{ secrets.GPG_SECRET_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE
server-username: MAVEN_USERNAME
server-password: MAVEN_CENTRAL_TOKEN
- name: Setup git profile
run: |
git config user.name github-actions
git config user.email [email protected]
- name: Maven release
run: mvn release:prepare release:perform -B -DreleaseVersion=${{ github.event.inputs.releaseVersion }} -Possrh
env:
MAVEN_USERNAME: hap-java-dev
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
* Valid values are supported for enum characteristics instead of min and max values
* Supported valid states for Thermostat, SecuritySystem, HeaterCooler and HumidifierDehumidifier [#108] [#120](https://github.com/hap-java/HAP-Java/pull/120)
* Support for FilterMaintenance. Can be used as a linked service for an Air Purifier [#124](https://github.com/hap-java/HAP-Java/pull/124)
* Update crypto libs [#130](https://github.com/hap-java/HAP-Java/pull/130)

## Fixes

* Fix for re-advertising service when using alternative jMDNS implementations.

# HAP-Java 1.1.5

Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
HAP-Java
=========
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.github.hap-java/hap/badge.svg)](https://search.maven.org/search?q=g:io.github.hap-java%20a:hap)
[![MIT License](https://img.shields.io/github/license/hap-java/HAP-Java)](https://github.com/hap-java/HAP-Java/blob/master/LICENSE)
![Maven Build Status](https://github.com/andylintner/HAP-Java/actions/workflows/maven.yml/badge.svg)

HAP-Java is a Java implementation of the HomeKit Accessory Protocol.

Using this library, you can create your own HomeKit Accessory or HomeKit Accessory Bridge.
Expand All @@ -18,7 +22,8 @@ Include HAP-Java in your project using maven:
</dependency>
```

After that, check out the [Sample](https://github.com/hap-java/HAP-Java/tree/sample).
After that, check out the [Sample](https://github.com/hap-java/HAP-Java/tree/sample) and
read the [Javadoc](https://hap-java.github.io/HAP-Java/apidocs/index.html)

Supported HomeKit Accessories
=========
Expand Down
7 changes: 7 additions & 0 deletions RELEASING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# How to release HAP-Java

These actions can only be performed by someone with maintainer level access to the repository.

1. Run the [Stage Release on Master Branch](https://github.com/hap-java/HAP-Java/actions/workflows/release.yml) Action
2. After this completes, find the release on the [Releases page](https://github.com/hap-java/HAP-Java/releases)
3. Edit the release to include the changelog details
18 changes: 0 additions & 18 deletions deploy/distribution.xml

This file was deleted.

5 changes: 0 additions & 5 deletions deploy/publish.sh

This file was deleted.

Binary file removed deploy/pubring.gpg.enc
Binary file not shown.
Binary file removed deploy/secring.gpg.enc
Binary file not shown.
9 changes: 0 additions & 9 deletions deploy/settings.xml

This file was deleted.

87 changes: 30 additions & 57 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<scm>
<connection>scm:git:https://github.com/hap-java/HAP-Java.git</connection>
<developerConnection>scm:git:git@github.com:hap-java/HAP-Java.git</developerConnection>
<developerConnection>scm:git:https://github.com/hap-java/HAP-Java.git</developerConnection>
<url>https://github.com/hap-java/HAP-Java.git</url>
<tag>HEAD</tag>
</scm>
Expand Down Expand Up @@ -100,37 +100,31 @@
<dependency>
<groupId>com.nimbusds</groupId>
<artifactId>srp6a</artifactId>
<version>1.5.2</version>
<version>2.1.0</version>
</dependency>

<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcprov-jdk15on</artifactId>
<version>1.51</version>
<version>1.69</version>
</dependency>

<dependency>
<groupId>net.vrallev.ecc</groupId>
<artifactId>ecc-25519-java</artifactId>
<version>1.0.1</version>
</dependency>

<dependency>
<groupId>org.zeromq</groupId>
<artifactId>curve25519-java</artifactId>
<version>0.1.0</version>
<version>1.0.3</version>
</dependency>

<dependency>
<groupId>javax.json</groupId>
<artifactId>javax.json-api</artifactId>
<version>1.0</version>
<version>1.1.4</version>
</dependency>

<dependency>
<groupId>org.glassfish</groupId>
<artifactId>javax.json</artifactId>
<version>1.0.4</version>
<version>1.1.4</version>
</dependency>

<dependency>
Expand All @@ -148,8 +142,15 @@

<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.10.19</version>
<artifactId>mockito-core</artifactId>
<version>3.8.0</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>3.19.0</version>
<scope>test</scope>
</dependency>

Expand Down Expand Up @@ -208,28 +209,10 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.1.1</version>
<configuration>
<descriptors>
<descriptor>deploy/distribution.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<id>make-assembly</id> <!-- this is used for inheritance merges -->
<phase>package</phase> <!-- bind to the packaging phase -->
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-publish-plugin</artifactId>
<version>3.0.0</version>
<version>3.1.0</version>
<executions>
<execution>
<id>scm-publish</id>
Expand All @@ -238,7 +221,7 @@
<goal>publish-scm</goal>
</goals>
<configuration>
<pubScmUrl>scm:git:git@github.com:hap-java/HAP-Java.git</pubScmUrl>
<pubScmUrl>scm:git:https://github.com/hap-java/HAP-Java.git</pubScmUrl>
<scmBranch>gh-pages</scmBranch>
</configuration>
</execution>
Expand Down Expand Up @@ -284,11 +267,11 @@
</site>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
</distributionManagement>

Expand All @@ -305,6 +288,8 @@
<version>3.0.1</version>
<configuration>
<excludePackageNames>io.github.hapjava.server.impl</excludePackageNames>
<source>8</source>
<detectJavaApiLink>false</detectJavaApiLink>
</configuration>
<reportSets>
<reportSet>
Expand All @@ -325,20 +310,6 @@
<profiles>
<profile>
<id>ossrh</id>
<properties>
<gpg.executable>gpg</gpg.executable>
<gpg.keyname>${env.GPG_KEYNAME}</gpg.keyname>
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
<gpg.defaultKeyring>false</gpg.defaultKeyring>
<gpg.publicKeyring>deploy/pubring.gpg</gpg.publicKeyring>
<gpg.secretKeyring>deploy/secring.gpg</gpg.secretKeyring>
</properties>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
Expand All @@ -354,6 +325,13 @@
</goals>
</execution>
</executions>
<configuration>
<keyname>HAP-Java</keyname>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
Expand All @@ -362,17 +340,12 @@
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
</plugin>
</plugins>
</build>
</build>
</profile>
</profiles>

Expand Down
Loading