-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Infra improvements and minor updates (#27)
* Tweak GHA configs - Check build task for pushes and PRs. - Use `gradle/actions/setup-gradle` to cache Gradle. - Merge deployment and release workflows, most of the steps could be reused. * Configure Renovate * Add renovate.json * Update and rename renovate.json to renovate.json5 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Zongle Wang <[email protected]> * Update dependency com.squareup:kotlinpoet to v1.18.1 * Update dependency com.android.tools:sdk-common to v31.5.1 * Update dependency org.jetbrains.kotlinx:kotlinx-io-core to v0.5.1 * Update dependency gradle to v8.9 * Remove version update plugin It could be replaced by Renovate now. * Add project icon * Tweak Gradle flags * Validate build on Windows * Optimize maven repositories * Optimize plugin applying * Use lazy APIs to provide secrets --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
- Loading branch information
1 parent
6d294a3
commit 4f4704a
Showing
19 changed files
with
215 additions
and
210 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,6 @@ | ||
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask | ||
|
||
plugins { | ||
alias(libs.plugins.compose.compiler) apply false | ||
alias(libs.plugins.gradle.dependency.check) | ||
alias(libs.plugins.kotlin.jvm) apply false | ||
alias(libs.plugins.kotlin.compose) apply false | ||
alias(libs.plugins.jetbrains.compose) apply false | ||
alias(libs.plugins.jetbrains.intellij) apply false | ||
alias(libs.plugins.kotlin.jvm) apply false | ||
} | ||
|
||
tasks.withType<DependencyUpdatesTask> { | ||
rejectVersionIf { | ||
isNonStable(candidate.version) | ||
} | ||
} | ||
|
||
fun isNonStable(version: String): Boolean { | ||
val stableKeyword = listOf("RELEASE", "FINAL", "GA").any { | ||
version.uppercase().contains(it) | ||
} | ||
val regex = "^[0-9,.v-]+(-r)?$".toRegex() | ||
val isStable = stableKeyword || regex.matches(version) | ||
return isStable.not() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
org.gradle.configuration-cache=true | ||
org.gradle.caching=true | ||
org.gradle.configuration-cache=true | ||
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx4g | ||
org.gradle.parallel=true | ||
|
||
kotlin.stdlib.default.dependency=false | ||
kotlin.code.style=official |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.