Decryption/Encryption PoC code for Tapo C200 media streams
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

33 lines
949 B

import org.gradle.jvm.tasks.Jar
plugins {
java
kotlin("jvm") version "1.4.20"
}
group = "org.example"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib"))
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("com.xenomachina:kotlin-argparser:2.0.7")
implementation("org.fusesource.jansi:jansi:1.17.1")
}
val fatJar = task("fatJar", type = Jar::class) {
baseName = "${project.name}-fat"
// manifest Main-Class attribute is optional.
// (Used only to provide default main class for executable jar)
manifest {
attributes["Implementation-Title"] = "Gradle Jar File for Tapo Decrypt PoC"
attributes["Implementation-Version"] = version
attributes["Main-Class"] = "MainKt"
}
from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
with(tasks["jar"] as CopySpec)
}