Skip to content

Commit

Permalink
Switch from Groovy to Kotlin DSL for gradle build files
Browse files Browse the repository at this point in the history
  • Loading branch information
czarnecki committed Aug 30, 2023
1 parent 9a3c6c1 commit b205eb1
Show file tree
Hide file tree
Showing 26 changed files with 292 additions and 299 deletions.
19 changes: 0 additions & 19 deletions budgeteer-app/build.gradle

This file was deleted.

19 changes: 19 additions & 0 deletions budgeteer-app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
plugins {
id("de.adesso.budgeteer.spring-conventions")
}

repositories {
mavenCentral()
}

dependencies {
implementation(project(":budgeteer-common"))
implementation(project(":budgeteer-core"))
implementation(project(":budgeteer-rest"))
implementation(project(":budgeteer-web-interface"))

implementation("org.springframework.boot:spring-boot-starter")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")

testImplementation("org.springframework.boot:spring-boot-starter-test")
}
7 changes: 0 additions & 7 deletions budgeteer-common/build.gradle

This file was deleted.

7 changes: 7 additions & 0 deletions budgeteer-common/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
plugins {
id("de.adesso.budgeteer.java-conventions")
}

dependencies {
implementation("org.joda:joda-money:${project.properties["joda_money_version"]}")
}
26 changes: 0 additions & 26 deletions budgeteer-core/build.gradle

This file was deleted.

28 changes: 28 additions & 0 deletions budgeteer-core/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
plugins {
id("de.adesso.budgeteer.spring-conventions")
}

dependencies {
implementation(project(":budgeteer-common"))

implementation("org.springframework.boot:spring-boot-starter")
implementation("org.springframework.boot:spring-boot-starter-mail")
implementation("commons-codec:commons-codec:${project.properties["commons_codec_version"]}")
implementation("org.joda:joda-money:${project.properties["joda_money_version"]}")

testImplementation("org.springframework.boot:spring-boot-starter-test")
}

tasks {
bootRun {
enabled = false
}

bootJar {
enabled = false
}

jar {
enabled = true
}
}
8 changes: 0 additions & 8 deletions budgeteer-importer-api/build.gradle

This file was deleted.

8 changes: 8 additions & 0 deletions budgeteer-importer-api/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
plugins {
id ("de.adesso.budgeteer.java-conventions")
}

dependencies {
implementation("org.joda:joda-money:${project.properties["joda_money_version"]}")
implementation("org.apache.poi:poi-ooxml:${project.properties["poi_version"]}")
}
40 changes: 0 additions & 40 deletions budgeteer-persistence/build.gradle

This file was deleted.

36 changes: 36 additions & 0 deletions budgeteer-persistence/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
plugins {
id("de.adesso.budgeteer.spring-conventions")
}

dependencies {
implementation(project(":budgeteer-common"))
implementation(project(":budgeteer-core"))

implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-validation")
implementation("commons-codec:commons-codec:${project.properties["commons_codec_version"]}")
implementation("org.apache.poi:poi-ooxml:5.2.0")
implementation("org.apache.commons:commons-lang3:3.12.0")
implementation("org.joda:joda-money:${project.properties["joda_money_version"]}")

runtimeOnly("org.hsqldb:hsqldb:${project.properties["hsqldb_version"]}")
runtimeOnly("org.postgresql:postgresql:${project.properties["postgresql_version"]}")

testImplementation("com.github.springtestdbunit:spring-test-dbunit:${project.properties["spring_dbunit_version"]}")
testImplementation("org.dbunit:dbunit:${project.properties["dbunit_version"]}")
testImplementation("org.springframework.boot:spring-boot-starter-test")
}

tasks {
bootRun {
enabled = false
}

bootJar {
enabled = false
}

jar {
enabled = true
}
}
13 changes: 0 additions & 13 deletions budgeteer-report-exporter/build.gradle

This file was deleted.

13 changes: 13 additions & 0 deletions budgeteer-report-exporter/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
plugins {
id("de.adesso.budgeteer.java-conventions")
}

dependencies {
implementation("com.google.guava:guava:23.0")
implementation("org.apache.poi:poi:${project.properties["poi_version"]}")
implementation("org.apache.poi:poi-ooxml:${project.properties["poi_version"]}")
testImplementation("org.junit.jupiter:junit-jupiter-api:${project.properties["junit5_version"]}")
testImplementation("org.mockito:mockito-core:${project.properties["mockito_version"]}")
testImplementation("org.assertj:assertj-core:${project.properties["assertj_version"]}")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${project.properties["junit5_version"]}")
}
32 changes: 0 additions & 32 deletions budgeteer-rest/build.gradle

This file was deleted.

33 changes: 33 additions & 0 deletions budgeteer-rest/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
plugins {
id("de.adesso.budgeteer.spring-conventions")
}

dependencies {
implementation(project(":budgeteer-common"))
implementation(project(":budgeteer-core"))

implementation("org.springframework.boot:spring-boot-starter-security")
implementation("org.springframework.boot:spring-boot-starter-validation")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-aop")
implementation("org.joda:joda-money:${project.properties["joda_money_version"]}")
implementation("io.jsonwebtoken:jjwt:0.9.1")

testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.security:spring-security-test")

annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
}
tasks {
bootRun {
enabled = false
}

bootJar {
enabled = false
}

jar {
enabled = true
}
}
67 changes: 0 additions & 67 deletions budgeteer-web-interface/build.gradle

This file was deleted.

Loading

0 comments on commit b205eb1

Please sign in to comment.