[jira] [Commented] (OFBIZ-12813) Refactor groovy folder structure and add package declaration

2023-07-31 Thread Jacques Le Roux (Jira)


[ 
https://issues.apache.org/jira/browse/OFBIZ-12813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17749265#comment-17749265
 ] 

Jacques Le Roux commented on OFBIZ-12813:
-

Hi Michael,

I have applied both patches and all works as expected (lazy tests, but 
cumulative)

> Refactor groovy folder structure and add package declaration
> 
>
> Key: OFBIZ-12813
> URL: https://issues.apache.org/jira/browse/OFBIZ-12813
> Project: OFBiz
>  Issue Type: Bug
>Affects Versions: 22.01.01, Upcoming Branch
>Reporter: Wiebke Paetzold
>Assignee: Michael Brohl
>Priority: Major
> Fix For: Upcoming Branch
>
>
> Due to the upgrade to jdk17 all groovy Classes need a package declaration. 
> To get a distinct package naming a consistent folder structure is needed.
> For example, under framework -> base -> src there is a distinction between 
> main and test. Within the test folder there is again a distinction between 
> groovy and Java.
> This scheme should be applied everywhere. So a src folder contains main, 
> test, ... within these folders there is again a distinction between groovy 
> and java.
>  
> For more information visit:
> [http://groovy-lang.org/releasenotes/groovy-3.0.html#Groovy3.0releasenotes-Splitpackages]
> “The Java Platform Module System requires that classes in distinct modules 
> have distinct package names. Groovy has its own "modules" but these haven’t 
> historically been structured according to the above requirement. For this 
> reason, Groovy 2.x and 3.0 should be added to the classpath not module path 
> when using JDK9+. This places Groovy’s classes into the unnamed module where 
> the split package naming requirement is not enforced.“



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[jira] [Commented] (OFBIZ-12813) Refactor groovy folder structure and add package declaration

2023-07-31 Thread Michael Brohl (Jira)


[ 
https://issues.apache.org/jira/browse/OFBIZ-12813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17749256#comment-17749256
 ] 

Michael Brohl commented on OFBIZ-12813:
---

I've created a new PR fixing the remaining issues in framework.

> Refactor groovy folder structure and add package declaration
> 
>
> Key: OFBIZ-12813
> URL: https://issues.apache.org/jira/browse/OFBIZ-12813
> Project: OFBiz
>  Issue Type: Bug
>Affects Versions: 22.01.01, Upcoming Branch
>Reporter: Wiebke Paetzold
>Assignee: Michael Brohl
>Priority: Major
> Fix For: Upcoming Branch
>
>
> Due to the upgrade to jdk17 all groovy Classes need a package declaration. 
> To get a distinct package naming a consistent folder structure is needed.
> For example, under framework -> base -> src there is a distinction between 
> main and test. Within the test folder there is again a distinction between 
> groovy and Java.
> This scheme should be applied everywhere. So a src folder contains main, 
> test, ... within these folders there is again a distinction between groovy 
> and java.
>  
> For more information visit:
> [http://groovy-lang.org/releasenotes/groovy-3.0.html#Groovy3.0releasenotes-Splitpackages]
> “The Java Platform Module System requires that classes in distinct modules 
> have distinct package names. Groovy has its own "modules" but these haven’t 
> historically been structured according to the above requirement. For this 
> reason, Groovy 2.x and 3.0 should be added to the classpath not module path 
> when using JDK9+. This places Groovy’s classes into the unnamed module where 
> the split package naming requirement is not enforced.“



--
This message was sent by Atlassian Jira
(v8.20.10#820010)


[GitHub] [ofbiz-framework] sonarcloud[bot] commented on pull request #665: Refactor groovy framework open issues (OFBIZ-12813)

2023-07-31 Thread via GitHub


sonarcloud[bot] commented on PR #665:
URL: https://github.com/apache/ofbiz-framework/pull/665#issuecomment-1658690829

   Kudos, SonarCloud Quality Gate passed!  [![Quality Gate 
passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/passed-16px.png
 'Quality Gate 
passed')](https://sonarcloud.io/dashboard?id=apache_ofbiz-framework=665)
   
   
[![Bug](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/bug-16px.png
 
'Bug')](https://sonarcloud.io/project/issues?id=apache_ofbiz-framework=665=false=BUG)
 
[![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png
 
'A')](https://sonarcloud.io/project/issues?id=apache_ofbiz-framework=665=false=BUG)
 [0 
Bugs](https://sonarcloud.io/project/issues?id=apache_ofbiz-framework=665=false=BUG)
  
   
[![Vulnerability](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/vulnerability-16px.png
 
'Vulnerability')](https://sonarcloud.io/project/issues?id=apache_ofbiz-framework=665=false=VULNERABILITY)
 
[![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png
 
'A')](https://sonarcloud.io/project/issues?id=apache_ofbiz-framework=665=false=VULNERABILITY)
 [0 
Vulnerabilities](https://sonarcloud.io/project/issues?id=apache_ofbiz-framework=665=false=VULNERABILITY)
  
   [![Security 
Hotspot](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/security_hotspot-16px.png
 'Security 
Hotspot')](https://sonarcloud.io/project/security_hotspots?id=apache_ofbiz-framework=665=false=SECURITY_HOTSPOT)
 
[![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png
 
'A')](https://sonarcloud.io/project/security_hotspots?id=apache_ofbiz-framework=665=false=SECURITY_HOTSPOT)
 [0 Security 
Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_ofbiz-framework=665=false=SECURITY_HOTSPOT)
  
   [![Code 
Smell](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/code_smell-16px.png
 'Code 
Smell')](https://sonarcloud.io/project/issues?id=apache_ofbiz-framework=665=false=CODE_SMELL)
 
[![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png
 
'A')](https://sonarcloud.io/project/issues?id=apache_ofbiz-framework=665=false=CODE_SMELL)
 [0 Code 
Smells](https://sonarcloud.io/project/issues?id=apache_ofbiz-framework=665=false=CODE_SMELL)
   
   [![No Coverage 
information](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/CoverageChart/NoCoverageInfo-16px.png
 'No Coverage 
information')](https://sonarcloud.io/component_measures?id=apache_ofbiz-framework=665)
 No Coverage information  
   
[![0.0%](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/Duplications/3-16px.png
 
'0.0%')](https://sonarcloud.io/component_measures?id=apache_ofbiz-framework=665=new_duplicated_lines_density=list)
 [0.0% 
Duplication](https://sonarcloud.io/component_measures?id=apache_ofbiz-framework=665=new_duplicated_lines_density=list)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@ofbiz.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org