From 1cd9c137911412e29e9d9e32adef517c62ac1404 Mon Sep 17 00:00:00 2001 From: Gabriel Franco Date: Wed, 5 Aug 2026 13:47:33 +0000 Subject: [PATCH] first hello-world project --- create-project.sh | 0 helloworld/README.md | 32 ++++++++++ helloworld/pom.xml | 58 +++++++++++++++++++ .../src/main/java/com/gabeefranco/App.java | 10 ++++ .../test/java/com/gabeefranco/AppTest.java | 13 +++++ 5 files changed, 113 insertions(+) mode change 100644 => 100755 create-project.sh create mode 100644 helloworld/README.md create mode 100644 helloworld/pom.xml create mode 100644 helloworld/src/main/java/com/gabeefranco/App.java create mode 100644 helloworld/src/test/java/com/gabeefranco/AppTest.java diff --git a/create-project.sh b/create-project.sh old mode 100644 new mode 100755 diff --git a/helloworld/README.md b/helloworld/README.md new file mode 100644 index 0000000..a27385e --- /dev/null +++ b/helloworld/README.md @@ -0,0 +1,32 @@ +# helloworld + +Projeto Maven criado automaticamente com Java 25 e JUnit 5. + +## Requisitos + +- Java 25 +- Maven + +## Como compilar + +```bash +mvn compile +``` + +## Como executar + +```bash +mvn exec:java -Dexec.mainClass="com.gabeefranco.App" +``` + +## Como executar os testes + +```bash +mvn test +``` + +## Como gerar o pacote + +```bash +mvn package +``` diff --git a/helloworld/pom.xml b/helloworld/pom.xml new file mode 100644 index 0000000..d347d5d --- /dev/null +++ b/helloworld/pom.xml @@ -0,0 +1,58 @@ + + + 4.0.0 + + com.gabeefranco + helloworld + 1.0-SNAPSHOT + + + 25 + UTF-8 + + + + + + org.junit.jupiter + junit-jupiter + 5.10.0 + test + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.11.0 + + 25 + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 3.1.2 + + false + + + + + + org.codehaus.mojo + exec-maven-plugin + 3.1.0 + + + + + diff --git a/helloworld/src/main/java/com/gabeefranco/App.java b/helloworld/src/main/java/com/gabeefranco/App.java new file mode 100644 index 0000000..23b7ef5 --- /dev/null +++ b/helloworld/src/main/java/com/gabeefranco/App.java @@ -0,0 +1,10 @@ +package com.gabeefranco; + +public class App { + + public static void main(String[] args) { + System.out.println( + "Hello, world! Projeto helloworld criado com sucesso." + ); + } +} diff --git a/helloworld/src/test/java/com/gabeefranco/AppTest.java b/helloworld/src/test/java/com/gabeefranco/AppTest.java new file mode 100644 index 0000000..21ff66f --- /dev/null +++ b/helloworld/src/test/java/com/gabeefranco/AppTest.java @@ -0,0 +1,13 @@ +package com.gabeefranco; + +import static org.junit.jupiter.api.Assertions.assertTrue; + +import org.junit.jupiter.api.Test; + +class AppTest { + + @Test + void testApp() { + assertTrue(true, "Teste básico de funcionamento."); + } +}