diff --git a/ghpr-demo-code/Maven/README.md b/ghpr-demo-code/Maven/README.md new file mode 100644 index 0000000..348fc3b --- /dev/null +++ b/ghpr-demo-code/Maven/README.md @@ -0,0 +1,4 @@ +# Maven Package Demo + +Follow documentation here: + diff --git a/ghpr-demo-code/Maven/main/java/com/mycompany/app/App.java b/ghpr-demo-code/Maven/main/java/com/mycompany/app/App.java new file mode 100644 index 0000000..77cf3e0 --- /dev/null +++ b/ghpr-demo-code/Maven/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/ghpr-demo-code/Maven/pom.xml b/ghpr-demo-code/Maven/pom.xml new file mode 100644 index 0000000..5b57c57 --- /dev/null +++ b/ghpr-demo-code/Maven/pom.xml @@ -0,0 +1,84 @@ + + + + 4.0.0 + + com.mycompany.app + my-app + 1.1 + + 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 + + + + + + + + YOUR_PACKAGE_ID + Some description for your package name/name> + https://maven.pkg.github.com/YOUR_PACKAGE_ORG/YOOUR PACKAGE_REPO + + + + diff --git a/ghpr-demo-code/Maven/test/java/com/mycompany/app/AppTest.java b/ghpr-demo-code/Maven/test/java/com/mycompany/app/AppTest.java new file mode 100644 index 0000000..81ac345 --- /dev/null +++ b/ghpr-demo-code/Maven/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 ); + } +}