Skip to content

Commit 5e8d475

Browse files
committed
Update Gradle stuff
1 parent 147441b commit 5e8d475

File tree

21 files changed

+310
-261
lines changed

21 files changed

+310
-261
lines changed

.github/workflows/Build.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v2
18-
- name: Set up JDK 11
19-
uses: actions/setup-java@v2
17+
- uses: actions/checkout@v4
18+
- name: Set up JDK 17
19+
uses: actions/setup-java@v4
2020
with:
21-
java-version: '11'
21+
java-version: '17'
2222
distribution: 'adopt'
2323

2424
- name: Build
@@ -27,16 +27,16 @@ jobs:
2727
./gradlew --no-daemon compileReleaseSources
2828
2929
- name: Test
30-
run: ./gradlew --no-daemon test -x testDebug
30+
run: ./gradlew --no-daemon test
3131

3232
- name: Lint
3333
run: ./gradlew --no-daemon :wordle-compose-android:lintRelease -x lint
3434

35-
- name: Publish Test Results
36-
uses: EnricoMi/[email protected]
37-
if: failure()
35+
- name: Publish Test Reports
36+
uses: mikepenz/action-junit-report@v4
37+
if: success() || failure()
3838
with:
39-
files: ./**/build/test-results/test/TEST-*.xml
39+
report_paths: '**/build/test-results/test/TEST-*.xml'
4040

4141
- name: Dist
4242
env:

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
.gradle/
22
*.iml
33

4+
.idea/deploymentTargetDropDown.xml
5+
.idea/kotlinc.xml
6+
.idea/migrations.xml
7+
48
local.properties
59

610
build/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Status](https://github.com/opatry/wordle-kt/workflows/Build/badge.svg)](https://github.com/opatry/wordle-kt/actions/workflows/Build.yml)
1+
[![Build Status](https://github.com/opatry/wordle-kt/actions/workflows/Build.yml/badge.svg)](https://github.com/opatry/wordle-kt/actions/workflows/Build.yml)
22

33
# Wordle Compose
44

build.gradle

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

build.gradle.kts

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
2+
3+
buildscript {
4+
repositories {
5+
mavenCentral()
6+
google()
7+
}
8+
}
9+
10+
plugins {
11+
alias(libs.plugins.android.application) apply false
12+
alias(libs.plugins.android.library) apply false
13+
alias(libs.plugins.jetbrains.kotlin.android) apply false
14+
alias(libs.plugins.jetbrains.kotlin.jvm) apply false
15+
alias(libs.plugins.jetbrains.compose) apply false
16+
}
17+
18+
allprojects {
19+
repositories {
20+
mavenCentral()
21+
google()
22+
}
23+
}
24+
25+
subprojects {
26+
tasks {
27+
findByName("test") ?: return@tasks
28+
named<Test>("test") {
29+
ignoreFailures = true
30+
testLogging {
31+
events("failed", "passed", "skipped")
32+
33+
exceptionFormat = TestExceptionFormat.SHORT
34+
35+
debug {
36+
exceptionFormat = TestExceptionFormat.FULL
37+
}
38+
}
39+
}
40+
}
41+
}

game-logic/build.gradle

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

game-logic/build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
plugins {
2+
alias(libs.plugins.jetbrains.kotlin.jvm)
3+
}
4+
5+
dependencies {
6+
testImplementation(libs.junit4)
7+
}

gradle/libs.versions.toml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
[versions]
2+
3+
wordleKt = "0.1.0"
4+
5+
agp = "8.1.0"
6+
7+
compileSdk = "34"
8+
minSdk = "21"
9+
targetSdk = "34"
10+
11+
kotlin = "1.9.10"
12+
kotlinx-coroutines = "1.7.3"
13+
14+
compose = "1.5.3"
15+
16+
[libraries]
17+
kotlin = { module = "org.jetbrains.kotlin:kotlin-stdlib", version.ref = "kotlin" }
18+
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinx-coroutines" }
19+
kotlinx-coroutines-swing = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-swing", version.ref = "kotlinx-coroutines" }
20+
kotlinx-coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "kotlinx-coroutines" }
21+
22+
androidx-appcompat = "androidx.appcompat:appcompat:1.6.1"
23+
androidx-activity-compose = "androidx.activity:activity-compose:1.8.2"
24+
25+
androidx-compose-ui = { module = "androidx.compose.ui:ui", version.ref = "compose" }
26+
androidx-compose-uiTooling = { module = "androidx.compose.ui:ui-tooling", version.ref = "compose" }
27+
androidx-compose-foundation = { module = "androidx.compose.foundation:foundation", version.ref = "compose" }
28+
androidx-compose-material = { module = "androidx.compose.material:material", version.ref = "compose" }
29+
30+
jetbrains-compose-material = { module = "org.jetbrains.compose.material:material", version.ref = "compose" }
31+
jetbrains-compose-material-icons-extended-desktop = { module = "org.jetbrains.compose.material:material-icons-extended-desktop", version.ref = "compose" }
32+
jetbrains-compose-material-desktop = { module = "org.jetbrains.compose.material:material-desktop", version.ref = "compose" }
33+
34+
accompanist-insets = "com.google.accompanist:accompanist-insets:0.25.1"
35+
36+
gson = "com.google.code.gson:gson:2.10.1"
37+
38+
junit4 = "junit:junit:4.13.2"
39+
40+
[bundles]
41+
jetbrains-compose = [ "jetbrains-compose-material", "jetbrains-compose-material-desktop", "jetbrains-compose-material-icons-extended-desktop" ]
42+
androidx-compose = [ "androidx-compose-ui", "androidx-compose-uiTooling", "androidx-compose-foundation", "androidx-compose-material" ]
43+
44+
[plugins]
45+
android-application = { id = "com.android.application", version.ref = "agp" }
46+
android-library = { id = "com.android.library", version.ref = "agp" }
47+
jetbrains-kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
48+
jetbrains-kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
49+
jetbrains-compose = { id = "org.jetbrains.compose", version.ref = "compose" }

gradle/wrapper/gradle-wrapper.jar

-15.7 KB
Binary file not shown.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
46
zipStoreBase=GRADLE_USER_HOME
57
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)