Skip to content

Commit

Permalink
Adjusts license copyright / introduces web module
Browse files Browse the repository at this point in the history
  • Loading branch information
bsantanna committed May 25, 2024
1 parent a0a2208 commit 0116176
Show file tree
Hide file tree
Showing 27 changed files with 538 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-pipeline.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# LearnMate - AI Learning Assistant
# Copyright (C) 2024 Bruno César Brito Sant'Anna
# Copyright (C) 2024 - LearnMate Developers
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-pipeline.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# LearnMate - AI Learning Assistant
# Copyright (C) 2024 Bruno César Brito Sant'Anna
# Copyright (C) 2024 - LearnMate Developers
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

LearnMate - AI Learning Assistant
Copyright (C) 2024 Bruno César Brito Sant'Anna
Copyright (C) 2024 - LearnMate Developers

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down
71 changes: 71 additions & 0 deletions api/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
LearnMate - AI Learning Assistant
Copyright (C) 2024 - LearnMate Developers
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses />.
-->

<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<parent>
<groupId>software.btech.learnmate</groupId>
<artifactId>learnmate</artifactId>
<version>1.4.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<dependencies>
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
<version>${spring-doc.version}</version>
</dependency>

<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<name>LearnMate - API</name>
<artifactId>api</artifactId>
<packaging>pom</packaging>

<modules>
<module>web</module>
</modules>

<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>

</project>
88 changes: 88 additions & 0 deletions api/web/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
LearnMate - AI Learning Assistant
Copyright (C) 2024 - LearnMate Developers
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses />.
-->

<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>software.btech.learnmate</groupId>
<artifactId>api</artifactId>
<version>1.4.0-SNAPSHOT</version>
</parent>
<artifactId>web</artifactId>
<name>LearnMate - API web</name>

<dependencies>

<dependency>
<groupId>software.btech.learnmate</groupId>
<artifactId>test-support</artifactId>
<version>${parent.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<finalName>learnmate-api-${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-maven-plugin</artifactId>
<version>${jib.version}</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>dockerBuild</goal>
</goals>
<configuration>
<containerizingMode>packaged</containerizingMode>
<from>
<image>
eclipse-temurin:21-jre-alpine
</image>
</from>
<to>
<image>${project.build.finalName}</image>
</to>
<container>
<jvmFlags>
<jvmFlag>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:8000</jvmFlag>
</jvmFlags>
<mainClass>software.btech.learnmate.api.web.WebApplication</mainClass>
<ports>
<port>8080</port>
<port>8000</port>
</ports>
<format>OCI</format>
</container>
</configuration>
</execution>
</executions>
</plugin>

</plugins>
</build>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/*
LearnMate - AI Learning Assistant
Copyright (C) 2024 - LearnMate Developers
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses />.
*/

package software.btech.learnmate.api.web;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@ComponentScan(
basePackages = {"software.btech.learnmate"}
)
public class WebApplication {

public static void main(String[] args) {
SpringApplication.run(WebApplication.class, args);
}

}
25 changes: 24 additions & 1 deletion coverage-support/pom.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
LearnMate - AI Learning Assistant
Copyright (C) 2024 - LearnMate Developers
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses />.
-->

<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
Expand All @@ -11,7 +30,11 @@
<name>LearnMate - Coverage Support</name>

<dependencies>

<dependency>
<groupId>software.btech.learnmate</groupId>
<artifactId>web</artifactId>
<version>${parent.version</version>
</dependency>
</dependencies>
</project>
19 changes: 19 additions & 0 deletions framework/pom.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
LearnMate - AI Learning Assistant
Copyright (C) 2024 - LearnMate Developers
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses />.
-->

<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
Expand Down
19 changes: 19 additions & 0 deletions framework/test-support/pom.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
LearnMate - AI Learning Assistant
Copyright (C) 2024 - LearnMate Developers
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses />.
-->

<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
/*
LearnMate - AI Learning Assistant
Copyright (C) 2024 - LearnMate Developers
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses />.
*/


package software.btech.learnmate.framework.test_support.test_containers;

import lombok.extern.slf4j.Slf4j;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
/*
LearnMate - AI Learning Assistant
Copyright (C) 2024 - LearnMate Developers
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses />.
*/


package software.btech.learnmate.framework.test_support.wiremock;

import com.github.tomakehurst.wiremock.WireMockServer;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
LearnMate - AI Learning Assistant
Copyright (C) 2024 - LearnMate Developers
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses />.
*/

package software.btech.learnmate.framework.test_support.wiremock;

import com.github.tomakehurst.wiremock.WireMockServer;
Expand Down
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!--
LearnMate - AI Learning Assistant
Copyright (C) 2024 Bruno César Brito Sant'Anna
Copyright (C) 2024 - LearnMate Developers
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -80,6 +80,7 @@
<modules>
<module>schema</module>
<module>framework</module>
<module>api</module>
</modules>

<dependencyManagement>
Expand Down
2 changes: 1 addition & 1 deletion schema/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<!--
LearnMate - AI Learning Assistant
Copyright (C) 2024 Bruno César Brito Sant'Anna
Copyright (C) 2024 - LearnMate Developers
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down
Loading

0 comments on commit 0116176

Please sign in to comment.