mirror of https://github.com/bvn13/covid19-ru.git
update project
parent
edb23de683
commit
c22e9c13d8
36
build.gradle
36
build.gradle
|
@ -1,17 +1,26 @@
|
|||
plugins {
|
||||
id 'org.springframework.boot' version '2.2.6.RELEASE'
|
||||
id 'io.spring.dependency-management' version '1.0.8.RELEASE'
|
||||
id 'java'
|
||||
buildscript {
|
||||
ext {
|
||||
springBootVersion = '2.2.6.RELEASE'
|
||||
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 {
|
||||
// repositories {
|
||||
// mavenCentral()
|
||||
// jcenter()
|
||||
// maven { url "https://plugins.gradle.org/m2/" }
|
||||
// maven { url 'https://repo.spring.io/milestone' }
|
||||
// }
|
||||
//}
|
||||
allprojects {
|
||||
repositories {
|
||||
maven { url 'https://repo.spring.io/milestone' }
|
||||
mavenCentral()
|
||||
}
|
||||
}
|
||||
|
||||
subprojects {
|
||||
project.ext {
|
||||
|
@ -82,6 +91,3 @@ subprojects {
|
|||
}
|
||||
|
||||
defaultTasks('clean', 'compileTestJava', 'jar')
|
||||
|
||||
bootJar { enabled = false }
|
||||
jar { enabled = false }
|
|
@ -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>
|
|
@ -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>
|
|
@ -1,3 +1,5 @@
|
|||
apply plugin: 'org.springframework.boot'
|
||||
|
||||
version = '0.0.1'
|
||||
|
||||
dependencies {
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
apply plugin: 'org.springframework.boot'
|
||||
|
||||
version = '0.0.1'
|
||||
|
||||
dependencies {
|
||||
|
@ -7,5 +9,5 @@ dependencies {
|
|||
testImplementation 'com.h2database:h2:1.4.194'
|
||||
}
|
||||
|
||||
//bootJar { enabled = false }
|
||||
//jar { enabled = true }
|
||||
bootJar { enabled = false }
|
||||
jar { enabled = true }
|
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
|
@ -22,7 +22,7 @@ import org.springframework.context.annotation.Configuration;
|
|||
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
|
||||
|
||||
@Configuration
|
||||
//@ComponentScan("com.bvn13.covid19.model")
|
||||
@ComponentScan("com.bvn13.covid19.model")
|
||||
@EntityScan("com.bvn13.covid19.model.entities")
|
||||
public class Covid19ModelConfig {
|
||||
}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
apply plugin: 'org.springframework.boot'
|
||||
|
||||
version = '0.0.1'
|
||||
|
||||
dependencies {
|
||||
|
|
|
@ -67,7 +67,7 @@ public class StopcoronovirusRfDataRetriever {
|
|||
.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);
|
||||
|
||||
}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
pluginManagement {
|
||||
repositories {
|
||||
gradlePluginPortal()
|
||||
}
|
||||
}
|
||||
//pluginManagement {
|
||||
// repositories {
|
||||
// gradlePluginPortal()
|
||||
// }
|
||||
//}
|
||||
|
||||
rootProject.name = 'covid19'
|
||||
|
||||
|
|
Loading…
Reference in New Issue