File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -49,11 +49,19 @@ configurations.implementation.transitive = false
49
49
def bouncycastleVersion = " 1.80"
50
50
def sshdVersion = " 2.14.0"
51
51
52
+ java {
53
+ withJavadocJar()
54
+ withSourcesJar()
55
+ registerFeature(' bouncyCastle' ) {
56
+ usingSourceSet(sourceSets. main)
57
+ }
58
+ }
59
+
52
60
dependencies {
53
61
implementation " org.slf4j:slf4j-api:2.0.16"
54
- implementation " org.bouncycastle:bcprov-jdk18on:$bouncycastleVersion "
55
- implementation " org.bouncycastle:bcpkix-jdk18on:$bouncycastleVersion "
56
62
implementation " com.hierynomus:asn-one:0.6.0"
63
+ bouncyCastleImplementation " org.bouncycastle:bcprov-jdk18on:$bouncycastleVersion "
64
+ bouncyCastleImplementation " org.bouncycastle:bcpkix-jdk18on:$bouncycastleVersion "
57
65
}
58
66
59
67
license {
@@ -68,11 +76,6 @@ license {
68
76
])
69
77
}
70
78
71
- java {
72
- withJavadocJar()
73
- withSourcesJar()
74
- }
75
-
76
79
if (! JavaVersion . current(). isJava9Compatible()) {
77
80
throw new GradleScriptException (" Minimum compilation version is Java 9" )
78
81
}
@@ -99,6 +102,8 @@ testing {
99
102
implementation " org.apache.sshd:sshd-scp:$sshdVersion "
100
103
implementation " ch.qos.logback:logback-classic:1.3.15"
101
104
implementation ' org.glassfish.grizzly:grizzly-http-server:3.0.1'
105
+ implementation " org.bouncycastle:bcprov-jdk18on:$bouncycastleVersion "
106
+ implementation " org.bouncycastle:bcpkix-jdk18on:$bouncycastleVersion "
102
107
}
103
108
104
109
targets {
You can’t perform that action at this time.
0 commit comments