-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
122 changed files
with
1,134 additions
and
1,014 deletions.
There are no files selected for viewing
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,3 +1,3 @@ | ||
# Enable auto-env through the sdkman_auto_env config | ||
# Add key=value pairs of SDKs to use below | ||
java=11.0.2-open | ||
java=11.0.19-tem |
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,44 +1,56 @@ | ||
# 2.0.0 | ||
|
||
## Changes | ||
|
||
- Migrated to gradle version catalogs | ||
- New kotlin target layout following support tiers and using `targetHierarchy` | ||
- `local.properties` is now also respected at the module level and overrides root project | ||
level `local.properties` | ||
- New `wasm` target support | ||
- Streamlined build host control | ||
|
||
# 1.1.4 | ||
|
||
## Changes | ||
|
||
* Back to spotless + ktlint | ||
* Fixed GH actions issues with runners | ||
* `local.properties` support | ||
* Custom refreshVersions rules setup | ||
* `.sdkmanrc` for easier local env setup | ||
* Version bumps ([email protected], [email protected]) | ||
- Back to spotless + ktlint | ||
- Fixed GH actions issues with runners | ||
- `local.properties` support | ||
- Custom refreshVersions rules setup | ||
- `.sdkmanrc` for easier local env setup | ||
- Version bumps ([email protected], [email protected]) | ||
|
||
# 1.1.3 | ||
|
||
## Changes | ||
|
||
* Swapped out ktlint for spotless + ktfmt | ||
* Disabling git hooks on CI | ||
* Added android support | ||
- Swapped out ktlint for spotless + ktfmt | ||
- Disabling git hooks on CI | ||
- Added android support | ||
|
||
# 1.1.2 | ||
|
||
## Changes | ||
|
||
* Removed incorrect hashed imports from gradle scripts | ||
* Bumped versions | ||
* Introduced nativeMain and nativeTest sourceSets | ||
* Added BlockingTest utility interface | ||
* Removed snapshot repository support | ||
* macosArm64() target added | ||
* iosSimulatorArm64() target added | ||
* watchosSimulatorArm64() target added | ||
* tvosSimulatorArm64() target added | ||
- Removed incorrect hashed imports from gradle scripts | ||
- Bumped versions | ||
- Introduced nativeMain and nativeTest sourceSets | ||
- Added BlockingTest utility interface | ||
- Removed snapshot repository support | ||
- macosArm64() target added | ||
- iosSimulatorArm64() target added | ||
- watchosSimulatorArm64() target added | ||
- tvosSimulatorArm64() target added | ||
|
||
# 1.1.1 | ||
|
||
## Changes | ||
|
||
* Stricter publication and test control to avoid duplicate builds on matrix jobs | ||
* Reworked gradle precompiled script plugins to better separate different functionalities | ||
* Sandbox GH action to quickly check gradle scripts on different hosts | ||
* Added baseline flow for setting up required native libraries on different CI hosts via [scripts/] directory | ||
* Native library caching for check and release actions | ||
* Upgraded versions | ||
* Fixed detekt issues | ||
- Stricter publication and test control to avoid duplicate builds on matrix jobs | ||
- Reworked gradle precompiled script plugins to better separate different functionalities | ||
- Sandbox GH action to quickly check gradle scripts on different hosts | ||
- Added baseline flow for setting up required native libraries on different CI hosts via [scripts/] | ||
directory | ||
- Native library caching for check and release actions | ||
- Upgraded versions | ||
- Fixed detekt issues |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
plugins { | ||
`kotlin-dsl` | ||
} | ||
|
||
repositories { | ||
gradlePluginPortal() | ||
google() | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation(files(libs.javaClass.superclass.protectionDomain.codeSource.location)) | ||
|
||
implementation(libs.plugin.kotlin) | ||
implementation(libs.plugin.kotlin.serialization) | ||
implementation(libs.plugin.android) | ||
implementation(libs.plugin.git.hooks) | ||
implementation(libs.plugin.detekt) | ||
implementation(libs.plugin.dokka) | ||
implementation(libs.plugin.versions) | ||
implementation(libs.plugin.versions.update) | ||
implementation(libs.plugin.container.tasks) | ||
} | ||
|
||
gradleEnterprise { | ||
buildScan { | ||
termsOfServiceUrl = "https://gradle.com/terms-of-service" | ||
termsOfServiceAgree = "yes" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
../gradle |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
pluginManagement { | ||
repositories { | ||
gradlePluginPortal() | ||
google() | ||
mavenCentral() | ||
} | ||
} | ||
|
||
plugins { | ||
id("com.gradle.enterprise") version "3.13" | ||
} | ||
|
||
@Suppress("UnstableApiUsage") | ||
dependencyResolutionManagement { | ||
repositories { | ||
google() | ||
mavenCentral() | ||
gradlePluginPortal() | ||
mavenLocal() | ||
} | ||
} | ||
|
||
enableFeaturePreview("STABLE_CONFIGURATION_CACHE") |
17 changes: 17 additions & 0 deletions
17
build-conventions/src/main/kotlin/convention.base.gradle.kts
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
plugins { | ||
idea | ||
id("convention.local-properties") | ||
} | ||
|
||
idea { | ||
module { | ||
isDownloadJavadoc = true | ||
isDownloadSources = true | ||
} | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
google() | ||
mavenLocal() | ||
} |
28 changes: 28 additions & 0 deletions
28
build-conventions/src/main/kotlin/convention.detekt.gradle.kts
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import io.gitlab.arturbosch.detekt.Detekt | ||
|
||
plugins { | ||
id("convention.base") | ||
id("io.gitlab.arturbosch.detekt") | ||
} | ||
|
||
dependencies { | ||
detektPlugins(libs.detekt.formatting) | ||
} | ||
|
||
detekt { | ||
config.from(rootDir.resolve("gradle/detekt.yml")) | ||
buildUponDefaultConfig = true | ||
} | ||
|
||
tasks.withType<Detekt> { | ||
reports { | ||
// observe findings in your browser with structure and code snippets | ||
html.required.set(true) | ||
// checkstyle like format mainly for integrations like Jenkins | ||
xml.required.set(true) | ||
// similar to the console output, contains issue signature to manually edit baseline files | ||
txt.required.set(true) | ||
// standardized SARIF format (https://sarifweb.azurewebsites.net/) to support integrations with Github Code Scanning | ||
sarif.required.set(true) | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
build-conventions/src/main/kotlin/convention.git-hooks.gradle.kts
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
plugins { | ||
id("convention.base") | ||
id("com.github.jakemarsden.git-hooks") apply (System.getenv("CI") !in arrayOf(null, "0", "false", "n", "N")) | ||
} | ||
|
||
gitHooks { | ||
setHooks( | ||
mapOf( | ||
"pre-commit" to "detekt --auto-correct", | ||
"pre-push" to "detekt" | ||
) | ||
) | ||
} |
27 changes: 27 additions & 0 deletions
27
build-conventions/src/main/kotlin/convention.jvm.gradle.kts
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import com.android.build.gradle.LibraryExtension | ||
|
||
plugins { | ||
id("convention.base") | ||
`java-base` | ||
} | ||
|
||
java { | ||
toolchain { | ||
languageVersion.set(JavaLanguageVersion.of(libs.versions.java.get().toInt())) | ||
} | ||
} | ||
|
||
plugins.withId("com.android.library") { | ||
configure<LibraryExtension> { | ||
compileOptions { | ||
sourceCompatibility = JavaVersion.toVersion(libs.versions.java.get()) | ||
targetCompatibility = sourceCompatibility | ||
} | ||
} | ||
} | ||
|
||
tasks { | ||
withType<Test> { | ||
useJUnitPlatform() | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
build-conventions/src/main/kotlin/convention.kotlin-mpp-tier0.gradle.kts
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension | ||
|
||
plugins { | ||
id("convention.jvm") | ||
id("convention.kotlin-mpp") | ||
} | ||
|
||
plugins.withId("com.android.library") { | ||
configure<KotlinMultiplatformExtension> { | ||
android() | ||
} | ||
} | ||
|
||
kotlin { | ||
js { | ||
useCommonJs() | ||
browser { | ||
commonWebpackConfig { | ||
cssSupport { enabled.set(true) } | ||
scssSupport { enabled.set(true) } | ||
} | ||
testTask { useKarma() } | ||
} | ||
} | ||
|
||
jvm() | ||
} |
14 changes: 14 additions & 0 deletions
14
build-conventions/src/main/kotlin/convention.kotlin-mpp-tier1.gradle.kts
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
plugins { | ||
id("convention.kotlin-mpp-tier0") | ||
} | ||
|
||
// https://kotlinlang.org/docs/native-target-support.html#tier-1 | ||
kotlin { | ||
linuxX64() | ||
|
||
macosX64() | ||
macosArm64() | ||
|
||
iosX64() | ||
iosSimulatorArm64() | ||
} |
Oops, something went wrong.