Switch to Gradle and update project structure

Replaced Maven with Gradle, updating configurations and dependencies to reflect the change. Added IntelliJ IDEA project settings and updated `.gitignore` for Gradle, IDE, and OS-specific files. Refactored package names and added enhancements such as compiler arguments and environmental versioning.
This commit is contained in:
dalbodeule
2025-05-14 22:07:02 +09:00
parent e4ea60fd85
commit 2e3e11aafb
18 changed files with 236 additions and 350 deletions

View File

@@ -223,6 +223,7 @@ public class SnapAdmin {
field.setSchema(schema);
schema.addField(field);
} catch (UnsupportedFieldTypeException e) {
if(klass.getSimpleName().startsWith("$$_hibernate")) continue;
logger.warn("The class " + klass.getSimpleName() + " contains the field `"
+ f.getName() + "` of type `" + f.getType().getSimpleName() + "`, which is not supported");
schema.addError(

View File

@@ -53,7 +53,7 @@ import space.mori.dalbodeule.snapadmin.internal.InternalSnapAdminConfiguration;
@Configuration
@EnableJpaRepositories(
entityManagerFactoryRef = "internalEntityManagerFactory",
basePackages = { "tech.ailef.snapadmin.internal.repository" }
basePackages = { "space.mori.dalbodeule.snapadmin.internal.repository" }
)
@EnableTransactionManagement
@Import(InternalSnapAdminConfiguration.class)
@@ -86,7 +86,7 @@ public class SnapAdminAutoConfiguration {
LocalContainerEntityManagerFactoryBean factoryBean = new LocalContainerEntityManagerFactoryBean();
factoryBean.setDataSource(internalDataSource());
factoryBean.setPersistenceUnitName("internal");
factoryBean.setPackagesToScan("tech.ailef.snapadmin.internal.model");
factoryBean.setPackagesToScan("space.mori.dalbodeule.snapadmin.internal.model");
factoryBean.setJpaVendorAdapter(new HibernateJpaVendorAdapter());
Properties properties = new Properties();
properties.setProperty("hibernate.dialect", "org.hibernate.dialect.H2Dialect");

View File

@@ -41,6 +41,7 @@ import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Import;
import org.springframework.http.HttpHeaders;
import org.springframework.http.ResponseEntity;

View File

@@ -32,7 +32,7 @@
</div>
<h5 class="fw-bold mt-3">Export format</h3>
<select name="format" class="form-select">
<option th:each="format : ${T(tech.ailef.snapadmin.external.dto.DataExportFormat).values()}"
<option th:each="format : ${T(space.mori.dalbodeule.snapadmin.external.dto.DataExportFormat).values()}"
th:value="${format}" th:text="${format}">
</option>
</select>

View File

@@ -65,7 +65,7 @@
</div>
<h5 class="fw-bold mt-3">Export format</h3>
<select name="format" class="form-select">
<option th:each="format : ${T(tech.ailef.snapadmin.external.dto.DataExportFormat).values()}"
<option th:each="format : ${T(space.mori.dalbodeule.snapadmin.external.dto.DataExportFormat).values()}"
th:value="${format}" th:text="${format}">
</option>
</select>