Updated the build.gradle to delegate down to the subprojects
This commit is contained in:
@@ -16,6 +16,9 @@ plugins {
|
|||||||
id 'org.unbroken-dome.test-sets' version '1.4.5'
|
id 'org.unbroken-dome.test-sets' version '1.4.5'
|
||||||
id 'war'
|
id 'war'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
apply plugin: 'org.springframework.boot'
|
||||||
|
|
||||||
description = 'Pandamonium Theorem Prover'
|
description = 'Pandamonium Theorem Prover'
|
||||||
|
|
||||||
group 'edu.msudenver.tsp'
|
group 'edu.msudenver.tsp'
|
||||||
@@ -38,7 +41,6 @@ allprojects {
|
|||||||
apply plugin: 'jacoco'
|
apply plugin: 'jacoco'
|
||||||
apply plugin: 'org.unbroken-dome.test-sets'
|
apply plugin: 'org.unbroken-dome.test-sets'
|
||||||
apply plugin: 'idea'
|
apply plugin: 'idea'
|
||||||
apply plugin: 'org.springframework.boot'
|
|
||||||
apply plugin: 'io.spring.dependency-management'
|
apply plugin: 'io.spring.dependency-management'
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -48,17 +50,13 @@ subprojects {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
|
||||||
compile 'org.codehaus.groovy:groovy-all:2.3.11'
|
|
||||||
compile 'org.apache.commons:commons-lang3:3.5'
|
compile 'org.apache.commons:commons-lang3:3.5'
|
||||||
// The production code uses the SLF4J logging API at compile time
|
// The production code uses the SLF4J logging API at compile time
|
||||||
compile 'org.slf4j:slf4j-api:1.7.21'
|
compile 'org.slf4j:slf4j-api:1.7.21'
|
||||||
compile "joda-time:joda-time:2.2"
|
compile "joda-time:joda-time:2.2"
|
||||||
compile("org.springframework.boot:spring-boot-starter-web")
|
|
||||||
|
|
||||||
testCompile group: 'junit', name: 'junit', version: '4.11'
|
testCompile group: 'junit', name: 'junit', version: '4.11'
|
||||||
testCompile group: 'junit', name: 'junit', version: '4.12'
|
testCompile group: 'junit', name: 'junit', version: '4.12'
|
||||||
testCompile("org.springframework.boot:spring-boot-starter-test")
|
|
||||||
testCompile('org.mockito:mockito-core:1.10.19') {exclude(group: 'org.hamcrest')}
|
testCompile('org.mockito:mockito-core:1.10.19') {exclude(group: 'org.hamcrest')}
|
||||||
|
|
||||||
compileOnly 'org.projectlombok:lombok:1.18.4'
|
compileOnly 'org.projectlombok:lombok:1.18.4'
|
||||||
@@ -78,11 +76,10 @@ subprojects {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//bootJar {
|
bootJar {
|
||||||
// baseName = 'gs-spring-boot'
|
baseName = 'gs-spring-boot'
|
||||||
// mainClassName = 'edu.msudenver.tsp.website.Application'
|
version = '0.1.0'
|
||||||
// version = '0.1.0'
|
}
|
||||||
//}
|
|
||||||
|
|
||||||
sourceCompatibility = 1.8
|
sourceCompatibility = 1.8
|
||||||
targetCompatibility = 1.8
|
targetCompatibility = 1.8
|
||||||
|
|||||||
@@ -13,17 +13,5 @@ repositories {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
testCompile group: 'junit', name: 'junit', version: '4.12'
|
testCompile group: 'junit', name: 'junit', version: '4.12'
|
||||||
}
|
compile fileTree(dir: 'lib', include: '**/*.jar')
|
||||||
|
|
||||||
test {
|
|
||||||
if (System.properties['test.profile'] != 'integrationTest') {
|
|
||||||
exclude '**/*integrationTest*'
|
|
||||||
} else {
|
|
||||||
exclude '**/*edu/*'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
testSets {
|
|
||||||
unitTest
|
|
||||||
integrationTest
|
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-3
@@ -1,8 +1,6 @@
|
|||||||
package edu.msudenver.tsp.persistence;
|
package edu.msudenver.tsp.persistence;
|
||||||
|
|
||||||
import org.springframework.context.annotation.Configuration;
|
//@Configuration
|
||||||
|
|
||||||
@Configuration
|
|
||||||
public class PersistenceConfig {
|
public class PersistenceConfig {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
-2
@@ -2,9 +2,7 @@ package edu.msudenver.tsp.persistence.manager;
|
|||||||
|
|
||||||
import edu.msudenver.tsp.persistence.dao.DefinitionDao;
|
import edu.msudenver.tsp.persistence.dao.DefinitionDao;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
|
|
||||||
@Component
|
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
class DefinitionManager {
|
class DefinitionManager {
|
||||||
final private DefinitionDao definitionDao;
|
final private DefinitionDao definitionDao;
|
||||||
|
|||||||
+2
-5
@@ -1,10 +1,7 @@
|
|||||||
package edu.msudenver.tsp.persistence.manager;
|
package edu.msudenver.tsp.persistence.manager;
|
||||||
|
|
||||||
import org.springframework.context.annotation.ComponentScan;
|
//@Configuration
|
||||||
import org.springframework.context.annotation.Configuration;
|
//@ComponentScan
|
||||||
|
|
||||||
@Configuration
|
|
||||||
@ComponentScan
|
|
||||||
//@PropertySource("classpath:development.properties")
|
//@PropertySource("classpath:development.properties")
|
||||||
public class ManagerConfig {
|
public class ManagerConfig {
|
||||||
|
|
||||||
|
|||||||
+1
-2
@@ -2,9 +2,8 @@ package edu.msudenver.tsp.persistence.manager;
|
|||||||
|
|
||||||
import edu.msudenver.tsp.persistence.dao.NotationDao;
|
import edu.msudenver.tsp.persistence.dao.NotationDao;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
|
|
||||||
@Component
|
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
class NotationManager {
|
class NotationManager {
|
||||||
final private NotationDao notationDao;
|
final private NotationDao notationDao;
|
||||||
|
|||||||
-2
@@ -1,9 +1,7 @@
|
|||||||
package edu.msudenver.tsp.persistence.manager;
|
package edu.msudenver.tsp.persistence.manager;
|
||||||
|
|
||||||
import edu.msudenver.tsp.persistence.dao.ProofDao;
|
import edu.msudenver.tsp.persistence.dao.ProofDao;
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
|
|
||||||
@Component
|
|
||||||
class ProofManager {
|
class ProofManager {
|
||||||
final private ProofDao proofDao;
|
final private ProofDao proofDao;
|
||||||
|
|
||||||
|
|||||||
-2
@@ -2,9 +2,7 @@ package edu.msudenver.tsp.persistence.manager;
|
|||||||
|
|
||||||
import edu.msudenver.tsp.persistence.dao.TheoremDao;
|
import edu.msudenver.tsp.persistence.dao.TheoremDao;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import org.springframework.stereotype.Component;
|
|
||||||
|
|
||||||
@Component
|
|
||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
class TheoremManager {
|
class TheoremManager {
|
||||||
final private TheoremDao theoremDao;
|
final private TheoremDao theoremDao;
|
||||||
|
|||||||
@@ -15,16 +15,3 @@ dependencies {
|
|||||||
testCompile group: 'junit', name: 'junit', version: '4.12'
|
testCompile group: 'junit', name: 'junit', version: '4.12'
|
||||||
compile fileTree(dir: 'lib', include: '**/*.jar')
|
compile fileTree(dir: 'lib', include: '**/*.jar')
|
||||||
}
|
}
|
||||||
|
|
||||||
test {
|
|
||||||
if (System.properties['test.profile'] != 'integrationTest') {
|
|
||||||
exclude '**/*integrationTest*'
|
|
||||||
} else {
|
|
||||||
exclude '**/*edu/*'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
testSets {
|
|
||||||
unitTest
|
|
||||||
integrationTest
|
|
||||||
}
|
|
||||||
|
|||||||
+2
-5
@@ -1,10 +1,7 @@
|
|||||||
package edu.msudenver.tsp.services.parser;
|
package edu.msudenver.tsp.services.parser;
|
||||||
|
|
||||||
import org.springframework.context.annotation.ComponentScan;
|
//@Configuration
|
||||||
import org.springframework.context.annotation.Configuration;
|
//@ComponentScan
|
||||||
|
|
||||||
@Configuration
|
|
||||||
@ComponentScan
|
|
||||||
//@PropertySource("classpath:development.properties")
|
//@PropertySource("classpath:development.properties")
|
||||||
public class ParserConfig {
|
public class ParserConfig {
|
||||||
|
|
||||||
|
|||||||
+1
-3
@@ -1,8 +1,6 @@
|
|||||||
package edu.msudenver.tsp.services.parser;
|
package edu.msudenver.tsp.services.parser;
|
||||||
|
|
||||||
import org.springframework.stereotype.Service;
|
//@Service
|
||||||
|
|
||||||
@Service
|
|
||||||
class ParserService {
|
class ParserService {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-7
@@ -1,15 +1,11 @@
|
|||||||
package edu.msudenver.tsp.services.scoring;
|
package edu.msudenver.tsp.services.scoring;
|
||||||
|
|
||||||
import org.springframework.context.annotation.Bean;
|
//@Configuration
|
||||||
import org.springframework.context.annotation.ComponentScan;
|
//@ComponentScan
|
||||||
import org.springframework.context.annotation.Configuration;
|
|
||||||
|
|
||||||
@Configuration
|
|
||||||
@ComponentScan
|
|
||||||
//@PropertySource("classpath:development.properties")
|
//@PropertySource("classpath:development.properties")
|
||||||
public class ScoringConfig {
|
public class ScoringConfig {
|
||||||
|
|
||||||
@Bean
|
// @Bean
|
||||||
public TheoremScoringService theoremScoringService() {
|
public TheoremScoringService theoremScoringService() {
|
||||||
return new TheoremScoringService();
|
return new TheoremScoringService();
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-3
@@ -1,8 +1,6 @@
|
|||||||
package edu.msudenver.tsp.services.scoring;
|
package edu.msudenver.tsp.services.scoring;
|
||||||
|
|
||||||
import org.springframework.stereotype.Service;
|
//@Service
|
||||||
|
|
||||||
@Service
|
|
||||||
class TheoremScoringService {
|
class TheoremScoringService {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+8
@@ -1,9 +1,17 @@
|
|||||||
package edu.msudenver.tsp.services.parser;
|
package edu.msudenver.tsp.services.parser;
|
||||||
|
|
||||||
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.mockito.runners.MockitoJUnitRunner;
|
import org.mockito.runners.MockitoJUnitRunner;
|
||||||
|
|
||||||
|
import static org.junit.Assert.assertEquals;
|
||||||
|
|
||||||
@RunWith(MockitoJUnitRunner.class)
|
@RunWith(MockitoJUnitRunner.class)
|
||||||
public class ParserServiceTest {
|
public class ParserServiceTest {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test() {
|
||||||
|
assertEquals(3,3);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
+7
@@ -1,9 +1,16 @@
|
|||||||
package edu.msudenver.tsp.services.scoring;
|
package edu.msudenver.tsp.services.scoring;
|
||||||
|
|
||||||
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.mockito.runners.MockitoJUnitRunner;
|
import org.mockito.runners.MockitoJUnitRunner;
|
||||||
|
|
||||||
|
import static org.junit.Assert.assertEquals;
|
||||||
|
|
||||||
@RunWith(MockitoJUnitRunner.class)
|
@RunWith(MockitoJUnitRunner.class)
|
||||||
public class TheoremScoringServiceTest {
|
public class TheoremScoringServiceTest {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void test() {
|
||||||
|
assertEquals(3,3);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package edu.msudenver.tsp.website;
|
package hello;
|
||||||
|
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.boot.CommandLineRunner;
|
import org.springframework.boot.CommandLineRunner;
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package edu.msudenver.tsp.website;
|
package hello;
|
||||||
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
package edu.msudenver.tsp.website.integrationTest;
|
package edu.msudenver.tsp.website.integrationTest;
|
||||||
|
|
||||||
import edu.msudenver.tsp.website.Application;
|
import hello.Application;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
|
|||||||
@@ -13,17 +13,5 @@ repositories {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
testCompile group: 'junit', name: 'junit', version: '4.12'
|
testCompile group: 'junit', name: 'junit', version: '4.12'
|
||||||
}
|
compile fileTree(dir: 'lib', include: '**/*.jar')
|
||||||
|
|
||||||
test {
|
|
||||||
if (System.properties['test.profile'] != 'integrationTest') {
|
|
||||||
exclude '**/*integrationTest*'
|
|
||||||
} else {
|
|
||||||
exclude '**/*edu/*'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
testSets {
|
|
||||||
unitTest
|
|
||||||
integrationTest
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user