Skip to content

Commit

Permalink
update build.gradle.kts and .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
badrazizi committed Dec 21, 2021
1 parent c2e6340 commit 565398f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Project exclude paths
/.gradle/
/.gradle/
/.idea/
22 changes: 20 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar

plugins {
java
kotlin("jvm") version "1.6.0"
id("com.github.johnrengelman.shadow").version("6.1.0")
}

group = "com.badr.vertx"
Expand All @@ -12,6 +16,20 @@ repositories {

dependencies {
implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.jar"))))
api("io.vertx:vertx-web:4.2.1")
api(kotlin("stdlib"))
compileOnly("io.vertx:vertx-web:4.2.1")
compileOnly(kotlin("stdlib"))
}

val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions.jvmTarget = "11"

val compileTestKotlin: KotlinCompile by tasks
compileTestKotlin.kotlinOptions.jvmTarget = "11"

tasks.withType<ShadowJar> {
archiveClassifier.set("fat")
manifest {
attributes["version"] = project.version
}
archiveFileName.set("Throttling.${archiveExtension.get()}")
}

0 comments on commit 565398f

Please sign in to comment.