Skip to content

Commit

Permalink
Drop 'org' from package namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
pavetok committed Sep 12, 2023
1 parent 6918983 commit 2c161de
Show file tree
Hide file tree
Showing 132 changed files with 437 additions and 438 deletions.
2 changes: 1 addition & 1 deletion .dx/binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{% endif %}
dependency:get
--define transitive=false
--define artifact=org.smecalculus.bezmen:libs:{{ lib_version }}:pom
--define artifact=smecalculus.bezmen:libs:{{ lib_version }}:pom
chdir: "{{ playbook_dir }}/../libs"
register: binary_status
changed_when: binary_status.rc != 0
Expand Down
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ updates:
schedule:
interval: "weekly"
ignore:
- dependency-name: "org.smecalculus.bezmen:*"
- dependency-name: "smecalculus.bezmen:*"
- package-ecosystem: "maven"
directory: "/tests"
schedule:
interval: "weekly"
ignore:
- dependency-name: "org.smecalculus.bezmen:*"
- dependency-name: "smecalculus.bezmen:*"
- package-ecosystem: "maven"
directory: "/.tools"
schedule:
Expand Down
2 changes: 1 addition & 1 deletion .tools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>org.smecalculus.bezmen</groupId>
<groupId>smecalculus.bezmen</groupId>
<artifactId>tools</artifactId>
<version>latest</version>

Expand Down
3 changes: 1 addition & 2 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
. Параллелизация модульных тестов
. Построение дерева хешей (взглянуть критически)
. Версионирование библиотек и приложений (взглянуть критически)
. Агрегация отчетов покрытия (взглянуть критически)
. Локальные проверки в удаленном репозитории
. Чистка пакетов в удаленном репозитории
. Чистка артефактов в удаленном репозитории
. Поддержка нескольких версий Java
2 changes: 1 addition & 1 deletion apps/foo/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ COPY app-foo*.jar foo/app.jar
ENTRYPOINT [ \
"java", "-cp", "foo/app.jar:foo/libs/*", \
"-Dconfig.file=foo/application.conf", \
"org.smecalculus.bezmen.construction.spec.App" \
"smecalculus.bezmen.construction.spec.App" \
]
4 changes: 2 additions & 2 deletions apps/foo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.smecalculus.bezmen</groupId>
<groupId>smecalculus.bezmen</groupId>
<artifactId>apps</artifactId>
<version>${revision}</version>
</parent>
Expand Down Expand Up @@ -79,7 +79,7 @@
<id>analyze</id>
<configuration>
<usedDependencies>
<usedDependency>org.smecalculus.bezmen:construction</usedDependency>
<usedDependency>smecalculus.bezmen:construction</usedDependency>
</usedDependencies>
<ignoredNonTestScopedDependencies>
<ignoredNonTestScopedDependency>org.springframework:spring-beans</ignoredNonTestScopedDependency>
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,26 +1,9 @@
package org.smecalculus.bezmen.construction.spec;
package smecalculus.bezmen.construction.spec;

import static org.smecalculus.bezmen.configuration.spec.OrmMode.MY_BATIS;
import static org.smecalculus.bezmen.configuration.spec.OrmMode.SPRING_DATA;
import static org.smecalculus.bezmen.configuration.spec.WebMode.SPRING_MVC;
import static smecalculus.bezmen.configuration.spec.OrmMode.MY_BATIS;
import static smecalculus.bezmen.configuration.spec.OrmMode.SPRING_DATA;
import static smecalculus.bezmen.configuration.spec.WebMode.SPRING_MVC;

