Skip to content
Open
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
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ distributions/
labkey-api-*/
labkey-ui-components/
remoteapi/
server/modules/
server/modules/
server/testAutomation/
tools/
clientAPIs/*
Expand Down Expand Up @@ -47,7 +47,9 @@ clientAPIs/*
.idea/runConfigurations/LabKey_Dev.xml
.idea/runConfigurations/LabKey_Production.xml
.idea/runConfigurations/LabKeyEmbedded_Dev.xml
.idea/runConfigurations/LabKeyEmbedded_Dev_JaCoCo.xml
.idea/runConfigurations/Spring_Boot_LabKey_Embedded_Tomcat_Dev.xml
.idea/runConfigurations/Spring_Boot_LabKey_Embedded_Tomcat_Dev__JaCoCo_.xml
.idea/gradle.xml
.idea/compiler.xml
.idea/misc.xml
Expand Down
15 changes: 15 additions & 0 deletions .idea/runConfigurations/templates/LabKeyEmbedded_Dev_JaCoCo.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 18 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ subprojects {
}
})
}

project.tasks.register("allDepInsight", DependencyInsightReportTask) {
DependencyInsightReportTask t ->
t.group = "Help"
Expand Down Expand Up @@ -610,6 +610,23 @@ project.tasks.register("ijRunConfigurationsSetup", Copy) {
return line.replace("PATH_SEPARATOR", File.pathSeparator)
})
copy.mustRunAfter(project.tasks.ijCodeSetup)
copy.dependsOn("ijJacocoAgent")
}

project.configurations.register("jacocoAgent") {
description = "JaCoCo agent used by the \"(JaCoCo)\" IntelliJ run configuration"
canBeConsumed = false
transitive = false
}
project.dependencies.add("jacocoAgent", "org.jacoco:org.jacoco.agent:${jacocoVersion}:runtime")

project.tasks.register("ijJacocoAgent", Copy) {
Copy copy ->
copy.group = GroupNames.INIT
copy.description = "Copy the JaCoCo agent to build/jacoco/jacocoagent.jar for the \"(JaCoCo)\" run configuration; rerun after a root clean"
copy.from(project.configurations.named("jacocoAgent"))
copy.into(project.layout.buildDirectory.dir("jacoco"))
copy.rename({ String name -> "jacocoagent.jar" })
}

project.tasks.register("ijCodeSetup", Copy) {
Expand Down
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ jacksonAnnotationsVersion=2.21
# Spring Boot brings in a transitive dependency on Jackson 3.x. It has changed package names and can coexist with Jackson 2.x.
jackson3Version=3.1.8

# Agent for the "(JaCoCo)" IntelliJ run configuration; see the ijJacocoAgent task
jacocoVersion=0.8.15

# The Jakarta Activation API version that Angus Activation implements. Keep in sync with angusActivationVersion (above).
jakartaActivationApiVersion=2.1.4

Expand Down