Remove useless stuff
This commit is contained in:
parent
02f90180df
commit
ba83ea36a4
51
build.gradle
51
build.gradle
|
@ -16,6 +16,11 @@ repositories {
|
|||
jcenter()
|
||||
}
|
||||
|
||||
configurations {
|
||||
runtime.exclude group: "org.jetbrains.kotlinx", module: "kotlinx-coroutines-core"
|
||||
runtime.exclude group: "com.sun.mail", module: "javax.mail"
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly group: "dev.afanasev", name: "sekret-annotation", version: "0.0.3"
|
||||
|
||||
|
@ -31,14 +36,14 @@ dependencies {
|
|||
runtimeOnly group: "io.netty", name: "netty-tcnative-boringssl-static", version: "2.0.30.Final"
|
||||
|
||||
implementation group: "ch.qos.logback", name: "logback-classic", version: "1.3.0-alpha4"
|
||||
|
||||
implementation group: "org.jetbrains.exposed", name: "exposed-core", version: "$exposed_version"
|
||||
implementation group: "org.jetbrains.exposed", name: "exposed-dao", version: "$exposed_version"
|
||||
implementation group: "org.jetbrains.exposed", name: "exposed-jdbc", version: "$exposed_version"
|
||||
|
||||
implementation group: "org.xerial", name: "sqlite-jdbc", version: "3.30.1"
|
||||
|
||||
implementation "com.goterl.lazycode:lazysodium-java:4.2.6"
|
||||
implementation "net.java.dev.jna:jna:5.5.0"
|
||||
// implementation "com.goterl.lazycode:lazysodium-java:4.2.6"
|
||||
// implementation "net.java.dev.jna:jna:5.5.0"
|
||||
}
|
||||
|
||||
java {
|
||||
|
@ -65,3 +70,43 @@ spotless {
|
|||
run {
|
||||
args = ["dev/settings.json"]
|
||||
}
|
||||
|
||||
tasks.register("depsize") {
|
||||
description = "Prints dependencies for 'default' configuration"
|
||||
doLast() {
|
||||
listConfigurationDependencies(configurations.default)
|
||||
}
|
||||
}
|
||||
|
||||
tasks.register("depsize-all-configurations") {
|
||||
description = "Prints dependencies for all available configurations"
|
||||
doLast() {
|
||||
configurations.each {
|
||||
if (it.isCanBeResolved()) {
|
||||
listConfigurationDependencies(it)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
def listConfigurationDependencies(Configuration configuration) {
|
||||
def formatStr = "%,10.2f"
|
||||
|
||||
def size = configuration.collect { it.length() / (1024 * 1024) }.sum()
|
||||
|
||||
def out = new StringBuffer()
|
||||
out << "\nConfiguration name: \"${configuration.name}\"\n"
|
||||
if (size) {
|
||||
out << "Total dependencies size:".padRight(65)
|
||||
out << "${String.format(formatStr, size)} Mb\n\n"
|
||||
|
||||
configuration.sort { -it.length() }
|
||||
.each {
|
||||
out << "${it.name}".padRight(65)
|
||||
out << "${String.format(formatStr, (it.length() / 1024))} kb\n"
|
||||
}
|
||||
} else {
|
||||
out << "No dependencies found";
|
||||
}
|
||||
println(out)
|
||||
}
|
Loading…
Reference in a new issue