change project to maven

This commit is contained in:
limqhz
2021-03-02 23:50:51 +08:00
parent 28fe094cef
commit 0ed96b9e24
19 changed files with 512 additions and 561 deletions

View File

@@ -1,45 +0,0 @@
group 'smartvenue'
version '1.0.0'
ext {
springBootVersion = '1.5.7.RELEASE'
}
apply plugin: 'java'
sourceCompatibility = 1.8
buildscript {
repositories {
//mavenCentral()
maven {
url 'https://maven.aliyun.com/repository/public'
}
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.4.RELEASE")
}
}
repositories {
//mavenCentral()
maven {
url 'https://maven.aliyun.com/repository/public'
}
}
dependencies {
compile fileTree(include: '*.jar', dir: 'src/libs')
compile project(':entity')
testCompile "org.springframework.boot:spring-boot-starter-test:${springBootVersion}"
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}

26
service/pom.xml Normal file
View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<parent>
<groupId>smartvenue</groupId>
<artifactId>smartvenue-parent</artifactId>
<version>2.0.0</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>sv-service</artifactId>
<version>${smartvenue.version}</version>
<dependencies>
<dependency>
<groupId>smartvenue</groupId>
<artifactId>sv-entity</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
</dependency>
</dependencies>
</project>

View File

@@ -18,7 +18,6 @@ import com.ydd.framework.core.entity.enums.StatusEnum;
import com.ydd.framework.core.exception.ServiceException;
import com.ydd.framework.core.service.impl.BaseServiceImpl;
import org.apache.commons.lang3.time.DateFormatUtils;
import org.apache.commons.lang3.time.DateUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.redis.core.RedisTemplate;