Finally fixed build output

This commit is contained in:
Laurent
2025-12-10 09:12:12 +01:00
parent cf97429ad9
commit 968f05e37b
27 changed files with 90 additions and 105 deletions

View File

@@ -2,61 +2,47 @@ plugins {
id("java")
}
sourceSets {
create("common") {
java.srcDir("common/src")
}
create("acq") {
java.srcDir("acq/src")
}
create("acs") {
java.srcDir("acs/src")
}
create("externalApp") {
java.srcDir("externalApp/src")
}
create("httpServer") {
java.srcDir("httpServer/src")
}
}
tasks.register<Jar>("jarAcq") {
manifest {
attributes["Main-Class"] = "Main"
attributes["Main-Class"] = "acs.Main"
}
archiveBaseName.set("acq")
from(sourceSets["acq"].output)
from(sourceSets.main.get().output)
dependsOn("classes")
}
tasks.register<Jar>("jarAcs") {
manifest {
attributes["Main-Class"] = "Main"
attributes["Main-Class"] = "acs.Main"
}
archiveBaseName.set("acs")
from(sourceSets["acs"].output)
from(sourceSets.main.get().output)
dependsOn("classes")
}
tasks.register<Jar>("jarExternalApp") {
manifest {
attributes["Main-Class"] = "Main"
attributes["Main-Class"] = "externalApp.Main"
}
archiveBaseName.set("externalApp")
from(sourceSets["externalApp"].output)
from(sourceSets.main.get().output)
dependsOn("classes")
}
tasks.register<Jar>("jarHttpServer") {
manifest {
attributes["Main-Class"] = "Main"
attributes["Main-Class"] = "httpServer.Main"
}
archiveBaseName.set("httpServer")
from(sourceSets["httpServer"].output)
from(sourceSets.main.get().output)
dependsOn("classes")
}

View File

