publishing multi-release-jar
This commit is contained in:
@@ -1,14 +1,10 @@
|
||||
plugins {
|
||||
id("org.jetbrains.kotlin.jvm") version "1.3.70"
|
||||
id("org.jetbrains.kotlin.jvm") version "1.4.10"
|
||||
application
|
||||
}
|
||||
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
|
||||
group = "net.woggioni"
|
||||
version = "0.1"
|
||||
|
||||
fun property(name : String) = project.property(name).toString()
|
||||
|
||||
dependencies {
|
||||
@@ -34,16 +30,19 @@ application {
|
||||
|
||||
|
||||
tasks.withType<Test> {
|
||||
useJUnitPlatform {
|
||||
}
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
tasks.withType<KotlinCompile>().configureEach {
|
||||
kotlinOptions {
|
||||
languageVersion = "1.3"
|
||||
apiVersion = "1.3"
|
||||
languageVersion = "1.4"
|
||||
apiVersion = "1.4"
|
||||
jvmTarget = "1.8"
|
||||
javaParameters = true // Useful for reflection.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1,22 +0,0 @@
|
||||
import net.woggioni.jzstd.ZstdOutputStream
|
||||
import org.junit.jupiter.api.Test
|
||||
import java.nio.file.Files
|
||||
import java.nio.file.Paths
|
||||
|
||||
class InsaneTest {
|
||||
|
||||
@Test
|
||||
fun test2() {
|
||||
val inputFile = Paths.get("/tmp/Richard_Dawkins_The_Selfish_Gene.pdf")
|
||||
Files.newInputStream(inputFile).use { `is` ->
|
||||
ZstdOutputStream.from(Files.newOutputStream(Paths.get("/tmp/Richard_Dawkins_The_Selfish_Gene.pdf.zst"))).use { os ->
|
||||
val buffer = ByteArray(0x10000)
|
||||
while (true) {
|
||||
val read = `is`.read(buffer)
|
||||
if (read < 0) break
|
||||
os.write(buffer, 0, read)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user