Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 43 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,50 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

<!-- Spring Boot Parent -->
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.2.0</version> <!-- or latest stable -->
<relativePath/> <!-- lookup parent from repository -->
</parent>

<groupId>com.derick</groupId>
<artifactId>ci-alert-bot</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>

<name>CI Alert Bot</name>
<description>Java-based CI/CD Notification Bot</description>

<properties>
<java.version>21</java.version>
</properties>

<dependencies>
<!-- JUnit 5 (Jupiter API + Engine) -->
<!-- Spring Boot Starter Web -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>

<!-- Spring Boot Starter Scheduling -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>

<!-- Lombok -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>

<!-- JUnit 5 -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
Expand All @@ -25,18 +56,24 @@

<build>
<plugins>
<!-- Enable Maven compiler plugin -->
<!-- Maven Compiler Plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<source>21</source>
<target>21</target>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>

<!-- Enable JUnit 5 -->
<!-- Spring Boot Maven Plugin -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>

<!-- Maven Surefire Plugin for JUnit 5 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
Expand All @@ -47,4 +84,5 @@
</plugin>
</plugins>
</build>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.derick.notificationbot;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class NotificationBotApplication {
public static void main(String[] args) {
SpringApplication.run(NotificationBotApplication.class, args);
}
}
13 changes: 13 additions & 0 deletions src/main/java/derrick/Notificationbot/rest/HelloController.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.derick.notificationbot;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

@GetMapping("/")
public String hello() {
return "Notification Bot is running!";
}
}