-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from barnhill/toml-version-catalog
Toml version catalog
- Loading branch information
Showing
9 changed files
with
135 additions
and
37 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
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,28 +1,18 @@ | ||
apply plugin: 'maven-publish' | ||
apply plugin: "com.vanniktech.maven.publish" | ||
|
||
wrapper { | ||
gradleVersion = '8.1' | ||
} | ||
|
||
buildscript { | ||
ext.kotlin_version = '1.8.20' | ||
|
||
repositories { | ||
google() | ||
mavenCentral() | ||
} | ||
dependencies { | ||
classpath 'com.android.tools.build:gradle:8.0.0' | ||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | ||
classpath "org.jetbrains.dokka:dokka-gradle-plugin:1.8.10" | ||
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.25.1' | ||
mavenLocal() | ||
} | ||
} | ||
|
||
allprojects { | ||
repositories { | ||
google() | ||
mavenCentral() | ||
} | ||
plugins { | ||
alias(libs.plugins.androidLibrary).apply(false) | ||
alias(libs.plugins.kotlin.android).apply(false) | ||
alias(libs.plugins.maven.publish).apply(false) | ||
alias(libs.plugins.gradle.cachefix).apply(false) | ||
} | ||
|
||
wrapper { | ||
gradleVersion = '8.1.1' | ||
} |
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,37 @@ | ||
[versions] | ||
#libs | ||
kotlinx-serialization = "1.5.0" | ||
vanniktech-maven-publish = "0.25.2" | ||
evalex = "3.0.5" | ||
androidx-startup = "1.1.1" | ||
androidx-appcompat = "1.6.1" | ||
androidx-fragment-ktx = "1.6.0" | ||
android-material = "1.9.0" | ||
junit = "4.13.2" | ||
|
||
#plugins | ||
kotlin= "1.8.20" | ||
gradlePlugins-agp = "8.0.2" | ||
tomlChecker = "0.47.0" | ||
gradleCacheFix = "2.7.1" | ||
dokka = "1.8.20" | ||
|
||
[libraries] | ||
dokka-gradle = { module = "org.jetbrains.dokka:dokka-gradle-plugin", version.ref = "dokka" } | ||
kotlin-gradle = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" } | ||
kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlinx-serialization" } | ||
evalex = { module = "com.ezylang:EvalEx", version.ref = "evalex"} | ||
androidx-startup = { module = "androidx.startup:startup-runtime", version.ref = "androidx-startup" } | ||
androidx-appcompat = { module = "androidx.appcompat:appcompat", version.ref = "androidx-appcompat" } | ||
androidx-fragment-ktx = { module = "androidx.fragment:fragment-ktx", version.ref = "androidx-fragment-ktx" } | ||
android-material = { module = "com.google.android.material:material", version.ref = "android-material" } | ||
junit = { module = "junit:junit", version.ref = "junit" } | ||
|
||
[plugins] | ||
androidLibrary = { id = "com.android.library", version.ref = "gradlePlugins-agp" } | ||
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" } | ||
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" } | ||
maven-publish = { id = "com.vanniktech.maven.publish", version.ref = "vanniktech-maven-publish" } | ||
gradle-cachefix = { id = "org.gradle.android.cache-fix", version.ref = "gradleCacheFix" } | ||
dokka = { id = "org.jetbrains.dokka", version.ref = "dokka" } | ||
toml-version-checker = { id = "com.github.ben-manes.versions", version.ref = "tomlChecker" } |
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,6 +1,6 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip | ||
networkTimeout=10000 | ||
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
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 +1,57 @@ | ||
pluginManagement { | ||
repositories { | ||
gradlePluginPortal() | ||
google() | ||
mavenCentral() | ||
} | ||
} | ||
|
||
plugins { | ||
id "com.gradle.enterprise" version "3.13.3" | ||
} | ||
|
||
dependencyResolutionManagement { | ||
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) | ||
repositories { | ||
maven { url "https://plugins.gradle.org/m2/" } | ||
gradlePluginPortal() | ||
google() | ||
mavenCentral() | ||
} | ||
} | ||
|
||
gradleEnterprise { | ||
buildScan { | ||
termsOfServiceUrl = "https://gradle.com/terms-of-service" | ||
termsOfServiceAgree = "yes" | ||
} | ||
} | ||
|
||
def cacheUrl = System.getenv("REMOTE_CACHE_URL") == null ? settings["REMOTE_CACHE_URL"] : "${System.getenv("REMOTE_CACHE_URL")}" | ||
|
||
if (cacheUrl != null) { | ||
buildCache { | ||
local { | ||
removeUnusedEntriesAfterDays = 30 | ||
} | ||
|
||
remote(HttpBuildCache) { | ||
url = cacheUrl | ||
enabled = true | ||
push = true | ||
allowUntrustedServer = true | ||
allowInsecureProtocol = false | ||
if (enabled) { | ||
println "Using remote build cache: " + cacheUrl | ||
} | ||
credentials { | ||
username = System.getenv("REMOTE_CACHE_USER") == null ? settings['REMOTE_CACHE_USER'] : "${System.getenv("REMOTE_CACHE_USER")}" | ||
password = System.getenv("REMOTE_CACHE_PASS") == null ? settings['REMOTE_CACHE_PASS'] : "${System.getenv("REMOTE_CACHE_PASS")}" | ||
} | ||
} | ||
} | ||
} else { | ||
println "Not using remote build cache!" | ||
} | ||
|
||
include ':savestateobserver', ':app' |