Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
alwx committed Apr 4, 2023
1 parent afc8ca1 commit aa95efc
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 45 deletions.
3 changes: 2 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import java.util.stream.Collectors
import im.status.DependencyListTask

// Top-level build file where you can add configuration options common to all sub-projects/modules.

Expand Down Expand Up @@ -38,7 +39,7 @@ buildscript {
}

subprojects {
task allDeps(type: DependencyReportTask) {}
task allDeps(type: DependencyListTask) { }

afterEvaluate {
if (project.hasProperty("android")) {
Expand Down
44 changes: 0 additions & 44 deletions android/buildSrc/src/main/java/im/status/DepReport.groovy

This file was deleted.

28 changes: 28 additions & 0 deletions android/buildSrc/src/main/java/im/status/DependencyListTask.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package im.status;

import org.gradle.api.artifacts.ConfigurationContainer;
import org.gradle.api.tasks.diagnostics.AbstractDependencyReportTask;

import org.gradle.api.tasks.TaskAction;
import org.gradle.api.tasks.diagnostics.internal.DependencyReportRenderer;
import org.gradle.api.tasks.diagnostics.internal.ReportRenderer;
import org.gradle.api.tasks.diagnostics.internal.dependencies.AsciiDependencyReportRenderer;

//https://github.com/gradle/gradle/tree/master/subprojects/diagnostics/src/main/java/org/gradle/api/tasks/diagnostics/internal

/**
* Displays the dependency tree for a project. An instance of this type is used when you
* execute the {@code dependencies} task from the command-line.
*/
public abstract class DependencyListTask extends AbstractDependencyReportTask {

@Override
public ConfigurationContainer getTaskConfigurations() {
return getProject().getConfigurations();
}

@TaskAction
void action() {

}
}

0 comments on commit aa95efc

Please sign in to comment.