Browse Source

Write information about deps in plugins.

Write the build environment to a list section of the plugin
meta-data. This should make it easier to figure out what
on earth is going on when everything breaks.

Change-Id: I317cd6795e81d56930b21b8d9beeabc28a0b775e
Reviewed-on: http://gerrit.dmdirc.com/4010
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
changes/10/4010/2
Chris Smith 9 years ago
parent
commit
58056e716d
1 changed files with 10 additions and 1 deletions
  1. 10
    1
      build.gradle

+ 10
- 1
build.gradle View File

@@ -72,7 +72,16 @@ subprojects {
72 72
 
73 73
         ext.version = jgit.getDescription()
74 74
         def targetFile = new File("$buildDir", 'plugin.config')
75
-        targetFile << "\n\nversion:\n  number=${version}\n"
75
+        targetFile << "\n\nversion:\n  number=${version}"
76
+
77
+        targetFile << "\n\nbuildenv:\n"
78
+        def compileConfiguration = project.configurations.getByName("compile")
79
+        def resolvedConfiguration = compileConfiguration.resolvedConfiguration
80
+        def resolvedArtifacts = resolvedConfiguration.resolvedArtifacts
81
+        resolvedArtifacts.each { dp ->
82
+            def version = dp.getModuleVersion().getId()
83
+            targetFile << "  " + version.group + " " + version.name + " " + version.version + "\n"
84
+        }
76 85
     }
77 86
 
78 87
     pmd {

Loading…
Cancel
Save