mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-09 18:29:39 +02:00
Bump sop-java to 10.1.0
This commit is contained in:
parent
8854429205
commit
13c3295e64
4 changed files with 2 additions and 20 deletions
|
@ -22,7 +22,7 @@ dependencies {
|
||||||
testImplementation "ch.qos.logback:logback-classic:$logbackVersion"
|
testImplementation "ch.qos.logback:logback-classic:$logbackVersion"
|
||||||
|
|
||||||
// Depend on "shared" sop-java test suite (fixtures are turned into tests by inheritance inside test sources)
|
// Depend on "shared" sop-java test suite (fixtures are turned into tests by inheritance inside test sources)
|
||||||
testImplementation(testFixtures("org.pgpainless:sop-java:$sopJavaVersion"))
|
testImplementation "org.pgpainless:sop-java-testfixtures:$sopJavaVersion"
|
||||||
|
|
||||||
implementation(project(":pgpainless-core"))
|
implementation(project(":pgpainless-core"))
|
||||||
api "org.pgpainless:sop-java:$sopJavaVersion"
|
api "org.pgpainless:sop-java:$sopJavaVersion"
|
||||||
|
|
|
@ -12,7 +12,6 @@ import org.bouncycastle.util.io.Streams
|
||||||
import org.pgpainless.decryption_verification.OpenPgpInputStream
|
import org.pgpainless.decryption_verification.OpenPgpInputStream
|
||||||
import org.pgpainless.util.ArmoredOutputStreamFactory
|
import org.pgpainless.util.ArmoredOutputStreamFactory
|
||||||
import sop.Ready
|
import sop.Ready
|
||||||
import sop.enums.ArmorLabel
|
|
||||||
import sop.exception.SOPGPException
|
import sop.exception.SOPGPException
|
||||||
import sop.operation.Armor
|
import sop.operation.Armor
|
||||||
|
|
||||||
|
@ -46,9 +45,4 @@ class ArmorImpl : Armor {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated("Setting custom labels is not supported.")
|
|
||||||
override fun label(label: ArmorLabel): Armor {
|
|
||||||
throw SOPGPException.UnsupportedOption("Setting custom Armor labels not supported.")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -72,17 +72,5 @@ https://www.bouncycastle.org/java.html"""
|
||||||
?: ""
|
?: ""
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getSopJavaVersion(): String? {
|
|
||||||
return try {
|
|
||||||
val resourceIn: InputStream =
|
|
||||||
javaClass.getResourceAsStream("/sop-java-version.properties")
|
|
||||||
?: throw IOException("File sop-java-version.properties not found.")
|
|
||||||
val properties = Properties().apply { load(resourceIn) }
|
|
||||||
properties.getProperty("sop-java-version")
|
|
||||||
} catch (e: IOException) {
|
|
||||||
null
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun isSopSpecImplementationIncomplete(): Boolean = false
|
override fun isSopSpecImplementationIncomplete(): Boolean = false
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,6 @@ allprojects {
|
||||||
logbackVersion = '1.5.13'
|
logbackVersion = '1.5.13'
|
||||||
mockitoVersion = '4.5.1'
|
mockitoVersion = '4.5.1'
|
||||||
slf4jVersion = '1.7.36'
|
slf4jVersion = '1.7.36'
|
||||||
sopJavaVersion = '10.0.3'
|
sopJavaVersion = '10.1.0'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue