Skip to content

Commit

Permalink
Add Scala/Gradle starter
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-brm committed Nov 13, 2023
1 parent 2c3e3e4 commit c068a5c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/main/resources/templates/build.gradle.kts.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
<#if language == "kotlin">
kotlin ("jvm") version "1.7.21"
<#elseif language == "scala">
scala
<#else>
java
</#if>
Expand Down Expand Up @@ -54,11 +56,18 @@ dependencies {
</#list>
<#if language == "kotlin">
implementation(kotlin("stdlib-jdk8"))
<#elseif language == "scala">
implementation("org.scala-lang:scala3-library_3:3.3.1")
implementation("io.vertx:vertx-lang-scala3:${vertxVersion}")
</#if>
<#if hasPgClient>
implementation("com.ongres.scram:client:2.1")
</#if>
<#if hasVertxJUnit5>
<#if language == "scala">
testImplementation("io.vertx:vertx-lang-scala3-test:${vertxVersion}")
testImplementation("org.scalatest:scalatest_3:3.2.17")
testRuntimeOnly("org.scalatestplus:junit-5-10_3:3.2.17.0")
<#elseif hasVertxJUnit5>
testImplementation("io.vertx:vertx-junit5")
testImplementation("org.junit.jupiter:junit-jupiter:$junitJupiterVersion")
<#elseif hasVertxUnit>
Expand Down

0 comments on commit c068a5c

Please sign in to comment.