Skip to content

Commit 652e2ae

Browse files
committed
Bump to CfW 1.3.0rc & redux-kotlin 0.6.0-SNAPSHOT
1 parent 11396d8 commit 652e2ae

File tree

51 files changed

+1174
-767
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1174
-767
lines changed

.editorconfig

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
root = true
22

33
[*.{kt,kts}]
4-
indent_size = 2
4+
indent_size = 4
55
ignored_rules = no-wildstar-imports
6+
insert_final_newline = true

.github/workflows/release.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Release
22

33
on:
44
push:
5-
paths-ignore:
6-
- '**/*.md'
5+
paths:
6+
- '**/src/**'
77
branches:
88
- master
99
workflow_dispatch:
@@ -100,6 +100,7 @@ jobs:
100100
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
101101
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
102102
strategy:
103+
fail-fast: false
103104
matrix:
104105
repository:
105106
- name: Github Packages
@@ -113,10 +114,10 @@ jobs:
113114
os:
114115
- runner: ubuntu-latest
115116
shell: bash
116-
# - runner: macos-latest
117-
# shell: bash
118-
# - runner: windows-latest
119-
# shell: msys2 {0}
117+
# - runner: macos-latest
118+
# shell: bash
119+
# - runner: windows-latest
120+
# shell: msys2 {0}
120121
steps:
121122
- uses: msys2/setup-msys2@v2
122123
if: ${{ matrix.repository.enabled == true && runner.os == 'Windows' }}

.github/workflows/resolve-version.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
version:
1212
value: ${{ jobs.resolve.outputs.version }}
1313
snapshot:
14-
value: ${{ jobs.resolve.outputs.version }}
14+
value: ${{ jobs.resolve.outputs.snapshot }}
1515

1616
concurrency:
1717
cancel-in-progress: true
@@ -58,10 +58,12 @@ jobs:
5858
SNAPSHOT_VERSION="${main_version}${patch_version}-SNAPSHOT"
5959
echo "SNAPSHOT_VERSION=$SNAPSHOT_VERSION" >> $GITHUB_ENV
6060
sed -Ei "s|^(version=).*\$|\\1$SNAPSHOT_VERSION|" gradle.properties
61-
- name: Commit and push SNAPSHOT
61+
- name: Create Pull Request for new SNAPSHOT
6262
if: env.DIFF_VERSION == '1' && env.PROJECT_VERSION != env.SNAPSHOT_VERSION
63-
uses: devops-infra/[email protected]
63+
uses: peter-evans/create-pull-request@v4
6464
with:
65-
github_token: ${{ secrets.GH_TOKEN || github.token }}
66-
commit_message: '[ci skip] New SNAPSHOT - ${{ env.SNAPSHOT_VERSION }}'
67-
target_branch: master
65+
title: 'New SNAPSHOT - ${{ env.SNAPSHOT_VERSION }}'
66+
commit-message: '[ci skip] New SNAPSHOT - ${{ env.SNAPSHOT_VERSION }}'
67+
branch: ci/version/${{ env.SNAPSHOT_VERSION }}
68+
delete-branch: true
69+
base: master

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ build/
66
.fleet/
77
*.log
88
lint.xml
9+
local.properties

CHANGELOG.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
---
9+
10+
## [Unreleased]
11+
12+
---
13+
14+
## [0.6.0]
15+
16+
Initial release. See [README.md](./README.md) for feature and usage details.
17+
18+
---
19+
20+
[Unreleased]: https://github.com/reduxkotlin/redux-kotlin-compose/compare/0.6.0...HEAD
21+
22+
[0.6.0]: https://github.com/reduxkotlin/redux-kotlin/releases/tag/0.6.0

build-conventions/build.gradle.kts

+30-34
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,49 @@
1-
@file:Suppress("OPT_IN_IS_NOT_ENABLED")
2-
3-
import de.fayard.refreshVersions.core.RefreshVersionsCorePlugin
4-
import de.fayard.refreshVersions.core.internal.InternalRefreshVersionsApi
51
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
62

73
plugins {
8-
`kotlin-dsl`
4+
`kotlin-dsl`
95
}
106

117
repositories {
12-
gradlePluginPortal()
13-
mavenCentral()
14-
google()
8+
gradlePluginPortal()
9+
mavenCentral()
10+
google()
11+
if (findProperty("project.enableSnapshots") == "true") {
12+
maven("https://oss.sonatype.org/content/repositories/snapshots")
13+
}
1514
}
1615

1716
dependencies {
18-
implementation("com.android.tools.build:gradle:_")
19-
implementation("org.jetbrains.compose:compose-gradle-plugin:_")
20-
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:_")
21-
implementation("com.github.jakemarsden:git-hooks-gradle-plugin:_")
22-
implementation("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:_")
23-
implementation("io.github.gradle-nexus:publish-plugin:_")
24-
implementation("org.jetbrains.dokka:dokka-gradle-plugin:_")
25-
implementation("dev.petuska:klip-gradle-plugin:_")
26-
@OptIn(InternalRefreshVersionsApi::class)
27-
implementation("de.fayard.refreshVersions:refreshVersions-core:${RefreshVersionsCorePlugin.currentVersion}")
17+
implementation("com.android.tools.build:gradle:_")
18+
implementation("org.jetbrains.compose:compose-gradle-plugin:_")
19+
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:_")
20+
implementation("com.github.jakemarsden:git-hooks-gradle-plugin:_")
21+
implementation("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:_")
22+
implementation("io.github.gradle-nexus:publish-plugin:_")
23+
implementation("org.jetbrains.dokka:dokka-gradle-plugin:_")
2824
}
2925

