Skip to content

Commit

Permalink
Java version (#15)
Browse files Browse the repository at this point in the history
* Adding first spoon and japicmp scan

* Extraction of ErrorLog to different class

* Change of breakage detection method
Added dependency to the Spoon model classpath
Removed option to identify broken lines by dependencyGroupId
Changed client path to the specified folder and not the one it contains

* Change of breakage detection method
Added dependency to the Spoon model classpath
Removed option to identify broken lines by dependencyGroupId
Changed client path to the specified folder and not the one it contains
Generated new explanations

* add statistics and broken uses info

* Explanations las generation

* Add SpoonCtInvocation class

* Add explanations

* Updating CLI instructions

* Add CtInvocation parser

* Refactoring unnecessary code

* Adding CtInvocation parser for methods

* Adding  parser for methods

* Adding  parser for imports methods

* add stats json

* Adding compatibility with maracas module

* Update README.md

* Adding compatibility with maracas module

* Readme update

* Update maven.yml

* Adding support for transitive pom files

* Integration m1 (#1)

* Adding first spoon and japicmp scan

* Extraction of ErrorLog to different class

* Change of breakage detection method
Added dependency to the Spoon model classpath
Removed option to identify broken lines by dependencyGroupId
Changed client path to the specified folder and not the one it contains

* Change of breakage detection method
Added dependency to the Spoon model classpath
Removed option to identify broken lines by dependencyGroupId
Changed client path to the specified folder and not the one it contains
Generated new explanations

* add statistics and broken uses info

* Explanations las generation

* Add SpoonCtInvocation class

* Add explanations

* Updating CLI instructions

* Add CtInvocation parser

* Refactoring unnecessary code

* Adding CtInvocation parser for methods

* Adding  parser for methods

* Adding  parser for imports methods

* add stats json

* Adding compatibility with maracas module

* Adding compatibility with maracas module

* Adding support for transitive pom files

* update ignore

* add necessary file

* rename class to BuildHelp

* add class for stats

* Adding method to generate maven dependencyTree and find changes in different dependency versions (#5)

* Java version incompatibilities stats

* Spoon analyzer (#7)

* Update maven.yml

* Update workflow

* Create transitive.md

* Update transitive template

* Adding patter for java versions

* update java version templates
Add java version category analysis

* Adding java version explanations

* Updating java version explanations

* Change scope VersionFinder

* Change scope VersionFinder

* add static method

* Java version incompatibilities stats

* Adding patter for java versions

* update java version templates
Add java version category analysis

* Adding java version explanations

* Updating java version explanations

* Change scope VersionFinder

* Change scope VersionFinder

* add static method

* Updating Java version templates

* Java version (#10)

* Java version incompatibilities stats

* Adding patter for java versions

* update java version templates
Add java version category analysis

* Adding java version explanations

* Updating java version explanations

* Change scope VersionFinder

* Change scope VersionFinder

* add static method

* Updating Java version templates

* Update template in JavaVersionIncompatibility

* Adding new format of Java version incompatibility and matcher pattern
  • Loading branch information
frankreyesgarcia authored Jun 22, 2024
1 parent d1b5c00 commit d3f63e6
Show file tree
Hide file tree
Showing 199 changed files with 11,762 additions and 1,083 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,19 @@ jobs:

runs-on: ubuntu-latest

strategy:
matrix:
java: [17]

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml

- name: Test
run: mvn clean test

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ build/
/src/main/java/se/kth/data
/src/main/java/se/kth/explaining/Main.java
/src/main/java/se/kth/log_Analyzer/Main.java
/src/main/java/se/kth/spoon_compare/Main.java
/src/main/java/se/kth/spoon_compare/Main.java
/Scripts/
4 changes: 4 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Breaking-good

[![Build](https://github.com/frankreyesgarcia/breaking-good/actions/workflows/maven.yml/badge.svg)](https://github.com/frankreyesgarcia/breaking-good/actions/workflows/maven.yml)
# Template

CI detected that the dependency upgrade from version <**label indicating the previous version of the dependency**> to <**label indicating the new version of the dependency**> has failed. Here are details to help you understand and fix the problem:
1. Your client utilizes <**label indicate amount of instructions**> instructions which has been modified in the new version of the dependency.
1. Your client utilizes <**label indicate amount of instructions**> constructs which has been modified in the new version of the dependency.
* <summary> < Method | Class | Field | Import | Constructor> <b>< instruction name ></b> which has been < <b>Removed | Modified </b> > in the new version of the dependency</summary>

* <summary>The failure is identified from the logs generated in the build process. </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
CI detected that the dependency upgrade from version **spring-core-5.3.24** to **spring-core-6.0.7** has failed.
The new version of the dependency require a different version of Java.

CI uses **Java 11** (class version **55.0**). The new version of the dependency requires **Java 17** (class version **61.0**).

To resolve this issue, you need to update the Java version to **Java 17** in the following files:
- `development-maven-build.yml`
- `maven-build-push.yml`
- `maven-build.yml`

<details>
<summary>Here you can find a list of failures identified from the logs generated in the build process</summary>

* > [ERROR] /IDS-Messaging-Services/core/src/main/java/ids/messaging/core/config/ssl/keystore/KeyStoreManager.java:[61,35] cannot access org.springframework.core.io.ClassPathResource<br>[ERROR] bad class file: /root/.m2/repository/org/springframework/spring-core/6.0.7/spring-core-6.0.7.jar(/org/springframework/core/io/ClassPathResource.class)<br>[ERROR] class file has wrong version 61.0, should be 55.0<br>[ERROR] Please remove or make sure it appears in the correct subdirectory of the classpath.
</details>
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
CI detected that the dependency upgrade from version **spring-core-5.3.24** to **spring-core-6.0.8** has failed.
The new version of the dependency require a different version of Java.

CI uses **Java 11** (class version **55.0**). The new version of the dependency requires **Java 17** (class version **61.0**).

To resolve this issue, you need to update the Java version to **Java 17** in the following files:
- `development-maven-build.yml`
- `maven-build-push.yml`
- `maven-build.yml`

<details>
<summary>Here you can find a list of failures identified from the logs generated in the build process</summary>

* > [ERROR] /IDS-Messaging-Services/core/src/main/java/ids/messaging/core/config/ssl/keystore/KeyStoreManager.java:[61,35] cannot access org.springframework.core.io.ClassPathResource<br>[ERROR] bad class file: /root/.m2/repository/org/springframework/spring-core/6.0.8/spring-core-6.0.8.jar(/org/springframework/core/io/ClassPathResource.class)<br>[ERROR] class file has wrong version 61.0, should be 55.0<br>[ERROR] Please remove or make sure it appears in the correct subdirectory of the classpath.
</details>
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<<<<<<<< HEAD:Resources/JavaVersionIncompatibility/07ff1a34661db6c7f0ca03156ff5d8936b5123f5.md
CI detected that the dependency upgrade from version **spring-context-5.3.23** to **spring-context-6.0.1** has failed.
========
CI detected that the dependency upgrade from version **spring-core-6.0.9** to **spring-core-5.3.27** has failed.
>>>>>>>> main:Resources/JavaVersionIncompatibility/JavaVersionIncompatibility.md
The new version of the dependency require a different version of Java.

CI uses **Java 11** (class version **55.0**). The new version of the dependency requires **Java 17** (class version **61.0**).

To resolve this issue, you need to update the Java version to **Java 17** in the following files:
<<<<<<<< HEAD:Resources/JavaVersionIncompatibility/07ff1a34661db6c7f0ca03156ff5d8936b5123f5.md
========
- `test-suite.yml`
>>>>>>>> main:Resources/JavaVersionIncompatibility/JavaVersionIncompatibility.md
- `build.yml`
- `findbugs.yml`

<details>
<summary>Here you can find a list of failures identified from the logs generated in the build process</summary>

* > [ERROR] /LPVS/src/main/java/com/lpvs/LicensePreValidationSystem.java:[15,37] cannot access org.springframework.core.task.TaskExecutor<br>[ERROR] bad class file: /root/.m2/repository/org/springframework/spring-core/6.0.9/spring-core-6.0.9.jar(/org/springframework/core/task/TaskExecutor.class)<br>[ERROR] class file has wrong version 61.0, should be 55.0<br>[ERROR] Please remove or make sure it appears in the correct subdirectory of the classpath.
<<<<<<<< HEAD:Resources/JavaVersionIncompatibility/07ff1a34661db6c7f0ca03156ff5d8936b5123f5.md
* > [ERROR] /camunda-platform-7-mockito/src/main/java/org/camunda/community/mockito/process/CallActivityMockForSpringContext.java:[5,35] cannot access org.springframework.context.ApplicationContext<br>[ERROR] bad class file: /root/.m2/repository/org/springframework/spring-context/6.0.1/spring-context-6.0.1.jar(/org/springframework/context/ApplicationContext.class)<br>[ERROR] class file has wrong version 61.0, should be 55.0<br>[ERROR] Please remove or make sure it appears in the correct subdirectory of the classpath.
========
* > [ERROR] /LPVS/src/main/java/com/lpvs/controller/GitHubWebhooksController.java:[27,32] cannot access org.springframework.util.StringUtils<br> bad class file: /root/.m2/repository/org/springframework/spring-core/6.0.9/spring-core-6.0.9.jar(/org/springframework/util/StringUtils.class)<br> class file has wrong version 61.0, should be 55.0<br> Please remove or make sure it appears in the correct subdirectory of the classpath.
>>>>>>>> main:Resources/JavaVersionIncompatibility/JavaVersionIncompatibility.md
* > [ERROR] /LPVS/src/main/java/com/lpvs/util/LPVSFileUtil.java:[15,32] cannot access org.springframework.util.FileSystemUtils<br>[ERROR] bad class file: /root/.m2/repository/org/springframework/spring-core/6.0.9/spring-core-6.0.9.jar(/org/springframework/util/FileSystemUtils.class)<br>[ERROR] class file has wrong version 61.0, should be 55.0<br>[ERROR] Please remove or make sure it appears in the correct subdirectory of the classpath.
<<<<<<<< HEAD:Resources/JavaVersionIncompatibility/07ff1a34661db6c7f0ca03156ff5d8936b5123f5.md
* > [ERROR] /camunda-platform-7-mockito/src/main/java/org/camunda/community/mockito/process/CallActivityMockForSpringContext.java:[52,65] cannot find symbol<br>[ERROR] symbol: class ApplicationContext<br>[ERROR] location: class org.camunda.community.mockito.process.CallActivityMockForSpringContext
========
* > [ERROR] /LPVS/src/main/java/com/lpvs/LicensePreValidationSystem.java:[37,12] cannot find symbol<br>[ERROR] symbol: class TaskExecutor<br>[ERROR] location: class com.lpvs.LicensePreValidationSystem
* > [ERROR] /LPVS/src/main/java/com/lpvs/controller/GitHubWebhooksController.java:[27,32] cannot access org.springframework.util.StringUtils<br>[ERROR] bad class file: /root/.m2/repository/org/springframework/spring-core/6.0.9/spring-core-6.0.9.jar(/org/springframework/util/StringUtils.class)<br>[ERROR] class file has wrong version 61.0, should be 55.0<br>[ERROR] Please remove or make sure it appears in the correct subdirectory of the classpath.
>>>>>>>> main:Resources/JavaVersionIncompatibility/JavaVersionIncompatibility.md
* > [ERROR] /LPVS/src/main/java/com/lpvs/util/LPVSFileUtil.java:[15,32] cannot access org.springframework.util.FileSystemUtils<br> bad class file: /root/.m2/repository/org/springframework/spring-core/6.0.9/spring-core-6.0.9.jar(/org/springframework/util/FileSystemUtils.class)<br> class file has wrong version 61.0, should be 55.0<br> Please remove or make sure it appears in the correct subdirectory of the classpath.
<<<<<<<< HEAD:Resources/JavaVersionIncompatibility/07ff1a34661db6c7f0ca03156ff5d8936b5123f5.md
* > [ERROR] /camunda-platform-7-mockito/src/main/java/org/camunda/community/mockito/process/CallActivityMockForSpringContext.java:[6,35] cannot access org.springframework.context.ConfigurableApplicationContext<br>[ERROR] bad class file: /root/.m2/repository/org/springframework/spring-context/6.0.1/spring-context-6.0.1.jar(/org/springframework/context/ConfigurableApplicationContext.class)<br>[ERROR] class file has wrong version 61.0, should be 55.0<br>[ERROR] Please remove or make sure it appears in the correct subdirectory of the classpath.
* > [ERROR] /camunda-platform-7-mockito/src/main/java/org/camunda/community/mockito/process/CallActivityMockForSpringContext.java:[48,73] cannot find symbol<br>[ERROR] symbol: class ApplicationContext<br>[ERROR] location: class org.camunda.community.mockito.process.CallActivityMockForSpringContext
========
* > [ERROR] /LPVS/src/main/java/com/lpvs/LicensePreValidationSystem.java:[15,37] cannot access org.springframework.core.task.TaskExecutor<br> bad class file: /root/.m2/repository/org/springframework/spring-core/6.0.9/spring-core-6.0.9.jar(/org/springframework/core/task/TaskExecutor.class)<br> class file has wrong version 61.0, should be 55.0<br> Please remove or make sure it appears in the correct subdirectory of the classpath.
>>>>>>>> main:Resources/JavaVersionIncompatibility/JavaVersionIncompatibility.md
* > [ERROR] /LPVS/src/main/java/com/lpvs/LicensePreValidationSystem.java:[37,12] cannot find symbol<br> symbol: class TaskExecutor<br> location: class com.lpvs.LicensePreValidationSystem
</details>
Loading

0 comments on commit d3f63e6

Please sign in to comment.