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.15.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.17"
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
}
@@ -98,6 +101,8 @@ testing {
98
101
implementation " org.apache.sshd:sshd-sftp:$sshdVersion "
99
102
implementation " org.apache.sshd:sshd-scp:$sshdVersion "
100
103
implementation " ch.qos.logback:logback-classic:1.5.18"
104
+ implementation " org.bouncycastle:bcprov-jdk18on:$bouncycastleVersion "
105
+ implementation " org.bouncycastle:bcpkix-jdk18on:$bouncycastleVersion "
101
106
}
102
107
103
108
targets {
You can’t perform that action at this time.
0 commit comments