Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
21a7130
Team Hugs_and_Bugs - creating employee table
johnhutchman Aug 8, 2024
59a838c
Merge pull request #1 from johnhutchman/001-create-employee-table
johnhutchman Aug 8, 2024
4566e31
Team Hugs_and_Bugs - change migrations to migrate
johnhutchman Aug 8, 2024
e6138d2
Merge pull request #2 from johnhutchman/001-create-employee-table
johnhutchman Aug 8, 2024
85b6d2d
Team Hugs_and_Bugs - adding sales employee table
niall-mccloy Aug 8, 2024
29d9f06
Team Hugs_and_Bugs - adding sales emp table
niall-mccloy Aug 8, 2024
df70d53
Team Hugs_and_Bugs - adding sales emp table
niall-mccloy Aug 8, 2024
b6a10a2
Team_Hugs_and_Bugs_Create_Delivery_Employee
amarauzoma Aug 8, 2024
34a1dd8
Merge pull request #3 from johnhutchman/002-adding-salesemp-table
niall-mccloy Aug 8, 2024
cd6e9d5
Merge pull request #4 from johnhutchman/003-create-delivery-employeee
amarauzoma Aug 8, 2024
9e619cf
Team Hugs_and_Bugs - Create tech lead table
JohnnyScott-Kainos Aug 8, 2024
8f1df3e
Changed employee to Employee on tech lead table
JohnnyScott-Kainos Aug 8, 2024
73329be
eam Hugs_and_Bugs - creating client table "
johnhutchman Aug 8, 2024
e41bfea
Creating client table
johnhutchman Aug 8, 2024
a3f1625
Team Hugs_and_Bugs - created tech lead table
JohnnyScott-Kainos Aug 8, 2024
0d90652
Merge pull request #6 from johnhutchman/004-add-tech-lead-table
JohnnyScott-Kainos Aug 8, 2024
cf7e14c
Merge pull request #5 from johnhutchman/005-create-client-table
johnhutchman Aug 8, 2024
51a1541
Team Hugs_and_Bugs -adding project table
niall-mccloy Aug 8, 2024
d09194e
Merge pull request #7 from johnhutchman/006-adding-project-table
niall-mccloy Aug 8, 2024
43b3fe4
Team_Hugs_and_Bugs Created Employee Models
amarauzoma Aug 8, 2024
1b6ee7c
Team_Hugs_and_Bugs Updated Linting
amarauzoma Aug 8, 2024
c53c9e0
Merge pull request #8 from johnhutchman/007-create-Employee-model
amarauzoma Aug 8, 2024
f0a80aa
Initial Dao setup
JohnnyScott-Kainos Aug 8, 2024
493cce4
added employee imports
JohnnyScott-Kainos Aug 8, 2024
de16d07
Changed Dao method names to match service calls
JohnnyScott-Kainos Aug 8, 2024
23306f4
updated getAllSalesEmployees method
JohnnyScott-Kainos Aug 8, 2024
7a3235d
linting
JohnnyScott-Kainos Aug 8, 2024
dc7c6f9
linting2
JohnnyScott-Kainos Aug 8, 2024
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
18 changes: 9 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
345 changes: 173 additions & 172 deletions dependency-reduced-pom.xml
Original file line number Diff line number Diff line change
@@ -1,174 +1,175 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.example</groupId>
<artifactId>java-dropwizard-flyway-starter</artifactId>
<name>Test</name>
<version>1.0-SNAPSHOT</version>
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.3.1</version>
<configuration>
<configLocation>src/main/resources/sun_checks_modified.xml</configLocation>
<consoleOutput>true</consoleOutput>
<failsOnError>true</failsOnError>
<linkXRef>false</linkXRef>
</configuration>
</plugin>
<plugin>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-maven-plugin</artifactId>
<version>8.0.1</version>
</plugin>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>3.5.1</version>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.12.1</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.0</version>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.6.3</version>
</plugin>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>3.12.1</version>
</plugin>
<plugin>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>3.5.0</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
<configuration>
<createDependencyReducedPom>true</createDependencyReducedPom>
<transformers>
<transformer />
<transformer>
<mainClass>${mainClass}</mainClass>
</transformer>
</transformers>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
</configuration>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>${mainClass}</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>11</source>
<target>11</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>java11+</id>
<properties>
<maven.javadoc.skip>true</maven.javadoc.skip>
</properties>
</profile>
</profiles>
<reporting>
<plugins>
<plugin>
<artifactId>maven-project-info-reports-plugin</artifactId>
<configuration>
<dependencyDetailsEnabled>false</dependencyDetailsEnabled>
</configuration>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
</plugins>
</reporting>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-dependencies</artifactId>
<version>${dropwizard.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<properties>
<dropwizard.version>2.0.3</dropwizard.version>
<mainClass>org.example.TestApplication</mainClass>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.example</groupId>
<artifactId>java-dropwizard-flyway-starter</artifactId>
<name>Test</name>
<version>1.0-SNAPSHOT</version>
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.3.1</version>
<configuration>
<configLocation>src/main/resources/sun_checks_modified.xml</configLocation>
<consoleOutput>true</consoleOutput>
<failsOnError>true</failsOnError>
<linkXRef>false</linkXRef>
</configuration>
</plugin>
<plugin>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-maven-plugin</artifactId>
<version>8.0.1</version>
</plugin>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>3.5.1</version>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.12.1</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.0</version>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.6.3</version>
</plugin>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>3.12.1</version>
</plugin>
<plugin>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>3.5.0</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
<configuration>
<createDependencyReducedPom>true</createDependencyReducedPom>
<transformers>
<transformer/>
<transformer>
<mainClass>${mainClass}</mainClass>
</transformer>
</transformers>
<filters>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
</configuration>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>${mainClass}</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>11</source>
<target>11</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>java11+</id>
<properties>
<maven.javadoc.skip>true</maven.javadoc.skip>
</properties>
</profile>
</profiles>
<reporting>
<plugins>
<plugin>
<artifactId>maven-project-info-reports-plugin</artifactId>
<configuration>
<dependencyDetailsEnabled>false</dependencyDetailsEnabled>
</configuration>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
</plugins>
</reporting>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.dropwizard</groupId>
<artifactId>dropwizard-dependencies</artifactId>
<version>${dropwizard.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<properties>
<dropwizard.version>2.0.3</dropwizard.version>
<mainClass>org.example.TestApplication</mainClass>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
</project>
3 changes: 3 additions & 0 deletions src/main/java/org/example/TestApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ public class TestApplication extends Application<TestConfiguration> {
public static void main(final String[] args) throws Exception {
new TestApplication().run(args);
}

@Override
public String getName() {
return "Test";
}

@Override
public void initialize(final Bootstrap<TestConfiguration> bootstrap) {
bootstrap.addBundle(new SwaggerBundle<>() {
Expand All @@ -27,6 +29,7 @@ protected SwaggerBundleConfiguration getSwaggerBundleConfiguration(
}
});
}

@Override
public void run(final TestConfiguration configuration,
final Environment environment) {
Expand Down
1 change: 1 addition & 0 deletions src/main/java/org/example/TestConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public class TestConfiguration extends Configuration {
@NotNull
private final SwaggerBundleConfiguration swagger =
new SwaggerBundleConfiguration();

@JsonProperty("swagger")
public SwaggerBundleConfiguration getSwagger() {
swagger.setResourcePackage("org.example.controllers");
Expand Down
Loading