-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
98 lines (71 loc) · 2.83 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
plugins {
id 'java'
id "org.springframework.boot" version "2.6.0"
id "io.spring.dependency-management" version "1.0.11.RELEASE"
id 'edu.sc.seis.launch4j' version '3.0.5'
}
group 'com.github.fashionbrot'
version '0.0.8'
apply plugin: "org.springframework.boot"
apply plugin: "io.spring.dependency-management"
apply plugin: 'java'
apply plugin: 'idea'
// 指定java版本
sourceCompatibility = 1.8
targetCompatibility = 1.8
processResources {
from('src/main/java') {
include '**/**Mapper.xml'
}
}
repositories {
maven { url "https://maven.aliyun.com/repository/public" }
maven { url "https://maven.aliyun.com/repository/jcenter" }
maven { url "https://maven.aliyun.com/repository/spring" }
maven { url "https://maven.aliyun.com/repository/spring-plugin" }
maven { url "https://maven.aliyun.com/repository/gradle-plugin" }
maven { url "https://maven.aliyun.com/repository/google" }
maven { url "https://maven.aliyun.com/repository/grails-core" }
maven { url "https://maven.aliyun.com/repository/apache-snapshots" }
maven { url 'https://repo.spring.io/plugins-snapshot' }
mavenLocal()
mavenCentral()
}
ext{
velocity = 2.2
}
dependencies {
developmentOnly "org.springframework.boot:spring-boot-devtools:2.6.4"
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
implementation "org.springframework.boot:spring-boot-starter-web"
implementation "org.springframework.boot:spring-boot-starter-thymeleaf"
implementation "org.apache.velocity:velocity-engine-core:${velocity}"
implementation 'org.apache.velocity.tools:velocity-tools-generic:3.0'
implementation 'com.baomidou:mybatis-plus-boot-starter:3.5.0'
implementation 'com.alibaba:druid:1.2.8'
implementation "com.github.fashionbrot:common-util:0.1.2"
implementation "mysql:mysql-connector-java"
implementation 'com.oracle:ojdbc6:11.2.0.3'
implementation 'com.microsoft.sqlserver:sqljdbc4:4.0'
implementation 'org.postgresql:postgresql:42.4.3'
implementation 'org.xerial:sqlite-jdbc:3.36.0.3'
// implementation 'com.baomidou:mybatis-plus-generator:3.5.1'
}
launch4j {
outfile="mybatis-generate.exe"
headerType="console"
jarTask = tasks.bootJar
mutexName="mybatis-generate"
windowTitle="mybatis-generate"
messagesStartupError="An error occurred while starting mybatis-generate"
messagesJreVersionError="You are running the wrong version of Java, Please download Java 8."
messagesLauncherError="Java is corrupted. Please uninstall and then install Java 8."
messagesInstanceAlreadyExists="mybatis-generate is already running."
}
compileJava.options.encoding = "UTF-8"
compileTestJava.options.encoding = "UTF-8"
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
task printVersion {
println project.version
}