Skip to content

Commit 9aa4973

Browse files
authored
Merge branch 'main' into infra/ci-code-suggest
2 parents 4404bfc + 8ac31cd commit 9aa4973

File tree

11 files changed

+18
-27
lines changed

11 files changed

+18
-27
lines changed

.github/workflows/build_and_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
build_and_test_with_code_coverage:
1111
name: Build, test and upload code coverage
12-
runs-on: ubuntu-20.04
12+
runs-on: ubuntu-22.04
1313
env:
1414
CI: true
1515

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env:
1313
jobs:
1414
release_linux:
1515
name: Build release on main platform (Linux)
16-
runs-on: ubuntu-20.04
16+
runs-on: ubuntu-22.04
1717
steps:
1818
- name: Checkout
1919
uses: actions/checkout@v3

build.gradle.kts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import io.github.petertrr.configurePublishing
2-
import io.github.petertrr.configureVersioning
32
import io.gitlab.arturbosch.detekt.Detekt
43
import org.jetbrains.kotlin.gradle.targets.jvm.tasks.KotlinJvmTest
54

@@ -9,7 +8,6 @@ plugins {
98
alias(libs.plugins.detekt)
109
}
1110

12-
configureVersioning()
1311
group = "io.github.petertrr"
1412
description = "A multiplatform Kotlin library for calculating text differences"
1513

buildSrc/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ repositories {
99

1010
val libs = extensions.getByType<VersionCatalogsExtension>().named("libs")
1111
dependencies {
12-
implementation("org.ajoberstar.reckon:reckon-gradle:0.16.1")
1312
implementation("org.jetbrains.dokka:dokka-gradle-plugin:1.8.10")
1413
implementation("io.github.gradle-nexus:publish-plugin:1.3.0")
1514
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:${libs.findVersion("kotlin").get()}")

buildSrc/src/main/kotlin/io/github/petertrr/VersioningConfiguration.kt

Lines changed: 0 additions & 16 deletions
This file was deleted.

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[versions]
22
kotlin = "1.8.21"
33
junit = "5.9.3"
4-
detekt = "1.22.0"
4+
detekt = "1.23.0"
55

66
[plugins]
77
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }

gradle/wrapper/gradle-wrapper.jar

1.27 KB
Binary file not shown.
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionSha256Sum=e111cb9948407e26351227dabce49822fb88c37ee72f1d1582a69c68af2e702f
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
3+
distributionSha256Sum=38f66cd6eef217b4c35855bb11ea4e9fbc53594ccccb5fb82dfd317ef8c2c5a3
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
55
networkTimeout=10000
6+
validateDistributionUrl=true
67
zipStoreBase=GRADLE_USER_HOME
78
zipStorePath=wrapper/dists

gradlew

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,13 @@ location of your Java installation."
130130
fi
131131
else
132132
JAVACMD=java
133-
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
133+
if ! command -v java >/dev/null 2>&1
134+
then
135+
die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
134136
135137
Please set the JAVA_HOME variable in your environment to match the
136138
location of your Java installation."
139+
fi
137140
fi
138141

139142
# Increase the maximum file descriptors if we can.

settings.gradle.kts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ pluginManagement {
66
}
77

88
plugins {
9-
id("com.gradle.enterprise") version("3.13.1")
9+
id("com.gradle.enterprise") version("3.13.4")
10+
id("org.ajoberstar.reckon.settings") version("0.18.0")
1011
}
1112

1213
rootProject.name = "kotlin-multiplatform-diff"
@@ -17,6 +18,12 @@ dependencyResolutionManagement {
1718
}
1819
}
1920

21+
extensions.configure<org.ajoberstar.reckon.gradle.ReckonExtension> {
22+
setDefaultInferredScope("minor")
23+
scopeFromProp()
24+
stageFromProp("alpha", "rc", "final") // version string will be based on last commit; when checking out a tag, that
25+
}
26+
2027
if (System.getenv("CI") != null) {
2128
gradleEnterprise {
2229
buildScan {

0 commit comments

Comments
 (0)