update project

develop
bvn13 2020-04-15 01:18:46 +03:00
parent edb23de683
commit c22e9c13d8
10 changed files with 54 additions and 46 deletions

View File

@ -1,17 +1,26 @@
plugins { buildscript {
id 'org.springframework.boot' version '2.2.6.RELEASE' ext {
id 'io.spring.dependency-management' version '1.0.8.RELEASE' springBootVersion = '2.2.6.RELEASE'
id 'java' springBootDependenciesVersion = '1.0.8.RELEASE'
}
repositories {
maven { url 'https://repo.spring.io/milestone' }
mavenCentral()
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
classpath "io.spring.gradle:dependency-management-plugin:${springBootDependenciesVersion}"
}
} }
//allprojects { allprojects {
// repositories { repositories {
// mavenCentral() maven { url 'https://repo.spring.io/milestone' }
// jcenter() mavenCentral()
// maven { url "https://plugins.gradle.org/m2/" } }
// maven { url 'https://repo.spring.io/milestone' } }
// }
//}
subprojects { subprojects {
project.ext { project.ext {
@ -82,6 +91,3 @@ subprojects {
} }
defaultTasks('clean', 'compileTestJava', 'jar') defaultTasks('clean', 'compileTestJava', 'jar')
bootJar { enabled = false }
jar { enabled = false }

View File

@ -1,10 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id="covid19:main" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.type="sourceSet" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
<output url="file://$MODULE_DIR$/build/classes/java/main" />
<exclude-output />
<content url="file://$MODULE_DIR$/src/main" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

View File

@ -1,12 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id="covid19:test" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.type="sourceSet" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
<output-test url="file://$MODULE_DIR$/build/classes/java/test" />
<exclude-output />
<content url="file://$MODULE_DIR$/src/test" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="bvn13.develop.covid19.main" />
</component>
<component name="TestModuleProperties" production-module="covid19.main" />
</module>

View File

@ -1,3 +1,5 @@
apply plugin: 'org.springframework.boot'
version = '0.0.1' version = '0.0.1'
dependencies { dependencies {

View File

@ -1,3 +1,5 @@
apply plugin: 'org.springframework.boot'
version = '0.0.1' version = '0.0.1'
dependencies { dependencies {
@ -7,5 +9,5 @@ dependencies {
testImplementation 'com.h2database:h2:1.4.194' testImplementation 'com.h2database:h2:1.4.194'
} }
//bootJar { enabled = false } bootJar { enabled = false }
//jar { enabled = true } jar { enabled = true }

View File

@ -0,0 +1,18 @@
package com.bvn13.covid19.model;
import com.bvn13.covid19.model.Covid19ModelConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;
//@SpringBootApplication
//@Import({
// Covid19ModelConfig.class
//})
public class Covid19ModelApplication {
public static void main(String[] args) {
SpringApplication.run(Covid19ModelApplication.class, args);
}
}

View File

@ -22,7 +22,7 @@ import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories; import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
@Configuration @Configuration
//@ComponentScan("com.bvn13.covid19.model") @ComponentScan("com.bvn13.covid19.model")
@EntityScan("com.bvn13.covid19.model.entities") @EntityScan("com.bvn13.covid19.model.entities")
public class Covid19ModelConfig { public class Covid19ModelConfig {
} }

View File

@ -1,3 +1,5 @@
apply plugin: 'org.springframework.boot'
version = '0.0.1' version = '0.0.1'
dependencies { dependencies {

View File

@ -67,7 +67,7 @@ public class StopcoronovirusRfDataRetriever {
.build()); .build());
} }
exchange.getIn().setHeader(StopcoronovirusRfUpdater.HEADER_DATE_OF_DATA, doc.selectFirst(".d-map__title > span").ownText()); exchange.getIn().setHeader(StopcoronovirusRfUpdater.HEADER_DATE_OF_DATA, doc.selectFirst(".d-map__title span").ownText());
exchange.getIn().setBody(rows); exchange.getIn().setBody(rows);
} }

View File

@ -1,8 +1,8 @@
pluginManagement { //pluginManagement {
repositories { // repositories {
gradlePluginPortal() // gradlePluginPortal()
} // }
} //}
rootProject.name = 'covid19' rootProject.name = 'covid19'