Skip to content

Commit

Permalink
Use codbex-platform-parent (#562)
Browse files Browse the repository at this point in the history
  • Loading branch information
iliyan-velichkov authored May 23, 2024
1 parent 666253e commit 578b24a
Show file tree
Hide file tree
Showing 873 changed files with 201,542 additions and 178,512 deletions.
61 changes: 2 additions & 59 deletions application/pom.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

Expand All @@ -14,12 +14,10 @@
<artifactId>codbex-kronos-application</artifactId>
<packaging>jar</packaging>


<dependencies>
<dependency>
<groupId>com.codbex.kronos</groupId>
<artifactId>codbex-kronos-branding</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>

<!-- Core -->
Expand Down Expand Up @@ -209,7 +207,6 @@
<artifactId>codbex-kronos-components-template-python</artifactId>
</dependency>


<!-- Dialects -->
<dependency>
<groupId>org.postgresql</groupId>
Expand All @@ -223,69 +220,15 @@
<groupId>com.sap.cloud.db.jdbc</groupId>
<artifactId>ngdbc</artifactId>
</dependency>

</dependencies>


<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>com.codbex.kronos.KronosApplication</mainClass>
<jvmArguments>
<argument>--add-opens java.base/java.lang=ALL-UNNAMED</argument>
<argument>--add-opens java.base/java.lang.reflect=ALL-UNNAMED</argument>
</jvmArguments>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven.surefire.plugin.version}</version>
<configuration>
<argLine>
@{argLine}
--add-opens java.base/java.lang=ALL-UNNAMED
--add-opens java.base/java.lang.reflect=ALL-UNNAMED
</argLine>
</configuration>
</plugin>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<version>${git-commit-id-plugin.version}</version>
<executions>
<execution>
<id>get-the-git-infos</id>
<goals>
<goal>revision</goal>
</goals>
</execution>
</executions>
<configuration>
<dotGitDirectory>../.git</dotGitDirectory>
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>

<properties>
<license.header.location>../licensing-header.txt</license.header.location>
</properties>

