Skip to content

Commit 6fa2341

Browse files
authored
0.28.0 (#49)
Path concat fix. Fix NPE in DSLink.shutdown(). Set up push and release to maven central Make gradlew runnable. Add gradle.properties with defaults for ossrhUsername and ossrhPassword AES 256 SHA 256 Lenient salt update Fix lenient handling of salt. Fix leading byte in binary output debugging. AES128 & SHA-1 Fix subscription responder. Repo changes.
1 parent 852777d commit 6fa2341

File tree

241 files changed

+1068
-501
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

241 files changed

+1068
-501
lines changed

.gitignore

+20-17
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,34 @@
11
# Tooling
2-
**/.classpath
3-
**/.idea
4-
**/.metadata
5-
**/.project
6-
**/.settings
7-
**/eclipseBin
2+
**.classpath
3+
**.idea
4+
**.metadata
5+
**.project
6+
**.settings
7+
**eclipseBin
88

99
# Build artifacts
1010
**.class
1111
**.iml
12+
**build
13+
**classes
14+
**libJar
15+
**out
16+
**target
1217
**/.gradle
13-
**/build
14-
**/out
15-
**/libJar
16-
**/target
18+
**javadoc
19+
**repository
1720

1821
# Misc
1922
**.bak
2023
**.old
2124
**.log
22-
**/.DS_Store
25+
**.DS_Store
2326

2427
# Runtime files
25-
**/dslink.jks
26-
**/.key
27-
**/db
28-
**/nodes.json
29-
**/nodes*.zip
30-
**/test.json
28+
**.jks
29+
**.key
30+
**db
31+
**nodes.json
32+
**nodes*.zip
33+
**test.json
3134
**/*.log.*.zip

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ the DSA architecture, please visit
1515

1616
## Sub Projects
1717

18-
- **/dslink-core** - The APIs used to build new links.
19-
- **/dslink-java-v2-poc** - For proof of concept and testing.
20-
- **/dslink-websocket-standalone** - Used by links that run in their own process, rather
18+
- **/dslink-v2** - The APIs used to build new links.
19+
- **/dslink-v2-poc** - For proof of concept and testing.
20+
- **/dslink-v2-websocket** - Used by links that run in their own process, rather
2121
than in an environment which provides another websocket implementation.
2222

2323
## Link Development

build.gradle

+20-35
Original file line numberDiff line numberDiff line change
@@ -7,48 +7,33 @@ buildscript {
77
}
88
}
99

