Added task to list deps.

master
Tomasz Półgrabia 2025-01-20 22:53:37 +01:00
parent dd3408f122
commit b6e29e5f09
1 changed files with 24 additions and 0 deletions

View File

@ -7,6 +7,10 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'ch.qos.logback:logback-classic:1.5.16'
}
idea {
module {
downloadJavadoc = true
@ -22,3 +26,23 @@ tasks.register('runApp', JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = "pl.polgrabia.demos.kotlin.ProgramKt"
}
tasks.register('fetchSources') {
/**
def classpath = sourceSets.main.runtimeClasspath
classpath.each {
println it.class
}
**/
project.configurations.implementation.allDependencies.each { dep ->
// println("${dep.group}:${dep.name}:${dep.version}")
dep.class.methods.each {
println(it)
}
// TODO implement fetching it from repositories
}
}