Skip to content

Commit 040c0dd

Browse files
committed
Attempt to fix the gradle config.
1 parent 3e46beb commit 040c0dd

File tree

3 files changed

+46
-6
lines changed

3 files changed

+46
-6
lines changed

.github/workflows/gradle.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
- name: Validate Gradle
1818
uses: gradle/actions/wrapper-validation@v4
1919
- name: Setup Gradle
20-
uses: gradle/gradle-build-action@v3
21-
- name: Build with Gradle
20+
uses: gradle/actions/setup-gradle@v4
21+
- name: Build the project
2222
run: ./gradlew build
23-
- name: Test with Gradle
24-
run: ./gradlew allTests
23+
- name: Run the tests
24+
run: ./gradlew test

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"java.configuration.updateBuildConfiguration": "automatic"
3+
}

build.gradle.kts

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,41 @@
11
plugins {
2-
alias(libs.plugins.android.kotlin.multiplatform.library) apply false
3-
alias(libs.plugins.kotlinMultiplatform) apply false
2+
kotlin("multiplatform") version "2.2.20"
3+
id("maven-publish")
44
}
5+
6+
group = "com.github.petitparser"
7+
version = "1.1.0"
8+
9+
repositories {
10+
mavenCentral()
11+
}
12+
13+
kotlin {
14+
applyDefaultHierarchyTemplate()
15+
16+
jvm()
17+
js {
18+
browser()
19+
nodejs()
20+
}
21+
macosArm64()
22+
macosX64()
23+
linuxArm64()
24+
linuxX64()
25+
mingwX64()
26+
27+
sourceSets {
28+
val commonMain by getting
29+
val commonTest by getting {
30+
dependencies {
31+
implementation(kotlin("test"))
32+
}
33+
}
34+
val jvmMain by getting
35+
val jvmTest by getting
36+
val jsMain by getting
37+
val jsTest by getting
38+
val nativeMain by getting
39+
val nativeTest by getting
40+
}
41+
}

0 commit comments

Comments
 (0)