Skip to content

Commit

Permalink
Upgrade Spotless 7.0.0.BETA4 to support configuration cache (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonMarquis authored Dec 17, 2024
1 parent 797cac8 commit f7cc888
Show file tree
Hide file tree
Showing 5 changed files with 144 additions and 12 deletions.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ dokka-javadoc = { id = "org.jetbrains.dokka-javadoc", version.ref = "dokka" }
jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
binaryCompatibilityValidator = { id = "org.jetbrains.kotlinx.binary-compatibility-validator", version = "0.16.3" }
spotless = { id = "com.diffplug.spotless", version = "6.25.0" }
spotless = { id = "com.diffplug.spotless", version = "7.0.0.BETA4" }
111 changes: 111 additions & 0 deletions gradle/verification-keyring.keys
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,43 @@ Ett6PX9Hrvc1MTy/UUdb3s08C0wD0x+ZzFzqUXKTZg==
=Yytq
-----END PGP PUBLIC KEY BLOCK-----

pub CA85FFE638D4407A
uid Sebastiano Vigna <sebastiano.vigna@gmail.com>

sub 17755EEA52A858CE
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: BCPG v@RELEASE_NAME@

mQGNBF+oUkoBDADeE9IXjwvW9HlfIYhQfTlJ29cReMfOM0UW3dAn3XJduUcnYKoc
3dKGCcsanzIELL6QuapXYAlq2WWlP1oC2IEbYyilKs/ocv2gc6/GQFKBAEqHKVXH
Vsircl1EWjap18Rp9JedCdLuyW48/l65/Jz7Hrg7KvdRCAz/81Tca3xk+mmH3AuN
XThDYh6Ys6ejyX/4cZpZv1sc4k/+GeseU0broLkT8CCg9cE0bYnkaX7nJyDgA6Wu
knIzCZ3X+Km6TpEKPD23um5ilDM7YynZ4o4rW55XblMlcXnusjtF7jDHqRLqIoYh
FENj/FqtFqEob1u5d8KPdO7Ds6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9mK8UA
+PEJpr22m0y252I3uMJ/OMCTvqCSKVFjeODsPGznfjnk2eRKf43AoqoTx0Kh97k8
5XasFVVSILXEdb8KCHAdc4YOsxT6HMeEjuwdab3BzAdswNIgfPPR6p9QHfJ9jrli
THogPiD3QC9yUn4DhY29kWSgkwzHv1kPoy153PY4zh8aCkR6r/b4oMFb9l+MqGlm
oKP8gDYvsHgzt8wiirZi463cNzpJ4X7GTAzyGIfVhv3E0t2VxOF6H3Zkq/bGt7kC
U5Ox+ofx2IJKMWGZcjKdEom1sO3BnXQgpbBHsEkh+TJcWoMFNxiiIVXcI0zn0A==
=H5Yi
-----END PGP PUBLIC KEY BLOCK-----

pub E3822B59020A349D
uid Kotlin Libraries Release <kt-libraries@jetbrains.com>

Expand Down Expand Up @@ -981,6 +1018,51 @@ Qc4ZDKq+ywOElvONMnX4oaQ1
=f1ra
-----END PGP PUBLIC KEY BLOCK-----

pub 15C71C0A4E0B8EDD
uid Matthias Bl?sing <mblaesing@doppel-helix.eu>

sub 891E4C2D471515FE
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: BCPG v@RELEASE_NAME@

mQINBFcyNOoBEACj0zTN3GkRNAY3jihHZdGvi70i4R8mUfcQUwWGRsGGlzSwyJfe
20qNOHqwHaxVCAIp4e5paNf9cEKepOv5IqMkmaRdiC2W+BHDxcJgBot/IrC81ube
y5M9gIc0yCynC4Cnmg2DmRWuafVvqogz0vDKUG3ADvPgRyaItzh0xO/PsWPZvIHD
SlCX9Ny/RT1vZ741tBUm1flGUzxs0zAPt0I+ievjwOeKw8OeUb59sc98U3XpVOVQ
KDD6RIzhnvronznoPkcKPGMrVgBbgyP1/6rwn1u/69CTlED+lyWervseGtDQCO4h
nVZGTfLLo3cB1ertknmmMqyahfaQcohykvAmVzxxkzaWE1vSkOX1U2bFaUNiYuZN
U8zJtdENX2isKQp4xSxJ1/+/hjyfrGwLAebtvnwNcsM3oDwHoevusMoLmMNGkGe0
yLjz38gwLCIuVrSFeHtHJKdP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M/1nreGOq6ECCYOhXFzWynhjgwxSteq6dK43mLZFc1gfY508IK/I6O3++OMjSk+
sDGL4PqccTr68UBowLTN4oV0rIfJtp+D3LN3R7rS/j+9c6Sy0GrzX5ebxrAPbQnD
j2sEAW76myDENpKjyMp5nnfqeL16tNNnUVP55EbygguWFFtdfo8pIl9hu/EzrwtY
l4/Ifx+N4vgN9l94CpsPkzK38rBTmIXMTGd8iUbQV7XYl078ZiDKqT2XYehu6BF3
nhIFb6CzI0IbmDbZoGTdJ51pZ8u2swZt//bDRRd1pFPhBkCRC+EbnH/oBadgVTx4
3F7p/jixoWXqX+ZvTZCnoWA1MC1QVLzfvf7D6Rw5vNtA8mtlEqMKzx5Kf3YeUN2F
IvkDbCfX51QlJC4Oe9J5vdFjnooWVKgiBPAar689Y4C7tzpGM2KOcl0+io/g9ANk
Sm6cpRCTZKwgOXl0DVebeWjsdt6/bqHKOPLhLn0UNbUmMzzrPo71y7qiMDmv5D8K
/aVgxiX7roDSv9PSqwsZ3mw+EV4LQr12Aw2WG2uNijO99r02xqNU6vvHEglWH/f5
gT4eYNEtGTqyp5PNTuYkI7GKybBgEPtLjZykvvWJNn/P6KdmcsxQthX3XnbCIRq2
LDL7A4GNor2DcqTyOw3cjy0=
=pzVO
-----END PGP PUBLIC KEY BLOCK-----

pub 1939A2520BAB1D90
uid Daniel Dekany <ddekany@apache.org>

Expand Down Expand Up @@ -1314,6 +1396,35 @@ Tovwvq8=
=TWPb
-----END PGP PUBLIC KEY BLOCK-----

pub 479D601F3A7B5C1A
uid AJ Alt <ajalt@users.noreply.github.com>

sub 868FF6CCEF26A83C
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: BCPG v@RELEASE_NAME@

mQENBF5CDMYBCADC1/aWU6ZbGZEphRbmjUPNfqh3N5goSnDCou97mmQ9Uq8iBuKS
UXJnGSOHudXK56f+Drx5lGZdLAzveZdqaqb1o3yLFO3PJxwj3Ulhab3O3uTG2eR0
2Xo7GKjRW13kEfphJrfVIaQ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IC KEY BLOCK-----

pub 56028DF552BA32E2
uid Dokka Release <dokka@jetbrains.com>

Expand Down
34 changes: 30 additions & 4 deletions gradle/verification-metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
<verify-metadata>true</verify-metadata>
<verify-signatures>true</verify-signatures>
<keyring-format>armored</keyring-format>
<key-servers enabled="false">
<key-server uri="https://keyserver.ubuntu.com"/>
<key-server uri="https://keys.openpgp.org"/>
</key-servers>
<key-servers enabled="false">
<key-server uri="https://keyserver.ubuntu.com"/>
<key-server uri="https://keys.openpgp.org"/>
</key-servers>
<ignored-keys>
<ignored-key id="0374CF2E8DD1BDFD" reason="Key couldn't be downloaded from any key server"/>
<ignored-key id="2C7B12F2A511E325" reason="Key couldn't be downloaded from any key server"/>
Expand All @@ -22,7 +22,9 @@
</ignored-keys>
<trusted-keys>
<trusted-key id="015479E1055341431B4545AB72475FD306B9CAB7" group="com.googlecode.javaewah" name="JavaEWAH"/>
<trusted-key id="03C123038C20AAE9E286C857479D601F3A7B5C1A" group="^com[.]github[.]ajalt($|([.].*))" regex="true"/>
<trusted-key id="09939C73246B4BA7444CAA453D002DBC5EA9615F" group="dev.drewhamilton.poko"/>
<trusted-key id="0CB5871FB7BF3B351614BBF6CA85FFE638D4407A" group="it.unimi.dsi" name="fastutil-core" version="8.5.12"/>
<trusted-key id="13AC2213964ABE1D1C147C0E1939A2520BAB1D90" group="org.freemarker" name="freemarker"/>
<trusted-key id="1BE2DD4B1FCF252FE4F0A1D103281AA0289FF53A" group="com.soywiz.korlibs.korte" name="korte-jvm"/>
<trusted-key id="1D2C7EF8ADA0F794B58C7C63436902AF59EDF60E" group="dev.equo.ide" name="solstice"/>
Expand Down Expand Up @@ -60,6 +62,7 @@
<trusted-key id="DBD744ACE7ADE6AA50DD591F66B50994442D2D40" group="^com[.]squareup($|([.].*))" regex="true"/>
<trusted-key id="E7DC75FC24FB3C8DFE8086AD3D5839A2262CBBFB" group="^org[.]jetbrains[.]kotlinx($|([.].*))" regex="true"/>
<trusted-key id="F3184BCD55F4D016E30D4C9BF42E87F9665015C9" group="org.jsoup" name="jsoup"/>
<trusted-key id="FA7929F83AD44C4590F6CC6815C71C0A4E0B8EDD" group="net.java.dev.jna" name="jna" version="5.14.0"/>
<trusted-key id="FC411CD3CB7DCB0ABC9801058118B3BCDB1A5000" group="jakarta.xml.bind"/>
<trusted-key id="FF6E2C001948C5F2F38B0CC385911F425EC61B51">
<trusting group="junit"/>
Expand All @@ -77,6 +80,11 @@
<sha256 value="f45c82b12faacd85acd474eba699322fa5dea88408b247d0e4bde9412908223a" origin="Generated by Gradle" reason="Artifact is not signed"/>
</artifact>
</component>
<component group="com.diffplug.spotless" name="com.diffplug.spotless.gradle.plugin" version="7.0.0.BETA4">
<artifact name="com.diffplug.spotless.gradle.plugin-7.0.0.BETA4.pom">
<sha256 value="8a881efb3a105d33e1fabcf3649d7859350d08d11283d7283ab1ba2ed36eb2b5" origin="Generated by Gradle" reason="Artifact is not signed"/>
</artifact>
</component>
<component group="com.fasterxml" name="oss-parent" version="38">
<artifact name="oss-parent-38.pom">
<pgp value="6214760097DC5CFAD0175AC2C9FBAA83A8753994"/>
Expand Down Expand Up @@ -121,6 +129,14 @@
<sha256 value="6cb5957819df393956fd311a3a0c3f5eec1ebc49ba5b2d09f3f44e6167fa3e74" origin="Generated by Gradle" reason="A key couldn't be downloaded"/>
</artifact>
</component>
<component group="commons-codec" name="commons-codec" version="1.17.0">
<artifact name="commons-codec-1.17.0.jar">
<sha256 value="f700de80ac270d0344fdea7468201d8b9c805e5c648331c3619f2ee067ccfc59" origin="Generated by Gradle" reason="A key couldn't be downloaded"/>
</artifact>
<artifact name="commons-codec-1.17.0.pom">
<sha256 value="c01c4cda5e408f41ed1d83e4a0a170cf53801b6338aba49f0f904786bc1214fc" origin="Generated by Gradle" reason="A key couldn't be downloaded"/>
</artifact>
</component>
<component group="dev.zacsweers.kctfork" name="core" version="0.7.0">
<artifact name="core-0.7.0.jar">
<sha256 value="6a041ab8c336c242b5d0835ced9b3d8de656b9a06fb99fe25b48b59e35352724" origin="Generated by Gradle" reason="A key couldn't be downloaded"/>
Expand Down Expand Up @@ -155,11 +171,21 @@
<pgp value="84789D24DF77A32433CE1F079EB80E92EB2135B1"/>
</artifact>
</component>
<component group="org.apache" name="apache" version="31">
<artifact name="apache-31.pom">
<pgp value="84789D24DF77A32433CE1F079EB80E92EB2135B1"/>
</artifact>
</component>
<component group="org.apache.commons" name="commons-parent" version="58">
<artifact name="commons-parent-58.pom">
<sha256 value="2d4b12e18899063abd7c75278b5fa97a3729d80878ceecb6a40d946e9c0d5590" origin="Generated by Gradle" reason="A key couldn't be downloaded"/>
</artifact>
</component>
<component group="org.apache.commons" name="commons-parent" version="69">
<artifact name="commons-parent-69.pom">
<sha256 value="d50da9c39bdca823d618d1b4a03b73f196497fcb8616fd0da727c8623592a9bb" origin="Generated by Gradle" reason="A key couldn't be downloaded"/>
</artifact>
</component>
<component group="org.hamcrest" name="hamcrest-core" version="1.3">
<artifact name="hamcrest-core-1.3.jar">
<sha256 value="66fdef91e9739348df7a096aa384a5685f4e875584cce89386a7a47251c4d8e9" origin="Generated by Gradle" reason="A key couldn't be downloaded"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ annotation class SealedObjectInstances(
val returnType: Boolean = true,
) {

enum class RawType(
internal val kClass: KClass<*>,
internal val builder: KFunction1<kotlin.Array<out Any>, Any>,
) {
enum class RawType(internal val kClass: KClass<*>, internal val builder: KFunction1<kotlin.Array<out Any>, Any>) {
Array(kotlin.Array::class, ::arrayOf),
List(kotlin.collections.List::class, ::listOf),
Set(kotlin.collections.Set::class, ::setOf),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ import java.io.OutputStreamWriter
import kotlin.reflect.KClass
import kotlin.text.Typography.ellipsis

internal class SealedObjectInstancesProcessor(
private val environment: SymbolProcessorEnvironment,
) : SymbolProcessor {
internal class SealedObjectInstancesProcessor(private val environment: SymbolProcessorEnvironment) : SymbolProcessor {

override fun process(resolver: Resolver): List<KSAnnotated> {
resolver.getSymbolsWithAnnotation(SealedObjectInstances::class.qualifiedName!!)
Expand Down

0 comments on commit f7cc888

Please sign in to comment.