diff --git a/build.gradle.kts b/build.gradle.kts index a1282219..962547bf 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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 { kotlinOptions.jvmTarget = "1.8" } -allprojects { - repositories { - mavenCentral() - } +tasks.withType { + archiveVersion.set("") + archiveClassifier.set("") } diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index 249e5832..41d9927a 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 60c76b34..db9a6b82 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -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 \ No newline at end of file +zipStorePath=wrapper/dists