Skip to content

Commit

Permalink
fix(build): signArchives and shadowJar
Browse files Browse the repository at this point in the history
  • Loading branch information
Cubxity committed Apr 23, 2023
1 parent 8788f04 commit 99ac6ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build.gradle.kts
Expand Up @@ -15,6 +15,7 @@
* along with UnifiedMetrics. If not, see <https://www.gnu.org/licenses/>.
*/

import org.jetbrains.kotlin.gradle.dsl.KotlinJvmProjectExtension
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
Expand Down Expand Up @@ -43,10 +44,12 @@ subprojects {

tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = listOf("-opt-in=kotlin.RequiresOptIn")
}
}
configure<KotlinJvmProjectExtension> {
jvmToolchain(8)
}
configure<JavaPluginExtension> {
targetCompatibility = JavaVersion.VERSION_1_8
}
Expand All @@ -69,6 +72,7 @@ subprojects {
afterEvaluate {
tasks.findByName("shadowJar")?.also {
tasks.named("assemble") { dependsOn(it) }
tasks.named("signArchives") { dependsOn(it) }
}
configure<SigningExtension> {
sign(configurations["archives"])
Expand Down

0 comments on commit 99ac6ab

Please sign in to comment.