-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Gradle 8.0-rc-1 * Update deps * Update CI * Update artifacts API * fix CI * 19 * Restore cache * API * Replace classpath prop * Remove unused function * Add missing sensitivities * Use resolve b/199411018 * Remove appExtension where possible * Use ALL scope * Comment + distinct and sorted for determinism * Don't run as parameterized * test file cleanups * Fix plugin toolchain * Update deps * inline away minifiertype * Formatting + always emit diagnostics in tests * Fix missing classpath wiring in test jar * ABI * set toolchains and compilerOptions * More compilerOptions * subprojects only * ...unfiltered? * Use provider * Consolidate repositories * Trim comparison * uh * What about compileConfiguration * Update CI versions * Gradle 8.0 final * Disable 8.1.0 on CI for now * Try ADTs * De-flake * Disable AVD caching for now * Assemble eagerly * Apparently compileConfiguration explodes * Update AGP * Add disable mechanism * Gradle 8.0.1 * Fix property location * Always use trace refs * Try just artifactFiles * Revert "Try just artifactFiles" This reverts commit 008e52b. * Re-enable config caching in tests * Fix config cache tests * Revert "Revert "Try just artifactFiles"" This reverts commit 4f7b534. * Update again * Wrap in provider * beta03 * KeeperJarTask cleanups * Don't extend JavaExec anymore * Remove old suppression * Update API * Update to final versions * Update wrapper files * Fix rules version * Update CI * Fix name * Improve message * Remove unused import * Apparently new content in the file * Convert to kotlin DSL * Use Truth for better messages * Spotless 6.18.0 * do these still matter in the year of our lord 2023 * spotless
- Loading branch information
Showing
24 changed files
with
697 additions
and
576 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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
/* | ||
* Copyright (C) 2020. Slack Technologies, LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget | ||
import org.jetbrains.kotlin.gradle.plugin.KotlinBasePlugin | ||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | ||
|
||
plugins { | ||
alias(libs.plugins.kotlin.jvm) apply false | ||
alias(libs.plugins.agp.library) apply false | ||
// Version just here to make gradle happy. It's always substituted as an included build | ||
id("com.slack.keeper") version "0.12.0" apply false | ||
alias(libs.plugins.spotless) | ||
} | ||
|
||
subprojects { | ||
pluginManager.withPlugin("java") { | ||
configure<JavaPluginExtension> { toolchain { languageVersion.set(JavaLanguageVersion.of(19)) } } | ||
|
||
tasks.withType<JavaCompile>().configureEach { options.release.set(11) } | ||
} | ||
|
||
plugins.withType<KotlinBasePlugin>().configureEach { | ||
project.tasks.withType<KotlinCompile>().configureEach { | ||
compilerOptions { | ||
jvmTarget.set(JvmTarget.JVM_11) | ||
freeCompilerArgs.add("-progressive") | ||
} | ||
} | ||
} | ||
} | ||
|
||
spotless { | ||
format("misc") { | ||
target("**/*.md", ".gitignore") | ||
trimTrailingWhitespace() | ||
endWithNewline() | ||
} | ||
val ktfmtVersion = libs.versions.ktfmt.get() | ||
kotlin { | ||
target("**/*.kt") | ||
targetExclude("**/.gradle/**", "**/build/**") | ||
ktfmt(ktfmtVersion).googleStyle() | ||
trimTrailingWhitespace() | ||
endWithNewline() | ||
licenseHeaderFile(rootProject.file("spotless/copyright.kt")) | ||
targetExclude("**/copyright.kt") | ||
} | ||
kotlinGradle { | ||
target("**/*.kts", "./*.kts") | ||
ktfmt(ktfmtVersion).googleStyle() | ||
trimTrailingWhitespace() | ||
endWithNewline() | ||
licenseHeaderFile( | ||
"spotless/copyright.kt", | ||
"(import|plugins|buildscript|dependencies|dependencyResolutionManagement|pluginManagement|rootProject)" | ||
) | ||
} | ||
java { | ||
target("**/*.java") | ||
googleJavaFormat(libs.versions.gjf.get()).reflowLongStrings() | ||
trimTrailingWhitespace() | ||
endWithNewline() | ||
licenseHeaderFile(rootProject.file("spotless/copyright.java")) | ||
targetExclude("**/copyright.java") | ||
} | ||
} |
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,6 +1,6 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip | ||
networkTimeout=10000 | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.