Permalink
Browse files

-Maven repository for ITUBIDB(maven.test.itu.edu.tr for now and will …

…be change to maven.itu.edu.tr) have been created and implemented in pom.xml file.

- Package name have changed to tr.edu.itu.cavabunga and cavabunga.jar manual dependency removed.
  • Loading branch information...
dgkncelik committed Jun 30, 2018
1 parent 6656bc8 commit 82fcda302e4dd9d70831e6f43e3739a59538ce55
Showing with 125 additions and 113 deletions.
  1. +19 −7 pom.xml
  2. +4 −2 src/main/java/{edu/itu/cavabunga → tr/edu/itu/cavabunga/server}/CavabungaApplication.java
  3. +4 −4 src/main/java/{edu/itu/cavabunga → tr/edu/itu/cavabunga/server}/advice/ExceptionHandlerAdvice.java
  4. +6 −6 src/main/java/{edu/itu/cavabunga → tr/edu/itu/cavabunga/server}/business/CalendarManagerService.java
  5. +9 −9 ...n/java/{edu/itu/cavabunga → tr/edu/itu/cavabunga/server}/business/CalendarManagerServiceImpl.java
  6. +1 −1 src/main/java/{edu/itu/cavabunga → tr/edu/itu/cavabunga/server}/configuration/SwaggerConfig.java
  7. +7 −7 src/main/java/{edu/itu/cavabunga → tr/edu/itu/cavabunga/server}/controller/ComponentController.java
  8. +6 −6 src/main/java/{edu/itu/cavabunga → tr/edu/itu/cavabunga/server}/controller/ParameterController.java
  9. +7 −7 ...main/java/{edu/itu/cavabunga → tr/edu/itu/cavabunga/server}/controller/ParticipantController.java
  10. +7 −7 src/main/java/{edu/itu/cavabunga → tr/edu/itu/cavabunga/server}/controller/PropertyController.java
  11. +12 −15 src/main/java/{edu/itu/cavabunga → tr/edu/itu/cavabunga/server}/controller/SeederController.java
  12. +3 −3 src/main/java/{edu/itu/cavabunga → tr/edu/itu/cavabunga/server}/repository/ComponentRepository.java
  13. +2 −2 src/main/java/{edu/itu/cavabunga → tr/edu/itu/cavabunga/server}/repository/ParameterRepository.java
  14. +2 −2 ...main/java/{edu/itu/cavabunga → tr/edu/itu/cavabunga/server}/repository/ParticipantRepository.java
  15. +2 −2 src/main/java/{edu/itu/cavabunga → tr/edu/itu/cavabunga/server}/repository/PropertyRepository.java
  16. +9 −9 src/main/java/{edu/itu/cavabunga → tr/edu/itu/cavabunga/server}/service/IcalService.java
  17. +14 −14 src/main/java/{edu/itu/cavabunga → tr/edu/itu/cavabunga/server}/service/IcalServiceImpl.java
  18. +3 −3 src/main/java/{edu/itu/cavabunga → tr/edu/itu/cavabunga/server}/service/ParticipantService.java
  19. +5 −5 src/main/java/{edu/itu/cavabunga → tr/edu/itu/cavabunga/server}/service/ParticipantServiceImpl.java
  20. +2 −1 src/main/resources/application.properties
  21. BIN src/main/resources/cavabunga-lib.jar
  22. +1 −1 src/test/java/{edu/itu/cavabunga → tr/edu/itu/cavabunga/server}/CavabungaApplicationTest.java
