Skip to content

Commit

Permalink
Set up shadow jar generation
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgio committed Aug 17, 2024
1 parent f6e990d commit 69d002d
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 6 deletions.
34 changes: 30 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,23 +1,49 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
kotlin("jvm") version "1.8.21"
id("org.jlleitschuh.gradle.ktlint") version "12.1.0"
id("com.gradleup.shadow") version "8.3.0"
}

group = "eu.iamgio.quarkdown"
version = "1.0-SNAPSHOT"

allprojects {
repositories {
mavenCentral()
}
}

dependencies {
subprojects.forEach {
implementation(it)
}
}

tasks.build {
dependsOn("shadowJar")
}

tasks.jar {
enabled = false // The jar is generated by shadowJar
}

tasks.test {
useJUnitPlatform()
}

tasks.wrapper {
gradleVersion = "8.3"
distributionType = Wrapper.DistributionType.ALL
}

tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}

allprojects {
repositories {
mavenCentral()
}
tasks.withType<ShadowJar> {
archiveVersion.set("")
archiveClassifier.set("")
}
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
zipStorePath=wrapper/dists

0 comments on commit 69d002d

Please sign in to comment.