EDIT:: Reimported project
reimported project to fix the errors in client application FIX:: fixed the "location is not set" error in client application when loading fxml file reimporting the project made it work, as it now has a submodule folder structure EDIT:: edited settings.gradle file to include the modules in the new structure EDIT: edited client build.gradle and server build.gradle files to pick the right common folder (changed complie(:Common) to compile(:src:Common))
This commit is contained in:
55
src/Common/build.gradle
Normal file
55
src/Common/build.gradle
Normal file
@@ -0,0 +1,55 @@
|
||||
buildscript {
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
}
|
||||
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'eclipse'
|
||||
apply plugin: 'idea'
|
||||
apply plugin: 'jacoco'
|
||||
//apply plugin: 'checkstyle'
|
||||
//
|
||||
//checkstyle {
|
||||
// version = '7.8.1'
|
||||
// config = 'checkstyle/checkstyle.xml' as File
|
||||
//}
|
||||
//
|
||||
//checkstyleMain {
|
||||
// source ='src/main/java'
|
||||
//}
|
||||
//
|
||||
//checkstyleTest {
|
||||
// source ='src/test/java'
|
||||
//}
|
||||
//
|
||||
//tasks.withType(Checkstyle) {
|
||||
// reports {
|
||||
// xml.enabled false
|
||||
// html.enabled true
|
||||
// html.stylesheet resources.text.fromFile('config/xsl/checkstyle-custom.xsl')
|
||||
// }
|
||||
//}
|
||||
|
||||
sourceCompatibility = 1.8
|
||||
targetCompatibility = 1.8
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
}
|
||||
|
||||
jacoco {
|
||||
toolVersion = "0.8.2"
|
||||
reportsDir = file("$buildDir/customJacocoReportDir")
|
||||
}
|
||||
|
||||
jacocoTestReport {
|
||||
reports {
|
||||
xml.enabled false
|
||||
csv.enabled false
|
||||
html.destination file("${buildDir}/jacocoHtml")
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package gogreen.common;
|
||||
|
||||
public class ApplicationException extends RuntimeException {
|
||||
public ApplicationException(String message) {
|
||||
super(message);
|
||||
}
|
||||
}
|
||||
17
src/Common/src/main/java/gogreen/common/ErrorResponse.java
Normal file
17
src/Common/src/main/java/gogreen/common/ErrorResponse.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package gogreen.common;
|
||||
|
||||
public class ErrorResponse {
|
||||
String message;
|
||||
|
||||
public ErrorResponse(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
public void setMessage(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
}
|
||||
23
src/Common/src/main/java/gogreen/common/UserDTO.java
Normal file
23
src/Common/src/main/java/gogreen/common/UserDTO.java
Normal file
@@ -0,0 +1,23 @@
|
||||
package gogreen.common;
|
||||
|
||||
public class UserDTO {
|
||||
|
||||
private Long id;
|
||||
private String name;
|
||||
|
||||
public UserDTO() {
|
||||
}
|
||||
|
||||
public UserDTO(Long id, String name) {
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user