diff --git a/2025/01/kotlin_demo1/build.gradle b/2025/01/kotlin_demo1/build.gradle index 3831f25..a89cee2 100644 --- a/2025/01/kotlin_demo1/build.gradle +++ b/2025/01/kotlin_demo1/build.gradle @@ -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 + } + +}