Skip to content

Commit 1a9910c

Browse files
committed
added some explanation to gradle setup: instrumentedJars
1 parent 8778ec9 commit 1a9910c

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

build.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,9 @@ allprojects {
224224
logger.warn("Could not set buildConfig on :${this.name}")
225225
}
226226

227+
// Adds the instrumentedJars configuration/artifact to all sub-projects with a `jar` task
228+
// This allows other modules to depend on the output of this task, aka the compiled jar of that module
229+
// Used in :plugins:dataframe-gradle-plugin integration tests and in :samples for compiler plugin support
227230
try {
228231
val instrumentedJars: Configuration by configurations.creating {
229232
isCanBeConsumed = true

samples/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ tasks.withType<KotlinCompile> {
5252
}
5353
}
5454

55+
// get the output of the instrumentedJars configuration, aka the jar-files of the compiled modules
56+
// all modules with jar-task have this artifact in the DataFrame project
5557
val dependentProjectJarPaths = dependentProjects.map {
5658
it.configurations
5759
.getByName("instrumentedJars")

0 commit comments

Comments
 (0)