View
26 pom.xml
@@ -3,12 +3,12 @@
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>tr.edu.itu</groupId>
<groupId>tr.edu.itu.cavabunga</groupId>
<artifactId>cavabunga-server</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>1.0.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>cavabunga</name>
<name>cavabunga-server</name>
<description>Caldav / Carddav Server Implementation</description>
<parent>
@@ -84,14 +84,26 @@
<version>3.7</version>
</dependency>
<dependency>
<groupId>tr.edu.itu</groupId>
<groupId>tr.edu.itu.cavabunga</groupId>
<artifactId>cavabunga-lib</artifactId>
<version>1.0.1</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/resources/cavabunga-lib.jar</systemPath>
<version>1.0.2-SNAPSHOT</version>
</dependency>
</dependencies>
<repositories>
<repository>
<releases>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
<checksumPolicy>fail</checksumPolicy>
</releases>
<id>cavabunga</id>
<name>cavabunga-lib</name>
<url>http://maven.test.itu.edu.tr</url>
<layout>default</layout>
</repository>
</repositories>
<build>
<plugins>
<plugin>
@@ -1,9 +1,11 @@
package edu.itu.cavabunga;
package tr.edu.itu.cavabunga.server;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
@SpringBootApplication
@SpringBootApplication(scanBasePackages = {"tr.edu.itu.cavabunga.server", "tr.edu.itu.cavabunga.lib"})
@EntityScan("tr.edu.itu.cavabunga.lib")
public class CavabungaApplication {
public static void main(String[] args) {
@@ -1,8 +1,8 @@
package edu.itu.cavabunga.advice;
package tr.edu.itu.cavabunga.server.advice;
import edu.itu.cavabunga.lib.exception.Conflict;
import edu.itu.cavabunga.lib.exception.NotFound;
import edu.itu.cavabunga.lib.http.ErrorResponse;
import tr.edu.itu.cavabunga.lib.exception.Conflict;
import tr.edu.itu.cavabunga.lib.exception.NotFound;
import tr.edu.itu.cavabunga.lib.http.ErrorResponse;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseStatus;
@@ -1,10 +1,10 @@
package edu.itu.cavabunga.business;
package tr.edu.itu.cavabunga.server.business;
import edu.itu.cavabunga.lib.entity.Component;
import edu.itu.cavabunga.lib.entity.Parameter;
import edu.itu.cavabunga.lib.entity.Participant;
import edu.itu.cavabunga.lib.entity.Property;
import edu.itu.cavabunga.lib.exception.*;
import tr.edu.itu.cavabunga.lib.entity.Component;
import tr.edu.itu.cavabunga.lib.entity.Parameter;
import tr.edu.itu.cavabunga.lib.entity.Participant;
import tr.edu.itu.cavabunga.lib.entity.Property;
import tr.edu.itu.cavabunga.lib.exception.*;
import java.util.List;
@@ -1,12 +1,12 @@
package edu.itu.cavabunga.business;
import edu.itu.cavabunga.lib.entity.Component;
import edu.itu.cavabunga.lib.entity.Parameter;
import edu.itu.cavabunga.lib.entity.Participant;
import edu.itu.cavabunga.lib.entity.Property;
import edu.itu.cavabunga.service.IcalService;
import edu.itu.cavabunga.service.ParticipantService;
import edu.itu.cavabunga.lib.exception.*;
package tr.edu.itu.cavabunga.server.business;
import tr.edu.itu.cavabunga.lib.entity.Component;
import tr.edu.itu.cavabunga.lib.entity.Parameter;
import tr.edu.itu.cavabunga.lib.entity.Participant;
import tr.edu.itu.cavabunga.lib.entity.Property;
import tr.edu.itu.cavabunga.server.service.IcalService;
import tr.edu.itu.cavabunga.server.service.ParticipantService;
import tr.edu.itu.cavabunga.lib.exception.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@@ -1,4 +1,4 @@
package edu.itu.cavabunga.configuration;
package tr.edu.itu.cavabunga.server.configuration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@@ -1,11 +1,11 @@
package edu.itu.cavabunga.controller;
package tr.edu.itu.cavabunga.server.controller;
import edu.itu.cavabunga.business.CalendarManagerService;
import edu.itu.cavabunga.lib.entity.Component;
import edu.itu.cavabunga.lib.http.ComponentResponse;
import edu.itu.cavabunga.lib.http.ErrorResponse;
import edu.itu.cavabunga.lib.http.PropertyResponse;
import edu.itu.cavabunga.lib.http.Response;
import tr.edu.itu.cavabunga.server.business.CalendarManagerService;
import tr.edu.itu.cavabunga.lib.entity.Component;
import tr.edu.itu.cavabunga.lib.http.ComponentResponse;
import tr.edu.itu.cavabunga.lib.http.ErrorResponse;
import tr.edu.itu.cavabunga.lib.http.PropertyResponse;
import tr.edu.itu.cavabunga.lib.http.Response;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
@@ -1,10 +1,10 @@
package edu.itu.cavabunga.controller;
package tr.edu.itu.cavabunga.server.controller;
import edu.itu.cavabunga.business.CalendarManagerService;
import edu.itu.cavabunga.lib.entity.Parameter;
import edu.itu.cavabunga.lib.http.ErrorResponse;
import edu.itu.cavabunga.lib.http.ParameterResponse;
import edu.itu.cavabunga.lib.http.Response;
import tr.edu.itu.cavabunga.server.business.CalendarManagerService;
import tr.edu.itu.cavabunga.lib.entity.Parameter;
import tr.edu.itu.cavabunga.lib.http.ErrorResponse;
import tr.edu.itu.cavabunga.lib.http.ParameterResponse;
import tr.edu.itu.cavabunga.lib.http.Response;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
@@ -1,11 +1,11 @@
package edu.itu.cavabunga.controller;
package tr.edu.itu.cavabunga.server.controller;
import edu.itu.cavabunga.business.CalendarManagerService;
import edu.itu.cavabunga.lib.entity.Participant;
import edu.itu.cavabunga.lib.http.ComponentResponse;
import edu.itu.cavabunga.lib.http.ErrorResponse;
import edu.itu.cavabunga.lib.http.ParticipantResponse;
import edu.itu.cavabunga.lib.http.Response;
import tr.edu.itu.cavabunga.server.business.CalendarManagerService;
import tr.edu.itu.cavabunga.lib.entity.Participant;
import tr.edu.itu.cavabunga.lib.http.ComponentResponse;
import tr.edu.itu.cavabunga.lib.http.ErrorResponse;
import tr.edu.itu.cavabunga.lib.http.ParticipantResponse;
import tr.edu.itu.cavabunga.lib.http.Response;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
@@ -1,11 +1,11 @@
package edu.itu.cavabunga.controller;
package tr.edu.itu.cavabunga.server.controller;
import edu.itu.cavabunga.business.CalendarManagerService;
import edu.itu.cavabunga.lib.entity.Property;
import edu.itu.cavabunga.lib.http.ErrorResponse;
import edu.itu.cavabunga.lib.http.ParameterResponse;
import edu.itu.cavabunga.lib.http.PropertyResponse;
import edu.itu.cavabunga.lib.http.Response;
import tr.edu.itu.cavabunga.server.business.CalendarManagerService;
import tr.edu.itu.cavabunga.lib.entity.Property;
import tr.edu.itu.cavabunga.lib.http.ErrorResponse;
import tr.edu.itu.cavabunga.lib.http.ParameterResponse;
import tr.edu.itu.cavabunga.lib.http.PropertyResponse;
import tr.edu.itu.cavabunga.lib.http.Response;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
@@ -1,15 +1,15 @@
package edu.itu.cavabunga.controller;
import edu.itu.cavabunga.business.CalendarManagerService;
import edu.itu.cavabunga.lib.entity.Component;
import edu.itu.cavabunga.lib.entity.Parameter;
import edu.itu.cavabunga.lib.entity.Property;
import edu.itu.cavabunga.lib.entity.component.ComponentType;
import edu.itu.cavabunga.lib.entity.parameter.ParameterType;
import edu.itu.cavabunga.lib.entity.participant.ParticipantType;
import edu.itu.cavabunga.lib.entity.property.PropertyType;
import edu.itu.cavabunga.service.IcalService;
import edu.itu.cavabunga.service.ParticipantService;
package tr.edu.itu.cavabunga.server.controller;
import tr.edu.itu.cavabunga.server.business.CalendarManagerService;
import tr.edu.itu.cavabunga.lib.entity.Component;
import tr.edu.itu.cavabunga.lib.entity.Parameter;
import tr.edu.itu.cavabunga.lib.entity.Property;
import tr.edu.itu.cavabunga.lib.entity.component.ComponentType;
import tr.edu.itu.cavabunga.lib.entity.parameter.ParameterType;
import tr.edu.itu.cavabunga.lib.entity.participant.ParticipantType;
import tr.edu.itu.cavabunga.lib.entity.property.PropertyType;
import tr.edu.itu.cavabunga.server.service.IcalService;
import tr.edu.itu.cavabunga.server.service.ParticipantService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.GetMapping;
@@ -28,9 +28,6 @@
@Autowired
private IcalService icalService;
@GetMapping
@Transactional
public String seedDataBase(){
@@ -1,7 +1,7 @@
package edu.itu.cavabunga.repository;
package tr.edu.itu.cavabunga.server.repository;
import edu.itu.cavabunga.lib.entity.Component;
import edu.itu.cavabunga.lib.entity.Participant;
import tr.edu.itu.cavabunga.lib.entity.Component;
import tr.edu.itu.cavabunga.lib.entity.Participant;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@@ -1,6 +1,6 @@
package edu.itu.cavabunga.repository;
package tr.edu.itu.cavabunga.server.repository;
import edu.itu.cavabunga.lib.entity.Parameter;
import tr.edu.itu.cavabunga.lib.entity.Parameter;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@@ -1,6 +1,6 @@
package edu.itu.cavabunga.repository;
package tr.edu.itu.cavabunga.server.repository;
import edu.itu.cavabunga.lib.entity.Participant;
import tr.edu.itu.cavabunga.lib.entity.Participant;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@@ -1,6 +1,6 @@
package edu.itu.cavabunga.repository;
package tr.edu.itu.cavabunga.server.repository;
import edu.itu.cavabunga.lib.entity.Property;
import tr.edu.itu.cavabunga.lib.entity.Property;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@@ -1,12 +1,12 @@
package edu.itu.cavabunga.service;
import edu.itu.cavabunga.lib.entity.Component;
import edu.itu.cavabunga.lib.entity.Parameter;
import edu.itu.cavabunga.lib.entity.Participant;
import edu.itu.cavabunga.lib.entity.Property;
import edu.itu.cavabunga.lib.entity.component.ComponentType;
import edu.itu.cavabunga.lib.entity.parameter.ParameterType;
import edu.itu.cavabunga.lib.entity.property.PropertyType;
package tr.edu.itu.cavabunga.server.service;
import tr.edu.itu.cavabunga.lib.entity.Component;
import tr.edu.itu.cavabunga.lib.entity.Parameter;
import tr.edu.itu.cavabunga.lib.entity.Participant;
import tr.edu.itu.cavabunga.lib.entity.Property;
import tr.edu.itu.cavabunga.lib.entity.component.ComponentType;
import tr.edu.itu.cavabunga.lib.entity.parameter.ParameterType;
import tr.edu.itu.cavabunga.lib.entity.property.PropertyType;
import java.util.List;
import java.util.Optional;
@@ -1,19 +1,19 @@
package edu.itu.cavabunga.service;
package tr.edu.itu.cavabunga.server.service;
import java.util.List;
import java.util.Optional;
import edu.itu.cavabunga.lib.entity.Component;
import edu.itu.cavabunga.lib.entity.Parameter;
import edu.itu.cavabunga.lib.entity.Participant;
import edu.itu.cavabunga.lib.entity.Property;
import edu.itu.cavabunga.lib.entity.component.ComponentType;
import edu.itu.cavabunga.lib.entity.parameter.ParameterType;
import edu.itu.cavabunga.lib.entity.property.PropertyType;
import edu.itu.cavabunga.lib.factory.ComponentFactory;
import edu.itu.cavabunga.lib.factory.ParameterFactory;
import edu.itu.cavabunga.lib.factory.PropertyFactory;
import edu.itu.cavabunga.repository.ComponentRepository;
import edu.itu.cavabunga.repository.ParameterRepository;
import edu.itu.cavabunga.repository.PropertyRepository;
import tr.edu.itu.cavabunga.lib.entity.Component;
import tr.edu.itu.cavabunga.lib.entity.Parameter;
import tr.edu.itu.cavabunga.lib.entity.Participant;
import tr.edu.itu.cavabunga.lib.entity.Property;
import tr.edu.itu.cavabunga.lib.entity.component.ComponentType;
import tr.edu.itu.cavabunga.lib.entity.parameter.ParameterType;
import tr.edu.itu.cavabunga.lib.entity.property.PropertyType;
import tr.edu.itu.cavabunga.lib.factory.ComponentFactory;
import tr.edu.itu.cavabunga.lib.factory.ParameterFactory;
import tr.edu.itu.cavabunga.lib.factory.PropertyFactory;
import tr.edu.itu.cavabunga.server.repository.ComponentRepository;
import tr.edu.itu.cavabunga.server.repository.ParameterRepository;
import tr.edu.itu.cavabunga.server.repository.PropertyRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@@ -1,7 +1,7 @@
package edu.itu.cavabunga.service;
package tr.edu.itu.cavabunga.server.service;
import edu.itu.cavabunga.lib.entity.Participant;
import edu.itu.cavabunga.lib.entity.participant.ParticipantType;
import tr.edu.itu.cavabunga.lib.entity.Participant;
import tr.edu.itu.cavabunga.lib.entity.participant.ParticipantType;
import java.util.List;
import java.util.Optional;
@@ -1,9 +1,9 @@
package edu.itu.cavabunga.service;
package tr.edu.itu.cavabunga.server.service;
import edu.itu.cavabunga.lib.entity.Participant;
import edu.itu.cavabunga.lib.entity.participant.ParticipantType;
import edu.itu.cavabunga.lib.factory.ParticipantFactory;
import edu.itu.cavabunga.repository.ParticipantRepository;
import tr.edu.itu.cavabunga.lib.entity.Participant;
import tr.edu.itu.cavabunga.lib.entity.participant.ParticipantType;
import tr.edu.itu.cavabunga.lib.factory.ParticipantFactory;
import tr.edu.itu.cavabunga.server.repository.ParticipantRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@@ -1,4 +1,5 @@
spring.jpa.hibernate.ddl-auto=create
spring.datasource.url=jdbc:mysql://127.0.0.1/test
spring.datasource.username=root
spring.datasource.username=cavabunga
spring.datasource.password=password
spring.jpa.properties.hibernate.enable_lazy_load_no_trans=true
Binary file not shown.
@@ -1,4 +1,4 @@
package edu.itu.cavabunga;
package tr.edu.itu.cavabunga.server;
import org.junit.Test;
import org.junit.runner.RunWith;

0 comments on commit 82fcda3

Please sign in to comment.