Skip to content

Commit

Permalink
Move to version toml
Browse files Browse the repository at this point in the history
  • Loading branch information
stashymane committed Feb 11, 2024
1 parent c6d2533 commit e5249cf
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 23 deletions.
25 changes: 3 additions & 22 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ plugins {
`java-library`
`maven-publish`
signing
id("io.github.gradle-nexus.publish-plugin") version "1.0.0"
kotlin("jvm") version "1.8.0"
jacoco
alias(libs.plugins.nexusPublish)
alias(libs.plugins.kotlin.jvm)
}

group = "dev.stashy.midifunk"
Expand All @@ -15,7 +14,7 @@ repositories {
}

dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
implementation(libs.coroutines.core)
testImplementation("org.junit.jupiter:junit-jupiter:5.9.2")
}

Expand Down Expand Up @@ -81,21 +80,3 @@ signing {
kotlin {
jvmToolchain(8)
}

tasks.test {
finalizedBy(tasks.jacocoTestReport)
finalizedBy(tasks.jacocoTestCoverageVerification)
}

tasks.jacocoTestReport {
dependsOn(tasks.test)
reports {
xml.required.set(true)
}
}

tasks.jacocoTestCoverageVerification {
dependsOn(tasks.test)
}


12 changes: 12 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[versions]
kotlin = "1.9.21"
coroutines = "1.6.4"

nexusPublish = "1.0.0"

[plugins]
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
nexusPublish = { id = "io.github.gradle-nexus.publish-plugin", version.ref = "nexusPublish" }

[libraries]
coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "coroutines" }
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Tue Jul 14 14:43:11 EEST 2020
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-all.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
Expand Down

0 comments on commit e5249cf

Please sign in to comment.