Skip to content

Commit

Permalink
Merge pull request #11 from vitalca/master
Browse files Browse the repository at this point in the history
Refactoring + using last updated libraries
  • Loading branch information
danielyinanc committed May 31, 2016
2 parents c233bfa + 060b58f commit 62094e8
Show file tree
Hide file tree
Showing 10 changed files with 28 additions and 21 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# eiffel-remrem-message
[![Build Status](https://travis-ci.org/Ericsson/eiffel-remrem-message.svg?branch=master)](https://travis-ci.org/Ericsson/eiffel-remrem-message)
[![Coverage Status](https://coveralls.io/repos/github/Ericsson/eiffel-remrem-message/badge.svg?branch=master)](https://coveralls.io/github/Ericsson/eiffel-remrem-message?branch=master)
[![](https://jitpack.io/v/Ericsson/eiffel-remrem-message.svg)](https://jitpack.io/#Ericsson/eiffel-remrem-message)
# eiffel-remrem-generate
[![Build Status](https://travis-ci.org/Ericsson/eiffel-remrem-generate.svg?branch=master)](https://travis-ci.org/Ericsson/eiffel-remrem-generate)
[![Coverage Status](https://coveralls.io/repos/github/Ericsson/eiffel-remrem-generate/badge.svg?branch=master)](https://coveralls.io/github/Ericsson/eiffel-remrem-generate?branch=master)
[![](https://jitpack.io/v/Ericsson/eiffel-remrem-generate.svg)](https://jitpack.io/#Ericsson/eiffel-remrem-generate)

## Compatibility
- JDK8
Expand Down
8 changes: 3 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ plugins{
apply plugin: 'war'

war {
baseName = 'remrem-message'
baseName = 'remrem-generate'
version = '0.5.0'
}

Expand Down Expand Up @@ -88,7 +88,6 @@ repositories {
}

dependencies {
compile 'org.slf4j:slf4j-api:1.7.18'
compile("org.springframework.boot:spring-boot-starter-web:$sprintBootVersion") {
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-tomcat'
}
Expand All @@ -106,8 +105,8 @@ dependencies {
// end::actuator[]

//Injectable Message Library and its Implementation
compile 'com.github.Ericsson:eiffel-remrem-shared:0.1.2'
compile 'com.github.Ericsson:eiffel-remrem-semantics:0.1.1'
compile 'com.github.Ericsson:eiffel-remrem-shared:0.1.4'
compile 'com.github.Ericsson:eiffel-remrem-semantics:0.1.2'

//compileOnly is supported in gradle 2.12 but it might be required
// in cucumber folder
Expand All @@ -133,7 +132,6 @@ dependencies {

// In order to get embedded app container to work
integrationTestCompile group: 'com.jayway.restassured', name: 'rest-assured', version: '2.9.0'
integrationTestCompile 'org.slf4j:slf4j-api:1.7.18'

// Will be used to package contents of third party libs
runtime fileTree(dir: 'libs', include: '*.jar')
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
rootProject.name = 'message'
rootProject.name = 'generate'

Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package com.ericsson.eiffel.remrem.message;
package com.ericsson.eiffel.remrem.generate;

import com.google.gson.JsonParser;

import com.jayway.restassured.RestAssured;

import org.apache.http.HttpStatus;
import org.hamcrest.Matchers;
import org.junit.Before;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
package com.ericsson.eiffel.remrem.message;
package com.ericsson.eiffel.remrem.generate;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.web.SpringBootServletInitializer;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;

import java.util.Arrays;

@SpringBootApplication public class App extends SpringBootServletInitializer {
@SpringBootApplication
@ComponentScan("com.ericsson.eiffel.remrem")
public class App extends SpringBootServletInitializer {

public static void main(String[] args) {
ApplicationContext ctx = SpringApplication.run(App.class, args);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.ericsson.eiffel.remrem.message.config;
package com.ericsson.eiffel.remrem.generate.config;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.ericsson.eiffel.remrem.message.config;
package com.ericsson.eiffel.remrem.generate.config;

import com.google.gson.JsonElement;
import com.google.gson.JsonParser;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.ericsson.eiffel.remrem.message.config;
package com.ericsson.eiffel.remrem.generate.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
Expand All @@ -15,7 +15,7 @@ public class SwaggerConfig {
public Docket api() {
return new Docket(DocumentationType.SWAGGER_2)
.select()
.apis(RequestHandlerSelectors.basePackage("com.ericsson.eiffel.remrem.message"))
.apis(RequestHandlerSelectors.basePackage("com.ericsson.eiffel.remrem.generate"))
.paths(PathSelectors.any())
.build();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package com.ericsson.eiffel.remrem.message.controller;
package com.ericsson.eiffel.remrem.generate.controller;

import com.ericsson.eiffel.remrem.message.services.MsgService;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;

import com.ericsson.eiffel.remrem.shared.MsgService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Profile;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
package com.ericsson.eiffel.remrem.message.controller;
package com.ericsson.eiffel.remrem.generate.controller;

import com.ericsson.eiffel.remrem.message.services.MsgService;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;

import com.ericsson.eiffel.remrem.shared.MsgService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestBody;
Expand Down

0 comments on commit 62094e8

Please sign in to comment.