Skip to content

Commit

Permalink
#38 Add Content service to Gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
sandjelkovic committed Apr 8, 2019
1 parent c78b7f6 commit 33e4bf8
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ plugins {
ext {
set('springBootAdminVersion', '2.1.3')
set('springCloudVersion', 'Greenwich.SR1')
set('arrowVersion', '0.8.2')
set('mockkVersion', '1.9.1')
set('striktVersion', '0.17.2')
set('kxjtimeVersion', '0.1.0')
set('muLoggingVersion', '1.5.3')
set('assertkVersion', '0.10')
set('mockitoKotlinVersion', '1.5.0')
}

allprojects {
Expand Down
56 changes: 56 additions & 0 deletions content-service/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
plugins {
id 'org.jetbrains.kotlin.plugin.jpa'
id 'org.springframework.boot'
id 'org.jetbrains.kotlin.jvm'
id 'org.jetbrains.kotlin.plugin.spring'
}

dependencies {
implementation( "org.springframework.boot:spring-boot-starter-actuator")
implementation( "org.springframework.boot:spring-boot-starter-data-jpa")
implementation( "org.springframework.boot:spring-boot-starter-hateoas")
implementation( "org.springframework.boot:spring-boot-starter-web")
implementation( "org.jetbrains.kotlin:kotlin-reflect")
implementation( "org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation( "org.springframework.cloud:spring-cloud-starter-config")
implementation( "org.springframework.cloud:spring-cloud-starter-netflix-eureka-client")
implementation( "com.fasterxml.jackson.module:jackson-module-kotlin")
implementation( "io.github.microutils:kotlin-logging:${muLoggingVersion}")
implementation( "com.sandjelkovic.kxjtime:kxjtime:${kxjtimeVersion}")

runtimeOnly 'com.h2database:h2'

implementation("io.arrow-kt:arrow-core:${arrowVersion}")
implementation("io.arrow-kt:arrow-syntax:${arrowVersion}")
implementation("io.arrow-kt:arrow-typeclasses:${arrowVersion}")
implementation("io.arrow-kt:arrow-data:${arrowVersion}")
implementation("io.arrow-kt:arrow-instances-core:${arrowVersion}")
implementation("io.arrow-kt:arrow-instances-data:${arrowVersion}")
implementation("io.arrow-kt:arrow-optics:${arrowVersion}")
implementation("io.arrow-kt:arrow-generic:${arrowVersion}")

// Testing
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.cloud:spring-cloud-starter-contract-stub-runner")
testImplementation("com.willowtreeapps.assertk:assertk:${assertkVersion}")
testImplementation("com.nhaarman:mockito-kotlin:${mockitoKotlinVersion}")
testImplementation("io.mockk:mockk:${mockkVersion}")
testImplementation("io.strikt:strikt-core:${striktVersion}")

// Monitoring
implementation("de.codecentric:spring-boot-admin-starter-client")
}

compileKotlin {
kotlinOptions {
freeCompilerArgs = ['-Xjsr305=strict']
jvmTarget = '1.8'
}
}

compileTestKotlin {
kotlinOptions {
freeCompilerArgs = ['-Xjsr305=strict']
jvmTarget = '1.8'
}
}
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ pluginManagement {
rootProject.name = 'dispatchd'

include 'report-service'
include 'content-service'

0 comments on commit 33e4bf8

Please sign in to comment.