Skip to content

Commit 9da4c9d

Browse files
Merge pull request #586 from SpineEventEngine/update-agents-on-pull
Update agents on `pull`
2 parents 73b1c38 + e0c3297 commit 9da4c9d

File tree

5 files changed

+33
-11
lines changed

5 files changed

+33
-11
lines changed

.agents/text-formatting.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# Text formatting
22

3-
## Text width
3+
## Text width tasks
44
- Wrap `.md` text to 80 characters for readability.
5-
- Wrap KDoc comments at 75 characters.
5+
- Wrap Kotlin and Java code at 99 characters. This improves readability on notebooks and phones.
6+
7+
### KDoc formatting tasks
8+
- Wrap at 75 characters.
9+
- Wrap tag description text with two leading spaces ` ` after new line.
610

711
## Using periods
812

buildSrc/src/main/resources/dokka/styles/custom-styles.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*
2-
* Copyright 2023, TeamDev. All rights reserved.
2+
* Copyright 2025, TeamDev. All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* https://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Redistribution and use in source and/or binary forms, with or without
1111
* modification, must retain the above copyright notice and the following

gradle.properties

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ org.gradle.parallel=true
1111
# Dokka plugin eats more memory than usual. Therefore, all builds should have enough.
1212
org.gradle.jvmargs=-Xmx4096m -XX:MaxMetaspaceSize=1024m -XX:+UseParallelGC
1313

14+
# suppress inspection "UnusedProperty"
15+
# The below property enables generation of XML reports for tests.
16+
# If this flag is false, it causes `KotlinTestReport` task to replace these reports with one
17+
# consolidated HTML report.
18+
# See: https://github.com/JetBrains/kotlin/blob/9fd05632f0d7f074b6544527e73eb0fbb2fb1ef2/libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/testing/internal/KotlinTestReport.kt#L20
19+
# See: https://youtrack.jetbrains.com/issue/KT-32608
20+
kotlin.tests.individualTaskReports=true
21+
1422
# Enables the Dokka migration mode from v1 to v2.
1523
# For details please see:
1624
# https://kotlinlang.org/docs/dokka-migration.html#enable-migration-helpers

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.2-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

migrate

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,21 @@ cp CODE_OF_CONDUCT.md ..
1212
echo "Updating Codecov settings"
1313
cp .codecov.yml ..
1414

15-
echo "Updating AGENTS.md"
15+
16+
echo "Updating \\\`AGENTS.md\\\`"
1617
cp AGENTS.md ..
1718

1819
echo "Updating Junie guidelines"
19-
cp -R .junie ..
20+
rm -rf ../.junie
21+
if [ -d ".junie" ]; then
22+
cp -R .junie ..
23+
fi
24+
25+
echo "Updating \\\`.agents\\\` directory"
26+
rm -rf ../.agents
27+
if [ -d ".agents" ]; then
28+
cp -R .agents ..
29+
fi
2030

2131
# Copies the file or directory passed as the first parameter to the upper directory,
2232
# only if such a file or directory does not exist there.
@@ -46,7 +56,7 @@ rm -f ../.github/workflows/detekt-code-analysis.yml # This one is `config`-only
4656
#rm -f ../buildSrc/src/main/kotlin/deps-between-tasks.kt
4757

4858
# 2025-05-02 Remove the refactored file.
49-
rm -f ../buildSrc/src/main/kotin/io/spine/gradle/javadoc/TaskContainerExtensions.kt
59+
rm -f ../buildSrc/src/main/kotlin/io/spine/gradle/javadoc/TaskContainerExtensions.kt
5060

5161
# 2025-04-25 Remove the refactored files moved to subpackages
5262
rm -f ../buildSrc/src/main/kotlin/io/spine/gradle/Repositories.kt
@@ -62,7 +72,7 @@ cp -a gradle.properties ..
6272
cp -a .gitignore ..
6373

6474
# 2024-10-28
65-
echo "Removing old packages under 'buildSrc/src/main/kotin/'"
75+
echo "Removing old packages under \\\`buildSrc/src/main/kotlin/\\\`"
6676
rm -r ../buildSrc/src/main/kotlin/io/spine/internal/
6777

6878
# 2023-07-12, remove outdated files.
@@ -80,7 +90,7 @@ rm -f ../.lift.toml
8090
# See `config#498` for more.
8191
rm -f ../license-report.md
8292

83-
echo "Updating Gradle 'buildSrc'"
93+
echo "Updating Gradle \\\`buildSrc\\\`"
8494
cp -R buildSrc ..
8595

8696
echo "Updating Gradle Wrapper"
@@ -90,5 +100,5 @@ cp gradlew.bat ..
90100

91101
cd ..
92102

93-
echo "Adding 'buildSrc' sources to Git..."
103+
echo "Adding \\\`buildSrc\\\` sources to Git..."
94104
git add ./buildSrc/src

0 commit comments

Comments
 (0)