Skip to content

Commit 8a985de

Browse files
committed
Merge branch 'update-dependencies' into 'master'
Release 1.11 preparations Closes #544 See merge request se2/scratch/litterbox/litterbox!785
2 parents 7e80a7f + 3726366 commit 8a985de

1,619 files changed

Lines changed: 1796 additions & 1788 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright (C) 2019-2024 LitterBox contributors
2+
# Copyright (C) 2019-2025 LitterBox contributors
33
#
44
# This file is part of LitterBox.
55
#

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ produce an executable jar-file, run the following command:
2727
mvn package
2828
```
2929

30-
This will produce `target/Litterbox-1.10.full.jar`
30+
This will produce `target/Litterbox-1.11.full.jar`
3131

3232

3333
## Using LitterBox
3434

3535
To see an overview of the command line options available in LitterBox type:
3636

3737
```bash
38-
java -jar Litterbox-1.10.full.jar --help
38+
java -jar Litterbox-1.11.full.jar --help
3939
```
4040

4141
### Basic usage
@@ -44,7 +44,7 @@ LitterBox parses the JSON file of a Scratch project, which contains
4444
its source code. Given such a JSON file, LitterBox is invoked as follows:
4545

4646
```bash
47-
java -jar Litterbox-1.10.full.jar check --path <path/to/project.json>
47+
java -jar Litterbox-1.11.full.jar check --path <path/to/project.json>
4848
```
4949

5050
As a result, LitterBox will report any occurrences of bug patterns or
@@ -57,7 +57,7 @@ If you want to check a specific project given its ID (which you can
5757
find in the URL of the project), you can use the following command:
5858

5959
```bash
60-
java -jar Litterbox-1.10.full.jar check --project-id <project-id> --path <path/to/store/downloaded/project>
60+
java -jar Litterbox-1.11.full.jar check --project-id <project-id> --path <path/to/store/downloaded/project>
6161
```
6262

6363
When invoked this way, LitterBox will retrieve the JSON file
@@ -73,7 +73,7 @@ project IDs to check in a text file (one project ID per line) and
7373
invoke LitterBox as follows:
7474

7575
```bash
76-
java -jar Litterbox-1.10.full.jar check --project-list <path/to/projectidlist.txt> --path <path/to/projects>
76+
java -jar Litterbox-1.11.full.jar check --project-list <path/to/projectidlist.txt> --path <path/to/projects>
7777
```
7878

7979
LitterBox will check the given path for the projects.
@@ -90,7 +90,7 @@ filename specified in order to decide whether to produce CSV or JSON
9090
output:
9191

9292
```bash
93-
java -jar Litterbox-1.10.full.jar check --path <path/to/project.json> --output <result.csv>
93+
java -jar Litterbox-1.11.full.jar check --path <path/to/project.json> --output <result.csv>
9494
```
9595

9696
The CSV file will contain a high-level summary of the number of
@@ -102,7 +102,7 @@ analyzed Scratch-project, where all occurrences of bug patterns are
102102
highlighted with comments.
103103

104104
```bash
105-
java -jar Litterbox-1.10.full.jar check --path <path/to/project.json> --annotate <results/>
105+
java -jar Litterbox-1.11.full.jar check --path <path/to/project.json> --annotate <results/>
106106
```
107107

108108

@@ -118,7 +118,7 @@ comma-separated list of bug patterns, e.g.:
118118

119119

120120
```bash
121-
java -jar Litterbox-1.10.full.jar \
121+
java -jar Litterbox-1.11.full.jar \
122122
check \
123123
--path <path/to/project.json> \
124124
--detectors endless_recursion,call_without_definition
@@ -127,7 +127,7 @@ java -jar Litterbox-1.10.full.jar \
127127
A full list of available bug checkers can be retrieved using:
128128

129129
```bash
130-
java -jar Litterbox-1.10.full.jar --help
130+
java -jar Litterbox-1.11.full.jar --help
131131
```
132132

133133
To select all bug patterns, you can also use the term `bugs` in the
@@ -139,7 +139,7 @@ list; to select all code smell checks use `smells`.
139139
The bug patterns can be reported per scripts and procedures instead of for the whole program. In this case, only the bug patterns that can be detected through intra-scripts and intra-procedures analysis are considered.
140140

141141
```bash
142-
java -jar Litterbox-1.10.full.jar check \
142+
java -jar Litterbox-1.11.full.jar check \
143143
--path <path/to/project.json> \
144144
--output <result.csv> \
145145
--detectors script-bugs \
@@ -164,7 +164,7 @@ LitterBox can produce statistics on code metrics of a project (e.g.,
164164
number of blocks, number of sprites, weighted method count):
165165

166166
```bash
167-
java -jar Litterbox-1.10.full.jar \
167+
java -jar Litterbox-1.11.full.jar \
168168
stats \
169169
--path <path/to/project.json> \
170170
--output <statsfile.csv>
@@ -176,7 +176,7 @@ java -jar Litterbox-1.10.full.jar \
176176
LitterBox can generate a Graphviz `.dot` file representing various graphs of the project, such as the Abstract Syntax Tree (AST) or Control Flow Graph (CFG).
177177