</project>
18 changes: 8 additions & 10 deletions application/src/main/java/com/codbex/kronos/KronosApplication.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/*
* Copyright (c) 2022-2023 codbex or an codbex affiliate company and contributors
* Copyright (c) 2022 codbex or an codbex affiliate company and contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* All rights reserved. This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v2.0 which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* SPDX-FileCopyrightText: 2022 codbex or an codbex affiliate company and contributors
Expand All @@ -25,14 +24,13 @@
@EnableJpaAuditing
@EnableJpaRepositories(basePackages = "com.codbex.kronos")
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, DataSourceTransactionManagerAutoConfiguration.class,
HibernateJpaAutoConfiguration.class, JdbcTemplateAutoConfiguration.class})
HibernateJpaAutoConfiguration.class, JdbcTemplateAutoConfiguration.class})
@ComponentScan({"org.eclipse.dirigible", "com.codbex.kronos"})
@EnableScheduling
public class KronosApplication {

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


}
}
2 changes: 1 addition & 1 deletion application/src/main/resources/static/META-INF/context.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<!--
Copyright (c) 2022-2023 codbex or an codbex affiliate company and contributors
Copyright (c) 2022 codbex or an codbex affiliate company and contributors
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v2.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/*
* Copyright (c) 2022-2023 codbex or an codbex affiliate company and contributors
* Copyright (c) 2022 codbex or an codbex affiliate company and contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* All rights reserved. This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v2.0 which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* SPDX-FileCopyrightText: 2022 codbex or an codbex affiliate company and contributors
Expand All @@ -17,9 +16,8 @@

@SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT)
public class KronosApplicationTest {

@Test
public void contextLoads() {
}

@Test
public void contextLoads() {}

}
4 changes: 0 additions & 4 deletions branding/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,4 @@
<artifactId>codbex-kronos-branding</artifactId>
<packaging>jar</packaging>

<properties>
<license.header.location>../licensing-header.txt</license.header.location>
</properties>

</project>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022-2023 codbex or an codbex affiliate company and contributors
* Copyright (c) 2022 codbex or an codbex affiliate company and contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022-2023 codbex or an codbex affiliate company and contributors
* Copyright (c) 2022 codbex or an codbex affiliate company and contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022-2023 codbex or an codbex affiliate company and contributors
* Copyright (c) 2022 codbex or an codbex affiliate company and contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
Expand Down
4 changes: 0 additions & 4 deletions components/api-xsjs/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,4 @@
<scope>test</scope>
</dependency>
</dependencies>

<properties>
<license.header.location>../../licensing-header.txt</license.header.location>
</properties>
</project>
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/*
* Copyright (c) 2022-2023 codbex or an codbex affiliate company and contributors
* Copyright (c) 2022 codbex or an codbex affiliate company and contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* All rights reserved. This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v2.0 which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* SPDX-FileCopyrightText: 2022 codbex or an codbex affiliate company and contributors
Expand All @@ -19,64 +18,64 @@
*/
@Component
public class TraceFacade {

/** The Constant KRONOS_LOG_DEBUG_ENABLED. */
private static final String KRONOS_LOG_DEBUG_ENABLED = "KRONOS_LOG_DEBUG_ENABLED";

/** The Constant KRONOS_LOG_ERROR_ENABLED. */
private static final String KRONOS_LOG_ERROR_ENABLED = "KRONOS_LOG_ERROR_ENABLED";

/** The Constant KRONOS_LOG_FATAL_ENABLED. */
private static final String KRONOS_LOG_FATAL_ENABLED = "KRONOS_LOG_FATAL_ENABLED";

/** The Constant KRONOS_LOG_INFO_ENABLED. */
private static final String KRONOS_LOG_INFO_ENABLED = "KRONOS_LOG_INFO_ENABLED";

/** The Constant KRONOS_LOG_WARNING_ENABLED. */
private static final String KRONOS_LOG_WARNING_ENABLED = "KRONOS_LOG_WARNING_ENABLED";

/**
* Checks if is debug enabled.
*
* @return true, if is debug enabled
*/
public static boolean isDebugEnabled() {
return Boolean.parseBoolean(Configuration.get(KRONOS_LOG_DEBUG_ENABLED, "true"));
}
/** The Constant KRONOS_LOG_DEBUG_ENABLED. */
private static final String KRONOS_LOG_DEBUG_ENABLED = "KRONOS_LOG_DEBUG_ENABLED";

/**
* Checks if is error enabled.
*
* @return true, if is error enabled
*/
public static boolean isErrorEnabled() {
return Boolean.parseBoolean(Configuration.get(KRONOS_LOG_ERROR_ENABLED, "true"));
}
/** The Constant KRONOS_LOG_ERROR_ENABLED. */
private static final String KRONOS_LOG_ERROR_ENABLED = "KRONOS_LOG_ERROR_ENABLED";

/**
* Checks if is fatal enabled.
*
* @return true, if is fatal enabled
*/
public static boolean isFatalEnabled() {
return Boolean.parseBoolean(Configuration.get(KRONOS_LOG_FATAL_ENABLED, "true"));
}
/** The Constant KRONOS_LOG_FATAL_ENABLED. */
private static final String KRONOS_LOG_FATAL_ENABLED = "KRONOS_LOG_FATAL_ENABLED";

/**
* Checks if is info enabled.
*
* @return true, if is info enabled
*/
public static boolean isInfoEnabled() {
return Boolean.parseBoolean(Configuration.get(KRONOS_LOG_INFO_ENABLED, "true"));
}
/** The Constant KRONOS_LOG_INFO_ENABLED. */
private static final String KRONOS_LOG_INFO_ENABLED = "KRONOS_LOG_INFO_ENABLED";

/**
* Checks if is warning enabled.
*
* @return true, if is warning enabled
*/
public static boolean isWarningEnabled() {
return Boolean.parseBoolean(Configuration.get(KRONOS_LOG_WARNING_ENABLED, "true"));
}
}
/** The Constant KRONOS_LOG_WARNING_ENABLED. */
private static final String KRONOS_LOG_WARNING_ENABLED = "KRONOS_LOG_WARNING_ENABLED";

/**
* Checks if is debug enabled.
*
* @return true, if is debug enabled
*/
public static boolean isDebugEnabled() {
return Boolean.parseBoolean(Configuration.get(KRONOS_LOG_DEBUG_ENABLED, "true"));
}

/**
* Checks if is error enabled.
*
* @return true, if is error enabled
*/
public static boolean isErrorEnabled() {
return Boolean.parseBoolean(Configuration.get(KRONOS_LOG_ERROR_ENABLED, "true"));
}

/**
* Checks if is fatal enabled.
*
* @return true, if is fatal enabled
*/
public static boolean isFatalEnabled() {
return Boolean.parseBoolean(Configuration.get(KRONOS_LOG_FATAL_ENABLED, "true"));
}

/**
* Checks if is info enabled.
*
* @return true, if is info enabled
*/
public static boolean isInfoEnabled() {
return Boolean.parseBoolean(Configuration.get(KRONOS_LOG_INFO_ENABLED, "true"));
}

/**
* Checks if is warning enabled.
*
* @return true, if is warning enabled
*/
public static boolean isWarningEnabled() {
return Boolean.parseBoolean(Configuration.get(KRONOS_LOG_WARNING_ENABLED, "true"));
}
}
Loading

0 comments on commit 578b24a

Please sign in to comment.