Skip to content

Commit

Permalink
Publication of tools.jar
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii0lomakin committed Mar 11, 2024
1 parent 3707d12 commit b2bce69
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
4 changes: 1 addition & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,7 @@ subprojects {
}
}
}
if (this.name == "xodus-tools") {
artifact(tasks.getByName("shadowJar"))
}

}
}
}
Expand Down
9 changes: 4 additions & 5 deletions tools/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@ val testArtifacts: Configuration by configurations.creating

tasks {
shadowJar {
mustRunAfter(jar)
archiveFileName.set(jar.get().archiveFileName)
manifest {
attributes["Main-Class"] = "jetbrains.exodus.MainKt"
}
}


jar {
enabled = false
finalizedBy(shadowJar)
}

val jarTest by creating(Jar::class) {
Expand All @@ -34,8 +37,4 @@ tasks {
add("default", shadowJar)
add("testArtifacts", jarTest)
}

build {
dependsOn(shadowJar)
}
}

0 comments on commit b2bce69

Please sign in to comment.