import org.smecalculus.bezmen.data.impl.SepulkaDaoMyBatis;
import org.smecalculus.bezmen.data.impl.SepulkaDaoSpringData;
import org.smecalculus.bezmen.data.spec.SepulkaDao;
import org.smecalculus.bezmen.data.spec.SepulkaRecMapper;
import org.smecalculus.bezmen.data.spec.SepulkaRecMapperImpl;
import org.smecalculus.bezmen.data.spec.mybatis.SepulkaSqlMapper;
import org.smecalculus.bezmen.data.spec.springdata.SepulkaRepository;
import org.smecalculus.bezmen.domain.impl.SepulkaConverterImpl;
import org.smecalculus.bezmen.domain.impl.SepulkaServiceImpl;
import org.smecalculus.bezmen.domain.spec.SepulkaConverter;
import org.smecalculus.bezmen.domain.spec.SepulkaService;
import org.smecalculus.bezmen.messaging.impl.SepulkaClientImpl;
import org.smecalculus.bezmen.messaging.impl.springmvc.SepulkaController;
import org.smecalculus.bezmen.messaging.spec.SepulkaClient;
import org.smecalculus.bezmen.messaging.spec.SepulkaMsgMapper;
import org.smecalculus.bezmen.messaging.spec.SepulkaMsgMapperImpl;
import org.smecalculus.bezmen.validation.spec.BezmenValidator;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.actuate.autoconfigure.health.HealthContributorAutoConfiguration;
import org.springframework.boot.actuate.autoconfigure.jdbc.DataSourceHealthContributorAutoConfiguration;
Expand All @@ -41,6 +24,23 @@
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import smecalculus.bezmen.data.impl.SepulkaDaoMyBatis;
import smecalculus.bezmen.data.impl.SepulkaDaoSpringData;
import smecalculus.bezmen.data.spec.SepulkaDao;
import smecalculus.bezmen.data.spec.SepulkaRecMapper;
import smecalculus.bezmen.data.spec.SepulkaRecMapperImpl;
import smecalculus.bezmen.data.spec.mybatis.SepulkaSqlMapper;
import smecalculus.bezmen.data.spec.springdata.SepulkaRepository;
import smecalculus.bezmen.domain.impl.SepulkaConverterImpl;
import smecalculus.bezmen.domain.impl.SepulkaServiceImpl;
import smecalculus.bezmen.domain.spec.SepulkaConverter;
import smecalculus.bezmen.domain.spec.SepulkaService;
import smecalculus.bezmen.messaging.impl.SepulkaClientImpl;
import smecalculus.bezmen.messaging.impl.springmvc.SepulkaController;
import smecalculus.bezmen.messaging.spec.SepulkaClient;
import smecalculus.bezmen.messaging.spec.SepulkaMsgMapper;
import smecalculus.bezmen.messaging.spec.SepulkaMsgMapperImpl;
import smecalculus.bezmen.validation.spec.BezmenValidator;