178178
```bash
179-
java -jar Litterbox-1.10.full.jar dot --path <path/to/project.json> --output <output.dot> [--graph <GraphType>]
179+
java -jar Litterbox-1.11.full.jar dot --path <path/to/project.json> --output <output.dot> [--graph <GraphType>]
180180
```
181181

182182
Available graph types:
@@ -195,7 +195,7 @@ Available graph types:
195195
LitterBox provides a dedicated `mine` command for bulk downloading of Scratch projects. This is useful for creating datasets.
196196

197197
```bash
198-
java -jar Litterbox-1.10.full.jar mine --output <path/to/output/dir> [options]
198+
java -jar Litterbox-1.11.full.jar mine --output <path/to/output/dir> [options]
199199
```
200200

201201
Available options:
@@ -220,7 +220,7 @@ Scratch user CodeClubRik.
220220
Since version 1.7 Litterbox can automatically refactor a given Scratch project to improve its readability:
221221

222222
```bash
223-
java -jar Litterbox-1.10.full.jar \
223+
java -jar Litterbox-1.11.full.jar \
224224
refactoring \
225225
--path <path/to/project.json> \
226226
--output <path/to/output-dir>
@@ -233,16 +233,16 @@ The resulting set of refactored versions of the original project will be placed
233233

234234
### LLM Interaction
235235

236-
Since version 1.10 LitterBox allows you to ask an LLM about a Scratch program and makes it possible to automatically integrate LLM-provided issue fixes into the program.
236+
Since version 1.11 LitterBox allows you to ask an LLM about a Scratch program and makes it possible to automatically integrate LLM-provided issue fixes into the program.
237237
You can find all features under the `llm` subcommand:
238238
```bash
239-
java -jar Litterbox-1.10.full.jar llm --help
239+
java -jar Litterbox-1.11.full.jar llm --help
240240
```
241241

242242
It supports either the OpenAI API, or a self-hosted Ollama instance.
243243
To provide an OpenAI API key, start LitterBox like
244244
```bash
245-
java -Dlitterbox.llm.openai.api-key=KEY Litterbox-1.10.full.jar llm …
245+
java -Dlitterbox.llm.openai.api-key=KEY Litterbox-1.11.full.jar llm …
246246
```
247247
You can find other configuration options that can be passed via `-D` flags (e.g., model choice, Ollama API endpoint) in `src/main/resources/scratchllm.properties`.
248248

checkstyle-litterbox.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<!--
33
4-
Copyright (C) 2019-2024 LitterBox contributors
4+
Copyright (C) 2019-2025 LitterBox contributors
55
66
This file is part of LitterBox.
77

pom.xml

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>de.uni_passau.fim.se2</groupId>
88
<artifactId>Litterbox</artifactId>
9-
<version>1.11-SNAPSHOT</version>
9+
<version>1.12-SNAPSHOT</version>
1010

1111
<repositories>
1212
<repository>
@@ -33,7 +33,7 @@
3333
<plugin>
3434
<groupId>org.apache.maven.plugins</groupId>
3535
<artifactId>maven-enforcer-plugin</artifactId>
36-
<version>3.6.1</version>
36+
<version>3.6.2</version>
3737
<executions>
3838
<execution>
3939
<id>enforce-maven</id>
@@ -166,7 +166,7 @@
166166
<plugin>
167167
<groupId>org.jacoco</groupId>
168168
<artifactId>jacoco-maven-plugin</artifactId>
169-
<version>0.8.13</version>
169+
<version>0.8.14</version>
170170
<configuration>
171171
<excludes>
172172
<exclude>de/uni_passau/fim/se2/litterbox/generated/**/*</exclude>
@@ -194,7 +194,7 @@
194194
<version>5.0.0</version>
195195
<configuration>
196196
<properties>
197-
<year>2019-2024</year>
197+
<year>2019-2025</year>
198198
</properties>
199199
<licenseSets>
200200
<licenseSet>
@@ -244,19 +244,19 @@
244244
<dependency>
245245
<groupId>com.puppycrawl.tools</groupId>
246246
<artifactId>checkstyle</artifactId>
247-
<version>12.1.2</version>
247+
<version>12.3.0</version>
248248
</dependency>
249249
</dependencies>
250250
</plugin>
251251
<plugin>
252252
<groupId>com.github.spotbugs</groupId>
253253
<artifactId>spotbugs-maven-plugin</artifactId>
254-
<version>4.9.6.0</version>
254+
<version>4.9.8.2</version>
255255
</plugin>
256256
<plugin>
257257
<groupId>org.apache.maven.plugins</groupId>
258258
<artifactId>maven-pmd-plugin</artifactId>
259-
<version>3.27.0</version>
259+
<version>3.28.0</version>
260260
</plugin>
261261
<plugin>
262262
<groupId>org.antlr</groupId>
@@ -281,7 +281,7 @@
281281
<properties>
282282
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
283283
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
284-
<langchain.version>1.6.0</langchain.version>
284+
<langchain.version>1.9.1</langchain.version>
285285
</properties>
286286

287287
<dependencies>
@@ -316,31 +316,25 @@
316316
<version>4.7.7</version>
317317
</dependency>
318318
<dependency>
319-
<groupId>com.fasterxml.jackson.core</groupId>
319+
<groupId>tools.jackson.core</groupId>
320320
<artifactId>jackson-databind</artifactId>
321-
<version>2.20.0</version>
322-
</dependency>
323-
<dependency>
324-
<groupId>com.fasterxml.jackson.datatype</groupId>
325-
<artifactId>jackson-datatype-jdk8</artifactId>
326-
<version>2.20.0</version>
321+
<version>3.0.3</version>
327322
</dependency>
328323
<dependency>
329324
<groupId>org.apache.commons</groupId>
330325
<artifactId>commons-csv</artifactId>
331326
<version>1.14.1</version>
332327
</dependency>
333-
<!-- https://mvnrepository.com/artifact/junit/junit -->
334328
<dependency>
335329
<groupId>org.junit.jupiter</groupId>
336330
<artifactId>junit-jupiter</artifactId>
337-
<version>6.0.0</version>
331+
<version>6.0.1</version>
338332
<scope>test</scope>
339333
</dependency>
340334
<dependency>
341335
<groupId>org.apache.commons</groupId>
342336
<artifactId>commons-lang3</artifactId>
343-
<version>3.19.0</version>
337+
<version>3.20.0</version>
344338
</dependency>
345339
<dependency>
346340
<artifactId>guava</artifactId>
@@ -350,7 +344,7 @@
350344
<dependency>
351345
<groupId>commons-io</groupId>
352346
<artifactId>commons-io</artifactId>
353-
<version>2.20.0</version>
347+
<version>2.21.0</version>
354348
</dependency>
355349
<dependency>
356350
<artifactId>truth</artifactId>
@@ -366,13 +360,13 @@
366360
<dependency>
367361
<groupId>org.mockito</groupId>
368362
<artifactId>mockito-core</artifactId>
369-
<version>5.20.0</version>
363+
<version>5.21.0</version>
370364
<scope>test</scope>
371365
</dependency>
372366
<dependency>
373367
<groupId>org.mockito</groupId>
374368
<artifactId>mockito-junit-jupiter</artifactId>
375-
<version>5.20.0</version>
369+
<version>5.21.0</version>
376370
<scope>test</scope>
377371
</dependency>
378372
<dependency>

src/main/java/de/uni_passau/fim/se2/litterbox/LlmSubcommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2019-2024 LitterBox contributors
2+
* Copyright (C) 2019-2025 LitterBox contributors
33
*
44
* This file is part of LitterBox.
55
*

src/main/java/de/uni_passau/fim/se2/litterbox/Main.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2019-2024 LitterBox contributors
2+
* Copyright (C) 2019-2025 LitterBox contributors
33
*
44
* This file is part of LitterBox.
55
*
@@ -36,7 +36,7 @@
3636
@CommandLine.Command(
3737
name = "LitterBox",
3838
mixinStandardHelpOptions = true,
39-
version = "LitterBox 1.11-SNAPSHOT",
39+
version = "LitterBox 1.12-SNAPSHOT",
4040
subcommands = {
4141
// general commands
4242
Main.CheckProgramsSubcommand.class,

src/main/java/de/uni_passau/fim/se2/litterbox/MineSubcommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2019-2024 LitterBox contributors
2+
* Copyright (C) 2019-2025 LitterBox contributors
33
*
44
* This file is part of LitterBox.
55
*

src/main/java/de/uni_passau/fim/se2/litterbox/analytics/AbstractIssueFinder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2019-2024 LitterBox contributors
2+
* Copyright (C) 2019-2025 LitterBox contributors
33
*
44
* This file is part of LitterBox.
55
*

src/main/java/de/uni_passau/fim/se2/litterbox/analytics/AbstractRefactoringFinder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2019-2024 LitterBox contributors
2+
* Copyright (C) 2019-2025 LitterBox contributors
33
*
44
* This file is part of LitterBox.
55
*

src/main/java/de/uni_passau/fim/se2/litterbox/analytics/BugAnalyzer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2019-2024 LitterBox contributors
2+
* Copyright (C) 2019-2025 LitterBox contributors
33
*
44
* This file is part of LitterBox.
55
*

0 commit comments

Comments
 (0)