10-
apply plugin: 'nexus-workflow'
11-
apply plugin: 'java'
12-
apply plugin: 'maven'
13-
apply plugin: 'signing'
10+
subprojects {
1411

15-
group 'org.iot-dsa'
16-
version '0.27.0'
12+
apply plugin: 'java'
13+
apply plugin: 'maven'
1714

18-
sourceCompatibility = 1.6
19-
targetCompatibility = 1.6
15+
group 'org.iot-dsa'
16+
version '0.28.0'
2017

21-
install {
22-
repositories.mavenInstaller {
23-
pom.project {
24-
artifactId 'dslink-v2'
18+
sourceCompatibility = 1.6
19+
targetCompatibility = 1.6
20+
21+
repositories {
22+
mavenLocal()
23+
mavenCentral()
24+
maven {
25+
url 'https://oss.sonatype.org/content/repositories/snapshots/'
2526
}
2627
}
27-
}
2828

29-
repositories {
30-
mavenLocal()
31-
mavenCentral()
32-
maven {
33-
url 'https://oss.sonatype.org/content/repositories/snapshots/'
29+
task sourcesJar(group: 'build', type: Jar, dependsOn: classes) {
30+
classifier = 'sources'
31+
from sourceSets.main.allJava
3432
}
35-
}
3633

37-
dependencies {
38-
testCompile 'junit:junit:[4.12,)'
39-
}
40-
41-
task sourcesJar(group: 'build', type: Jar, dependsOn: classes) {
42-
classifier = 'sources'
43-
from sourceSets.main.allJava
44-
}
45-
46-
task javadocJar(type: Jar, dependsOn: javadoc) {
47-
classifier = 'javadoc'
48-
from javadoc.destinationDir
49-
}
34+
task javadocJar(type: Jar, dependsOn: javadoc) {
35+
classifier = 'javadoc'
36+
from javadoc.destinationDir
37+
}
5038

51-
artifacts {
52-
archives sourcesJar
53-
archives javadocJar
5439
}
File renamed without changes.

dslink-java-v2-poc/build.gradle renamed to dslink-v2-poc/build.gradle

+3-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply plugin: 'application'
33

44
sourceCompatibility = 1.6
55
targetCompatibility = 1.6
6-
group 'org.iot.dsa'
6+
group 'org.iot-dsa'
77
mainClassName = 'org.iot.dsa.dslink.DSLink'
88

99
applicationDefaultJvmArgs = [
@@ -12,15 +12,11 @@ applicationDefaultJvmArgs = [
1212
repositories {
1313
mavenLocal()
1414
mavenCentral()
15-
maven {
16-
url 'https://oss.sonatype.org/content/repositories/snapshots/'
17-
}
1815
}
1916

2017
dependencies {
21-
compile project(':dslink-core')
22-
compile project(':dslink-websocket-standalone')
23-
testCompile 'junit:junit:+'
18+
compile project(':dslink-v2')
19+
compile project(':dslink-v2-websocket')
2420
}
2521

2622
applicationDistribution.from(new File(project.projectDir, "/dslink.json"))
File renamed without changes.

dslink-websocket-standalone/build.gradle renamed to dslink-v2-websocket/build.gradle

+11-14
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
apply from: '../build.gradle'
1+
apply plugin: 'nexus-workflow'
2+
apply plugin: 'signing'
3+
4+
artifacts {
5+
archives sourcesJar
6+
}
27

38
dependencies {
4-
compile project(':dslink-core')
5-
compile 'org.glassfish.tyrus.bundles:tyrus-standalone-client:[1.12,)'
9+
compile project(':dslink-v2')
10+
compile 'org.glassfish.tyrus.bundles:tyrus-standalone-client:[1.13.1,)'
611
}
712

813
signing {
@@ -24,9 +29,9 @@ uploadArchives {
2429
}
2530

2631
pom.project {
27-
name = 'DSLink SDK V2 Websocket Implementation'
28-
artifactId = 'dslink-websocket-standalone-v2'
29-
description = 'V2 Implementation of Websockets for IoT DSA protocol'
32+
name = 'V2 DSLink SDK Websockets'
33+
artifactId = 'dslink-v2-websocket'
34+
description = 'Default Implementation of Websockets for V2 DSLink SDK'
3035

3136
packaging = 'jar'
3237
url = 'http://iot-dsa.org'
@@ -43,14 +48,6 @@ uploadArchives {
4348
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
4449
}
4550
}
46-
47-
developers {
48-
developer {
49-
id = 'samrg472'
50-
name = 'Samuel Grenier'
51-
52-
}
53-
}
5451
}
5552
}
5653
}

dslink-core/build.gradle renamed to dslink-v2/build.gradle

+14-12
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
apply from: '../build.gradle'
1+
apply plugin: 'nexus-workflow'
2+
apply plugin: 'signing'
3+
4+
artifacts {
5+
archives sourcesJar
6+
archives javadocJar
7+
}
8+
9+
dependencies {
10+
testCompile 'junit:junit:[4.12,)'
11+
}
212

313
javadoc {
414
exclude("**/com/**")
@@ -23,9 +33,9 @@ uploadArchives {
2333
}
2434

2535
pom.project {
26-
name = 'DSLink SDK V2'
27-
artifactId = 'dslink-core-v2'
28-
description = 'V2 Java SDK for the IoT DSA protocol'
36+
name = 'V2 DSLink SDK'
37+
artifactId = 'dslink-v2'
38+
description = 'V2 DSLink SDK for IoT DSA'
2939

3040
packaging = 'jar'
3141
url = 'http://iot-dsa.org'
@@ -42,14 +52,6 @@ uploadArchives {
4252
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
4353
}
4454
}
45-
46-
developers {
47-
developer {
48-
id = 'samrg472'
49-
name = 'Samuel Grenier'
50-
51-
}
52-
}
5355
}
5456
}
5557
}

0 commit comments

Comments
 (0)