@@ -1,4 +1,4 @@
package acq.acq.src;
package acq;
import java.io.IOException;
import javax.net.ssl.KeyManagerFactory;
@@ -7,12 +7,12 @@ import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
import javax.net.ssl.TrustManagerFactory;
import common.common.src.crypto.KeyFactory;
import common.common.src.logger.Logger;
import static common.common.src.ports.Ports.ACQ_SERVER_PORT;
import static common.common.src.ports.Ports.ACS_SERVER_PORT;
import common.common.src.requestHandlers.SSLServerFactory;
import common.common.src.socket.SocketManager;
import common.crypto.KeyFactory;
import common.logger.Logger;
import static common.ports.Ports.ACQ_SERVER_PORT;
import static common.ports.Ports.ACS_SERVER_PORT;
import common.requestHandlers.SSLServerFactory;
import common.socket.SocketManager;
public class Main {

View File

@@ -1,13 +1,13 @@
package acs.acs.src;
package acs;
import acs.acs.src.json.CreditCard;
import acs.acs.src.json.Payload;
import common.common.src.crypto.KeyFactory;
import common.common.src.crypto.CryptoUtils;
import common.common.src.json.JsonManager;
import common.common.src.logger.Logger;
import common.common.src.requestHandlers.SSLServerFactory;
import common.common.src.socket.SocketManager;
import acs.json.CreditCard;
import acs.json.Payload;
import common.crypto.KeyFactory;
import common.crypto.CryptoUtils;
import common.json.JsonManager;
import common.logger.Logger;
import common.requestHandlers.SSLServerFactory;
import common.socket.SocketManager;
import javax.net.ssl.*;
@@ -21,8 +21,8 @@ import java.time.YearMonth;
import java.util.Base64;
import java.util.Map;
import static common.common.src.ports.Ports.ACS_SERVER_PORT;
import static common.common.src.ports.Ports.AUTH_PORT;
import static common.ports.Ports.ACS_SERVER_PORT;
import static common.ports.Ports.AUTH_PORT;
public class Main {

View File

@@ -1,6 +1,6 @@
package acs.acs.src;
package acs;
import common.common.src.crypto.CryptoUtils;
import common.crypto.CryptoUtils;
import java.util.HashMap;
import java.util.Map;

View File

@@ -1,4 +1,4 @@
package acs.acs.src.json;
package acs.json;
import com.fasterxml.jackson.annotation.JsonProperty;

View File

@@ -1,4 +1,4 @@
package acs.acs.src.json;
package acs.json;
import com.fasterxml.jackson.annotation.JsonProperty;

View File

@@ -1,4 +1,4 @@
package common.common.src.crypto;
package common.crypto;
import java.nio.charset.StandardCharsets;
import java.security.*;

View File

@@ -1,4 +1,4 @@
package common.common.src.crypto;
package common.crypto;
import javax.net.ssl.KeyManagerFactory;
import javax.net.ssl.TrustManagerFactory;

View File

@@ -1,4 +1,4 @@
package common.common.src.html;
package common.html;
import java.io.*;

View File

@@ -1,4 +1,4 @@
package common.common.src.json;
package common.json;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;

View File

@@ -1,4 +1,4 @@
package common.common.src.logger;
package common.logger;
public class Logger {
public static void displayInfo(String message){

View File

@@ -1,4 +1,4 @@
package common.common.src.ports;
package common.ports;
public class Ports {
/**

View File

@@ -1,6 +1,6 @@
package common.common.src.requestHandlers;
package common.requestHandlers;
import common.common.src.logger.Logger;
import common.logger.Logger;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLServerSocket;

View File

@@ -1,4 +1,4 @@
package common.common.src.socket;
package common.socket;
import java.io.BufferedReader;
import java.io.IOException;

View File

@@ -1,13 +1,13 @@
package externalApp.externalApp.src;
package externalApp;
import common.common.src.crypto.CryptoUtils;
import common.common.src.crypto.KeyFactory;
import common.common.src.json.JsonManager;
import common.common.src.logger.Logger;
import common.crypto.CryptoUtils;
import common.crypto.KeyFactory;
import common.json.JsonManager;
import common.logger.Logger;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;
import common.common.src.socket.SocketManager;
import externalApp.externalApp.src.json.Payload;
import common.socket.SocketManager;
import externalApp.json.Payload;
import javax.net.ssl.*;
import java.io.*;
@@ -17,7 +17,8 @@ import java.security.*;
import java.security.cert.CertificateException;
import java.util.Base64;
import static common.common.src.ports.Ports.*;
import static common.ports.Ports.ACS_HOST;
import static common.ports.Ports.AUTH_PORT;
public class Main {

View File

@@ -1,4 +1,4 @@
package externalApp.externalApp.src.json;
package externalApp.json;
import com.fasterxml.jackson.annotation.JsonProperty;

View File

@@ -1,22 +1,20 @@
package httpServer.httpServer.src;
package httpServer;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.sun.net.httpserver.HttpsConfigurator;
import com.sun.net.httpserver.HttpsParameters;
import com.sun.net.httpserver.HttpsServer;
import common.common.src.crypto.KeyFactory;
import common.common.src.logger.Logger;
import common.common.src.socket.SocketManager;
import httpServer.httpServer.src.handlers.IRequestHandler;
import httpServer.httpServer.src.handlers.RequestHandler;
import httpServer.httpServer.src.interceptors.RequestInterceptor;
import common.crypto.KeyFactory;
import common.logger.Logger;
import httpServer.handlers.IRequestHandler;
import httpServer.handlers.RequestHandler;
import httpServer.interceptors.RequestInterceptor;
import javax.net.ssl.*;
import java.lang.reflect.Proxy;
import java.net.InetSocketAddress;
import static common.common.src.ports.Ports.*;
import static common.ports.Ports.HTTP_SERVER_PORT;
public class Main {

View File

@@ -1,4 +1,4 @@
package httpServer.httpServer.src.annotations;
package httpServer.annotations;
import java.lang.annotation.*;

View File

@@ -1,4 +1,4 @@
package httpServer.httpServer.src.annotations;
package httpServer.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;

View File

@@ -1,6 +1,5 @@
package authorization;
package httpServer.authorization;
import httpServer.httpServer.src.authorization.Client;
import org.springframework.security.crypto.bcrypt.BCrypt;
import java.util.*;

View File

@@ -1,4 +1,4 @@
package httpServer.httpServer.src.authorization;
package httpServer.authorization;
import java.util.Objects;

View File

@@ -1,4 +1,4 @@
package httpServer.httpServer.src.authorization;
package httpServer.authorization;
import org.springframework.security.crypto.bcrypt.BCrypt;

View File

@@ -1,4 +1,4 @@
package httpServer.httpServer.src.exceptions;
package httpServer.exceptions;
public class ClientAuthorisationException extends Exception {

View File

@@ -1,4 +1,4 @@
package httpServer.httpServer.src.exceptions;
package httpServer.exceptions;
public class NoSuchVerbException extends Exception {

View File

@@ -1,4 +1,4 @@
package httpServer.httpServer.src.handlers;
package httpServer.handlers;
import com.sun.net.httpserver.HttpExchange;

View File

@@ -1,17 +1,16 @@
package httpServer.httpServer.src.handlers;
package httpServer.handlers;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.sun.net.httpserver.HttpExchange;
import common.common.src.html.HtmlManager;
import common.common.src.json.JsonManager;
import common.common.src.logger.Logger;
import common.common.src.socket.SocketManager;
import httpServer.httpServer.src.annotations.AllowedVerb;
import httpServer.httpServer.src.authorization.Client;
import common.html.HtmlManager;
import common.json.JsonManager;
import common.logger.Logger;
import common.socket.SocketManager;
import httpServer.annotations.AllowedVerb;
import httpServer.authorization.Client;
import static common.common.src.ports.Ports.*;
import authorization.AuthorizedClients;
import httpServer.authorization.AuthorizedClients;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
@@ -20,6 +19,8 @@ import java.io.*;
import java.nio.charset.StandardCharsets;
import java.util.Map;
import static common.ports.Ports.ACQ_SERVER_PORT;
public class RequestHandler implements IRequestHandler {
private final AuthorizedClients authorizedClients = new AuthorizedClients();

View File

@@ -1,12 +1,12 @@
package httpServer.httpServer.src.interceptors;
package httpServer.interceptors;
import com.sun.net.httpserver.HttpExchange;
import common.common.src.logger.Logger;
import httpServer.httpServer.src.annotations.AllowedVerb;
import httpServer.httpServer.src.annotations.OnlyAuthorizedClients;
import authorization.AuthorizedClients;
import httpServer.httpServer.src.exceptions.NoSuchVerbException;
import httpServer.httpServer.src.exceptions.ClientAuthorisationException;
import common.logger.Logger;
import httpServer.annotations.AllowedVerb;
import httpServer.annotations.OnlyAuthorizedClients;
import httpServer.authorization.AuthorizedClients;
import httpServer.exceptions.NoSuchVerbException;
import httpServer.exceptions.ClientAuthorisationException;
import java.io.IOException;
import java.lang.reflect.*;