Skip to content

Commit

Permalink
Updated gradle to use version catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
manami-project committed May 10, 2024
1 parent 009f9a8 commit 7df472e
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 18 deletions.
33 changes: 15 additions & 18 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,33 +1,30 @@
val junitVersion = "5.10.2"

plugins {
kotlin("jvm") version "1.9.24"
alias(libs.plugins.kotlin.jvm)
`maven-publish`
`java-library`
jacoco
id("com.github.nbaztec.coveralls-jacoco") version "1.2.20"
}

repositories {
mavenCentral()
alias(libs.plugins.coveralls.jacoco)
}

group = "io.github.manamiproject"
version = project.findProperty("release.version") as String? ?: ""

val projectName = "modb-test"
val githubUsername = "manami-project"

repositories {
mavenCentral()
}

dependencies {
api(kotlin("test-junit5"))
api(kotlin("stdlib"))
api("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
api("org.junit.jupiter:junit-jupiter-params:$junitVersion")
api("org.junit.platform:junit-platform-launcher:1.10.2")
api("org.assertj:assertj-core:3.25.3")
api("org.wiremock:wiremock:3.5.4")
api("org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.8.0")

implementation(platform(kotlin("bom")))
api(libs.kotlin.stdlib)
api(libs.kotlin.test.junit5)
api(libs.junit.jupiter.engine)
api(libs.junit.jupiter.params)
api(libs.junit.platform.launcher)
api(libs.assertj.core)
api(libs.wiremock)
api(libs.kotlinx.coroutines.core.jvm)
}

kotlin {
Expand Down
21 changes: 21 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[versions]
assertj-core = "3.25.3"
wiremock = "3.5.4"
junit-jupiter = "5.10.2"
platform-launcher = "1.10.2"
kotlinx-coroutines-core-jvm = "1.8.0"
kotlin = "1.9.23"

[libraries]
assertj-core = { module = "org.assertj:assertj-core", version.ref = "assertj-core" }
wiremock = { module = "org.wiremock:wiremock", version.ref = "wiremock" }
junit-jupiter-engine = { module = "org.junit.jupiter:junit-jupiter-engine", version.ref = "junit-jupiter" }
junit-jupiter-params = { module = "org.junit.jupiter:junit-jupiter-params", version.ref = "junit-jupiter" }
junit-platform-launcher = { module = "org.junit.platform:junit-platform-launcher", version.ref = "platform-launcher" }
kotlinx-coroutines-core-jvm = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm", version.ref = "kotlinx-coroutines-core-jvm" }
kotlin-stdlib = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin" }
kotlin-test-junit5 = { module = "org.jetbrains.kotlin:kotlin-test-junit5", version.ref = "kotlin" }

[plugins]
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version = "1.9.24" }
coveralls-jacoco = { id = "com.github.nbaztec.coveralls-jacoco", version = "1.2.20" }
5 changes: 5 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
plugins {
// Apply the foojay-resolver plugin to allow automatic download of JDKs
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}

rootProject.name = "modb-test"

0 comments on commit 7df472e

Please sign in to comment.