Skip to content

Commit 557ca96

Browse files
authored
0.29.0 (#50)
Jitpack Gradle Update 128 bit password use in cert manager.
1 parent a1e1ea6 commit 557ca96

File tree

6 files changed

+12
-113
lines changed

6 files changed

+12
-113
lines changed

build.gradle

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,17 @@
1-
buildscript {
2-
repositories {
3-
mavenCentral()
4-
}
5-
dependencies {
6-
classpath 'com.adaptc.gradle:nexus-workflow:0.6'
7-
}
8-
}
9-
101
subprojects {
112

123
apply plugin: 'java'
134
apply plugin: 'maven'
145

156
group 'org.iot-dsa'
16-
version '0.28.0'
7+
version '0.29.0'
178

189
sourceCompatibility = 1.6
1910
targetCompatibility = 1.6
2011

2112
repositories {
2213
mavenLocal()
2314
mavenCentral()
24-
maven {
25-
url 'https://oss.sonatype.org/content/repositories/snapshots/'
26-
}
2715
}
2816

2917
task sourcesJar(group: 'build', type: Jar, dependsOn: classes) {
@@ -35,5 +23,8 @@ subprojects {
3523
classifier = 'javadoc'
3624
from javadoc.destinationDir
3725
}
26+
}
3827

28+
task wrapper(type: Wrapper) {
29+
gradleVersion = '4.8.1'
3930
}

dslink-v2-poc/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ repositories {
1515
}
1616

1717
dependencies {
18-
compile project(':dslink-v2')
19-
compile project(':dslink-v2-websocket')
18+
implementation project(':dslink-v2')
19+
implementation project(':dslink-v2-websocket')
2020
}
2121

2222
applicationDistribution.from(new File(project.projectDir, "/dslink.json"))

dslink-v2-websocket/build.gradle

Lines changed: 2 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,8 @@
1-
apply plugin: 'nexus-workflow'
2-
apply plugin: 'signing'
3-
41
artifacts {
52
archives sourcesJar
63
}
74

85
dependencies {
9-
compile project(':dslink-v2')
10-
compile 'org.glassfish.tyrus.bundles:tyrus-standalone-client:[1.13.1,)'
11-
}
12-
13-
signing {
14-
required { gradle.taskGraph.hasTask("uploadArchives") }
15-
sign configurations.archives
16-
}
17-
18-
uploadArchives {
19-
repositories {
20-
mavenDeployer {
21-
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
22-
23-
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2") {
24-
authentication(userName: ossrhUsername, password: ossrhPassword)
25-
}
26-
27-
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots") {
28-
authentication(userName: ossrhUsername, password: ossrhPassword)
29-
}
30-
31-
pom.project {
32-
name = 'V2 DSLink SDK Websockets'
33-
artifactId = 'dslink-v2-websocket'
34-
description = 'Default Implementation of Websockets for V2 DSLink SDK'
35-
36-
packaging = 'jar'
37-
url = 'http://iot-dsa.org'
38-
39-
scm {
40-
connection = 'scm:git:https://github.com/iot-dsa-v2/sdk-dslink-java-v2.git'
41-
developerConnection = 'scm:git:git@github.com:iot-dsa-v2/sdk-dslink-java-v2.git'
42-
url = 'https://github.com/iot-dsa-v2/sdk-dslink-java-v2'
43-
}
44-
45-
licenses {
46-
license {
47-
name = 'The Apache License, Version 2.0'
48-
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
49-
}
50-
}
51-
}
52-
}
53-
}
6+
implementation project(':dslink-v2')
7+
implementation 'org.glassfish.tyrus.bundles:tyrus-standalone-client:[1.13.1,)'
548
}

dslink-v2/build.gradle

Lines changed: 1 addition & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,12 @@
1-
apply plugin: 'nexus-workflow'
2-
apply plugin: 'signing'
3-
41
artifacts {
52
archives sourcesJar
63
archives javadocJar
74
}
85

96
dependencies {
10-
testCompile 'junit:junit:[4.12,)'
7+
testImplementation 'junit:junit:[4.12,)'
118
}
129

1310
javadoc {
1411
exclude("**/com/**")
1512
}
16-
17-
signing {
18-
required { gradle.taskGraph.hasTask("uploadArchives") }
19-
sign configurations.archives
20-
}
21-
22-
uploadArchives {
23-
repositories {
24-
mavenDeployer {
25-
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
26-
27-
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2") {
28-
authentication(userName: ossrhUsername, password: ossrhPassword)
29-
}
30-
31-
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots") {
32-
authentication(userName: ossrhUsername, password: ossrhPassword)
33-
}
34-
35-
pom.project {
36-
name = 'V2 DSLink SDK'
37-
artifactId = 'dslink-v2'
38-
description = 'V2 DSLink SDK for IoT DSA'
39-
40-
packaging = 'jar'
41-
url = 'http://iot-dsa.org'
42-
43-
scm {
44-
connection = 'scm:git:https://github.com/iot-dsa-v2/sdk-dslink-java-v2.git'
45-
developerConnection = 'scm:git:git@github.com:iot-dsa-v2/sdk-dslink-java-v2.git'
46-
url = 'https://github.com/iot-dsa-v2/sdk-dslink-java-v2'
47-
}
48-
49-
licenses {
50-
license {
51-
name = 'The Apache License, Version 2.0'
52-
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
53-
}
54-
}
55-
}
56-
}
57-
}
58-
}

dslink-v2/src/main/java/com/acuity/iot/dsa/dslink/sys/cert/SysCertManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import org.iot.dsa.node.DSInfo;
66
import org.iot.dsa.node.DSNode;
77
import org.iot.dsa.node.DSString;
8-
import org.iot.dsa.security.DSPasswordAes256;
8+
import org.iot.dsa.security.DSPasswordAes128;
99

1010
/**
1111
* Certificate management for the whole process. This is basically a stub for future
@@ -57,11 +57,11 @@ public void declareDefaults() {
5757
declareDefault(ALLOW_SERVERS, DSBool.TRUE);
5858
declareDefault(CERTFILE, DSString.valueOf("dslink.jks"));
5959
declareDefault(CERTFILE_TYPE, DSString.valueOf("JKS"));
60-
declareDefault(CERTFILE_PASS, DSPasswordAes256.valueOf("dsarocks"));
60+
declareDefault(CERTFILE_PASS, DSPasswordAes128.valueOf("dsarocks"));
6161
}
6262

6363
private String getCertFilePass() {
64-
DSPasswordAes256 pass = (DSPasswordAes256) keystorePass.getObject();
64+
DSPasswordAes128 pass = (DSPasswordAes128) keystorePass.getObject();
6565
return pass.decode();
6666
}
6767

gradle/wrapper/gradle-wrapper.jar

88 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)