30-
gradleEnterprise {
31-
buildScan {
32-
termsOfServiceUrl = "https://gradle.com/terms-of-service"
33-
termsOfServiceAgree = "yes"
34-
}
26+
tasks {
27+
withType<KotlinCompile> {
28+
kotlinOptions {
29+
languageVersion = "1.4" // 1.9 since gradle 8
30+
}
31+
}
3532
}
3633

37-
tasks {
38-
withType<KotlinCompile> {
39-
kotlinOptions {
40-
languageVersion = "1.4"
34+
gradleEnterprise {
35+
buildScan {
36+
termsOfServiceUrl = "https://gradle.com/terms-of-service"
37+
termsOfServiceAgree = "yes"
4138
}
42-
}
4339
}
4440

4541
kotlin {
46-
sourceSets {
47-
all {
48-
languageSettings {
49-
optIn("org.jetbrains.compose.ExperimentalComposeLibrary")
50-
}
42+
sourceSets {
43+
all {
44+
languageSettings {
45+
optIn("org.jetbrains.compose.ExperimentalComposeLibrary")
46+
}
47+
}
5148
}
52-
}
5349
}

build-conventions/settings.gradle.kts

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
pluginManagement {
2-
repositories {
3-
gradlePluginPortal()
4-
mavenCentral()
5-
google()
6-
}
2+
repositories {
3+
gradlePluginPortal()
4+
mavenCentral()
5+
google()
6+
}
77
}
88

99
plugins {
10-
id("de.fayard.refreshVersions") version "0.51.0"
11-
id("com.gradle.enterprise") version "3.12.2"
10+
id("de.fayard.refreshVersions") version "0.51.0"
11+
id("com.gradle.enterprise") version "3.12.3"
1212
}
1313

1414
refreshVersions {
15-
versionsPropertiesFile = rootDir.resolve("gradle/versions.properties")
16-
extraArtifactVersionKeyRules(rootDir.resolve("gradle/versions.rules"))
15+
versionsPropertiesFile = rootDir.resolve("gradle/versions.properties")
16+
extraArtifactVersionKeyRules(rootDir.resolve("gradle/versions.rules"))
1717
}
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
11
import org.jetbrains.kotlin.konan.target.HostManager
22

33
plugins {
4-
id("convention.local-properties")
5-
id("convention.detekt")
6-
idea
4+
id("convention.local-properties")
5+
id("convention.detekt")
6+
idea
77
}
88

99
repositories {
10-
mavenCentral()
11-
google()
12-
gradlePluginPortal()
13-
if (findProperty("project.enableSnapshots") == "true") {
14-
maven("https://oss.sonatype.org/content/repositories/snapshots")
15-
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
16-
}
10+
mavenCentral()
11+
google()
12+
gradlePluginPortal()
13+
if (findProperty("project.enableSnapshots") == "true") {
14+
maven("https://oss.sonatype.org/content/repositories/snapshots")
15+
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
16+
}
1717
}
1818

1919
printlnCI(
20-
"""
20+
"""
2121
CI: $CI
2222
SANDBOX: $SANDBOX
2323
isMainHost: $isMainHost
2424
---
2525
hostIsLinux: ${HostManager.hostIsLinux}
2626
hostIsMac: ${HostManager.hostIsMac}
2727
hostIsMingw: ${HostManager.hostIsMingw}
28-
""".trimIndent()
28+
""".trimIndent()
2929
)
3030

3131
idea {
32-
module {
33-
isDownloadSources = true
34-
isDownloadJavadoc = true
35-
}
32+
module {
33+
isDownloadSources = true
34+
isDownloadJavadoc = true
35+
}
3636
}
3737

3838
afterEvaluate {
39-
tasks {
40-
if (findByName("compile") == null) {
41-
register("compile") {
42-
dependsOn(withType(AbstractCompile::class))
43-
group = "build"
44-
}
45-
}
46-
if (findByName("allTests") == null) {
47-
register("allTests") {
48-
dependsOn(withType(AbstractTestTask::class))
49-
group = "verification"
50-
}
39+
tasks {
40+
if (findByName("compile") == null) {
41+
register("compile") {
42+
dependsOn(withType(AbstractCompile::class))
43+
group = "build"
44+
}
45+
}
46+
if (findByName("allTests") == null) {
47+
register("allTests") {
48+
dependsOn(withType(AbstractTestTask::class))
49+
group = "verification"
50+
}
51+
}
5152
}
52-
}
5353
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
plugins {
2-
id("convention.common")
3-
id("org.jetbrains.compose")
2+
id("convention.common")
3+
id("org.jetbrains.compose")
44
}

0 commit comments

Comments
 (0)