diff --git a/agent/build.gradle b/agent/build.gradle index 4a4d38bd9c..eddcaf00c1 100644 --- a/agent/build.gradle +++ b/agent/build.gradle @@ -24,6 +24,7 @@ plugins { } apply from: "$buildScriptsDir/common-java.gradle" +apply from: "$buildScriptsDir/publishing.gradle" shadowJar { classifier = '' @@ -57,3 +58,10 @@ dependencies { testCompile group: 'junit', name: 'junit', version: '4.12' } +projectPomName = project.msftAppInsights + " Java Agent" +projectPomDescription = "This module provides automatic instrumentation for $project.msftAppInsightsJavaSdk" + +whenPomConfigured = { p -> + p.dependencies = [] +} + diff --git a/collectd/build.gradle b/collectd/build.gradle index ccdcb12a73..a18d91109f 100644 --- a/collectd/build.gradle +++ b/collectd/build.gradle @@ -24,6 +24,7 @@ plugins { } apply from: "$buildScriptsDir/common-java.gradle" +apply from: "$buildScriptsDir/publishing.gradle" // Since we're building the shadow jar, we have no use in the jar contains only CollectD code. jar { @@ -52,3 +53,9 @@ dependencies { testCompile files(collectDLibPath) } +projectPomName = project.msftAppInsights + " Java CollectD Plugin" +projectPomDescription = "This module is the collectd plugin for $project.msftAppInsightsJavaSdk" + +whenPomConfigured = { p -> + p.dependencies = [] +}