File tree Expand file tree Collapse file tree 6 files changed +12
-113
lines changed
src/main/java/com/acuity/iot/dsa/dslink/sys/cert Expand file tree Collapse file tree 6 files changed +12
-113
lines changed Original file line number Diff line number Diff line change 1- buildscript {
2- repositories {
3- mavenCentral()
4- }
5- dependencies {
6- classpath ' com.adaptc.gradle:nexus-workflow:0.6'
7- }
8- }
9-
101subprojects {
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}
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ repositories {
1515}
1616
1717dependencies {
18- compile project(' :dslink-v2' )
19- compile project(' :dslink-v2-websocket' )
18+ implementation project(' :dslink-v2' )
19+ implementation project(' :dslink-v2-websocket' )
2020}
2121
2222applicationDistribution. from(new File (project. projectDir, " /dslink.json" ))
Original file line number Diff line number Diff line change 1- apply plugin : ' nexus-workflow'
2- apply plugin : ' signing'
3-
41artifacts {
52 archives sourcesJar
63}
74
85dependencies {
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}
Original file line number Diff line number Diff line change 1- apply plugin : ' nexus-workflow'
2- apply plugin : ' signing'
3-
41artifacts {
52 archives sourcesJar
63 archives javadocJar
74}
85
96dependencies {
10- testCompile ' junit:junit:[4.12,)'
7+ testImplementation ' junit:junit:[4.12,)'
118}
129
1310javadoc {
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- }
Original file line number Diff line number Diff line change 55import org .iot .dsa .node .DSInfo ;
66import org .iot .dsa .node .DSNode ;
77import 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
You can’t perform that action at this time.
0 commit comments