Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
* <p>
* How to use in ApplicationInsights Configuration :
* <p>
* <TelemetryProcessors>
* {@code
<TelemetryProcessors>
<BuiltInProcessors>
<Processor type = "FixedRateSamplingTelemetryProcessor">
<Add name = "SamplingPercentage" value = "50" />
Expand All @@ -35,6 +36,7 @@
</Processor>
</BuiltInProcessors>
</TelemetryProcessors>
}
*/
@BuiltInProcessor("FixedRateSamplingTelemetryProcessor")
public final class FixedRateSamplingTelemetryProcessor implements TelemetryProcessor {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import java.util.List;

/**
* This is the class for binding the xml array list of <ExcludedTypes>
* This is the class for binding the xml array list of {@code <ExcludedTypes>}
*/

@XmlRootElement(name = "ExcludedTypes")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import java.util.List;

/**
* This class is used to bind the xml array list of <IncludeTypes>
* This class is used to bind the xml array list of {@code <IncludeTypes>}
*/

@XmlRootElement(name = "IncludedTypes")
Expand Down
40 changes: 39 additions & 1 deletion gradle/publishing.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,37 @@ dependencies {

afterEvaluate {
assert (!projectPomName.isEmpty() && !projectPomDescription.isEmpty())
pom {
project {
name = projectPomName
description = projectPomDescription
url = "https://github.com/Microsoft/ApplicationInsights-Java"

licenses {
license {
name = "MIT License"
url = "http://www.opensource.org/licenses/mit-license.php"
}
}

scm {
url = "scm:git:https://github.com/Microsoft/ApplicationInsights-Java"
connection = "scm:git:git://github.com/Microsoft/ApplicationInsights-Java.git"
}

developers {
developer {
id = "microsoft"
name = "Microsoft"
}
}
}

scopeMappings.addMapping(MavenPlugin.PROVIDED_COMPILE_PRIORITY, configurations.getByName("provided"), Conf2ScopeMappingContainer.PROVIDED)

whenConfigured whenPomConfigured
}.writeTo("pom.xml")

uploadArchives {
ext.requriedProperties = ["mavenRepositoryUrl", "mavenUsername", "mavenUserPassword"]
if (requiredPropertiesExist(requriedProperties)) {
Expand All @@ -74,10 +105,17 @@ afterEvaluate {
updatePomWithGeneralProjectInformation(pom)
}
}
} else {
logger.warn "Missing required properties for maven publish"
}
}
}

javadoc {
source = sourceSets.main.allJava
classpath = configurations.compile + configurations.provided
}

task prepareSourcesArchive(type: Jar) {
classifier = 'sources'
from sourceSets.main.allJava
Expand Down Expand Up @@ -110,7 +148,7 @@ task prepare {

// region Public methods
ext {
updatePomWithGeneralProjectInformation = this.&updatePomWithGeneralProjectInformation
//updatePomWithGeneralProjectInformation = this.&updatePomWithGeneralProjectInformation
writePomToArtifactsDirectory = this.&writePomToArtifactsDirectory
getArtifactsDirectory = this.&getArtifactsDirectory
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public interface AppProfileFetcher {
* @param instrumentationKey The instrumentation key for which to fetch the appId.
* @throws ExecutionException
* @throws InterruptedException
* @throws JSONException
* @throws IOException
* @throws ParseException
*/
Expand Down