diff --git a/SonarQube-code-analysis-for-maven-github-actions/README.md b/SonarQube-code-analysis-for-maven-github-actions/README.md new file mode 100644 index 0000000..17f5a09 --- /dev/null +++ b/SonarQube-code-analysis-for-maven-github-actions/README.md @@ -0,0 +1 @@ +# SonarQube-code-analysis-for-maven \ No newline at end of file diff --git a/SonarQube-code-analysis-for-maven-github-actions/pom.xml b/SonarQube-code-analysis-for-maven-github-actions/pom.xml new file mode 100644 index 0000000..2661268 --- /dev/null +++ b/SonarQube-code-analysis-for-maven-github-actions/pom.xml @@ -0,0 +1,75 @@ + + + + 4.0.0 + + com.mycompany.app + my-app + 1.0-SNAPSHOT + + my-app + + http://www.example.com + + + UTF-8 + 1.7 + 1.7 + + + + + junit + junit + 4.11 + test + + + + + + + + + maven-clean-plugin + 3.1.0 + + + + maven-resources-plugin + 3.0.2 + + + maven-compiler-plugin + 3.8.0 + + + maven-surefire-plugin + 2.22.1 + + + maven-jar-plugin + 3.0.2 + + + maven-install-plugin + 2.5.2 + + + maven-deploy-plugin + 2.8.2 + + + + maven-site-plugin + 3.7.1 + + + maven-project-info-reports-plugin + 3.0.0 + + + + + diff --git a/SonarQube-code-analysis-for-maven-github-actions/src/main/java/com/mycompany/app/App.java b/SonarQube-code-analysis-for-maven-github-actions/src/main/java/com/mycompany/app/App.java new file mode 100644 index 0000000..32a4b3d --- /dev/null +++ b/SonarQube-code-analysis-for-maven-github-actions/src/main/java/com/mycompany/app/App.java @@ -0,0 +1,13 @@ +package com.mycompany.app; + +/** + * Hello world! + * + */ +public class App +{ + public static void main( String[] args ) + { + System.out.println( "Hello World!" ); + } +} diff --git a/SonarQube-code-analysis-for-maven-github-actions/src/test/java/com/mycompany/app/AppTest.java b/SonarQube-code-analysis-for-maven-github-actions/src/test/java/com/mycompany/app/AppTest.java new file mode 100644 index 0000000..b875376 --- /dev/null +++ b/SonarQube-code-analysis-for-maven-github-actions/src/test/java/com/mycompany/app/AppTest.java @@ -0,0 +1,20 @@ +package com.mycompany.app; + +import static org.junit.Assert.assertTrue; + +import org.junit.Test; + +/** + * Unit test for simple App. + */ +public class AppTest +{ + /** + * Rigorous Test :-) + */ + @Test + public void shouldAnswerWithTrue() + { + assertTrue( true ); + } +}