@Import({ConfigBeans.class, ValidationBeans.class, MessagingBeans.class, DataBeans.class})
@EnableAutoConfiguration(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package org.smecalculus.bezmen.data.impl;
package smecalculus.bezmen.data.impl;

import static java.util.stream.Collectors.toList;

import java.util.List;
import java.util.UUID;
import lombok.NonNull;
import org.smecalculus.bezmen.data.spec.SepulkaDao;
import org.smecalculus.bezmen.data.spec.SepulkaRec;
import org.smecalculus.bezmen.data.spec.SepulkaRecMapper;
import org.smecalculus.bezmen.data.spec.mybatis.SepulkaSqlMapper;
import org.smecalculus.bezmen.domain.spec.Sepulka;
import smecalculus.bezmen.data.spec.SepulkaDao;
import smecalculus.bezmen.data.spec.SepulkaRec;
import smecalculus.bezmen.data.spec.SepulkaRecMapper;
import smecalculus.bezmen.data.spec.mybatis.SepulkaSqlMapper;
import smecalculus.bezmen.domain.spec.Sepulka;

public record SepulkaDaoMyBatis(@NonNull SepulkaRecMapper recMapper, @NonNull SepulkaSqlMapper sqlMapper)
implements SepulkaDao {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
package org.smecalculus.bezmen.data.impl;
package smecalculus.bezmen.data.impl;

import static java.util.stream.Collectors.toList;
import static java.util.stream.StreamSupport.stream;

import java.util.List;
import java.util.UUID;
import lombok.NonNull;
import org.smecalculus.bezmen.data.spec.SepulkaDao;
import org.smecalculus.bezmen.data.spec.SepulkaRec;
import org.smecalculus.bezmen.data.spec.SepulkaRecMapper;
import org.smecalculus.bezmen.data.spec.springdata.SepulkaRepository;
import org.smecalculus.bezmen.domain.spec.Sepulka;
import smecalculus.bezmen.data.spec.SepulkaDao;
import smecalculus.bezmen.data.spec.SepulkaRec;
import smecalculus.bezmen.data.spec.SepulkaRecMapper;
import smecalculus.bezmen.data.spec.springdata.SepulkaRepository;
import smecalculus.bezmen.domain.spec.Sepulka;

public record SepulkaDaoSpringData(@NonNull SepulkaRecMapper mapper, @NonNull SepulkaRepository repository)
implements SepulkaDao {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package org.smecalculus.bezmen.data.spec;
package smecalculus.bezmen.data.spec;

import java.util.List;
import java.util.UUID;
import org.smecalculus.bezmen.domain.spec.Sepulka;
import smecalculus.bezmen.domain.spec.Sepulka;

public interface SepulkaDao {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.smecalculus.bezmen.data.spec;
package smecalculus.bezmen.data.spec;

import lombok.Data;
import org.springframework.data.annotation.Id;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.smecalculus.bezmen.data.spec;
package smecalculus.bezmen.data.spec;

import org.mapstruct.Mapper;
import org.smecalculus.bezmen.domain.spec.Sepulka;
import smecalculus.bezmen.domain.spec.Sepulka;

@Mapper
public interface SepulkaRecMapper {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package org.smecalculus.bezmen.data.spec.mybatis;
package smecalculus.bezmen.data.spec.mybatis;

import java.util.List;
import java.util.Optional;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.smecalculus.bezmen.data.spec.SepulkaRec;
import smecalculus.bezmen.data.spec.SepulkaRec;

public interface SepulkaSqlMapper {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.smecalculus.bezmen.data.spec.springdata;
package smecalculus.bezmen.data.spec.springdata;

import org.smecalculus.bezmen.data.spec.SepulkaRec;
import org.springframework.data.repository.CrudRepository;
import smecalculus.bezmen.data.spec.SepulkaRec;

public interface SepulkaRepository extends CrudRepository<SepulkaRec, String> {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package smecalculus.bezmen.domain.impl;

import smecalculus.bezmen.domain.spec.Sepulka;
import smecalculus.bezmen.domain.spec.SepulkaConverter;
import smecalculus.bezmen.messaging.spec.SepulkaRegRes;

public class SepulkaConverterImpl implements SepulkaConverter {
public SepulkaRegRes toRegRes(Sepulka sepulka) {
return new SepulkaRegRes(sepulka.id(), sepulka.name());
}
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package org.smecalculus.bezmen.domain.impl;
package smecalculus.bezmen.domain.impl;

import static java.util.UUID.randomUUID;

import java.util.List;
import lombok.NonNull;
import org.smecalculus.bezmen.data.spec.SepulkaDao;
import org.smecalculus.bezmen.domain.spec.Sepulka;
import org.smecalculus.bezmen.domain.spec.SepulkaService;
import org.smecalculus.bezmen.messaging.spec.SepulkaRegReq;
import smecalculus.bezmen.data.spec.SepulkaDao;
import smecalculus.bezmen.domain.spec.Sepulka;
import smecalculus.bezmen.domain.spec.SepulkaService;
import smecalculus.bezmen.messaging.spec.SepulkaRegReq;

public record SepulkaServiceImpl(@NonNull SepulkaDao sepulkaDao) implements SepulkaService {

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package smecalculus.bezmen.messaging.impl;

import lombok.NonNull;
import smecalculus.bezmen.domain.spec.Sepulka;
import smecalculus.bezmen.domain.spec.SepulkaConverter;
import smecalculus.bezmen.domain.spec.SepulkaService;
import smecalculus.bezmen.messaging.spec.SepulkaClient;
import smecalculus.bezmen.messaging.spec.SepulkaRegReq;
import smecalculus.bezmen.messaging.spec.SepulkaRegRes;
import smecalculus.bezmen.validation.spec.BezmenValidator;

public record SepulkaClientImpl(
@NonNull BezmenValidator validator, @NonNull SepulkaService service, @NonNull SepulkaConverter converter)
implements SepulkaClient {

@Override
public SepulkaRegRes register(SepulkaRegReq request) {
validator.validate(request);
Sepulka sepulka = service.register(request);
return converter.toRegRes(sepulka);
}
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
package org.smecalculus.bezmen.messaging.impl.springmvc;
package smecalculus.bezmen.messaging.impl.springmvc;

import org.smecalculus.bezmen.messaging.spec.SepulkaClient;
import org.smecalculus.bezmen.messaging.spec.SepulkaMsgMapper;
import org.smecalculus.bezmen.messaging.spec.SepulkaRegReq;
import org.smecalculus.bezmen.messaging.spec.SepulkaRegReqMsg;
import org.smecalculus.bezmen.messaging.spec.SepulkaRegRes;
import org.smecalculus.bezmen.messaging.spec.SepulkaRegResMsg;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import smecalculus.bezmen.messaging.spec.SepulkaClient;
import smecalculus.bezmen.messaging.spec.SepulkaMsgMapper;
import smecalculus.bezmen.messaging.spec.SepulkaRegReq;
import smecalculus.bezmen.messaging.spec.SepulkaRegReqMsg;
import smecalculus.bezmen.messaging.spec.SepulkaRegRes;
import smecalculus.bezmen.messaging.spec.SepulkaRegResMsg;

@RestController
@RequestMapping("sepulkas")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.smecalculus.bezmen.messaging.spec;
package smecalculus.bezmen.messaging.spec;

import org.mapstruct.Mapper;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.smecalculus.bezmen.messaging.spec;
package smecalculus.bezmen.messaging.spec;

import lombok.Data;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.smecalculus.bezmen.messaging.spec;
package smecalculus.bezmen.messaging.spec;

import lombok.Data;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
package org.smecalculus.bezmen.construction.spec;
package smecalculus.bezmen.construction.spec;

import static org.mockito.Mockito.mock;

import org.smecalculus.bezmen.domain.impl.SepulkaConverterImpl;
import org.smecalculus.bezmen.domain.spec.SepulkaConverter;
import org.smecalculus.bezmen.domain.spec.SepulkaService;
import org.smecalculus.bezmen.messaging.impl.SepulkaClientImpl;
import org.smecalculus.bezmen.messaging.impl.SepulkaClientSpringWeb;
import org.smecalculus.bezmen.messaging.impl.springmvc.SepulkaController;
import org.smecalculus.bezmen.messaging.spec.SepulkaClient;
import org.smecalculus.bezmen.messaging.spec.SepulkaMsgMapper;
import org.smecalculus.bezmen.messaging.spec.SepulkaMsgMapperImpl;
import org.smecalculus.bezmen.validation.spec.BezmenValidator;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.test.web.reactive.server.WebTestClient;
import org.springframework.test.web.servlet.client.MockMvcWebTestClient;
import smecalculus.bezmen.domain.impl.SepulkaConverterImpl;
import smecalculus.bezmen.domain.spec.SepulkaConverter;
import smecalculus.bezmen.domain.spec.SepulkaService;
import smecalculus.bezmen.messaging.impl.SepulkaClientImpl;
import smecalculus.bezmen.messaging.impl.SepulkaClientSpringWeb;
import smecalculus.bezmen.messaging.impl.springmvc.SepulkaController;
import smecalculus.bezmen.messaging.spec.SepulkaClient;
import smecalculus.bezmen.messaging.spec.SepulkaMsgMapper;
import smecalculus.bezmen.messaging.spec.SepulkaMsgMapperImpl;
import smecalculus.bezmen.validation.spec.BezmenValidator;

@Import(ValidationBeans.class)
@Configuration(proxyBeanMethods = false)
Expand Down
Loading

0 comments on commit 2c161de

Please sign in to comment.