-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
51 lines (46 loc) · 1.5 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
buildscript {
ext {
springBootVersion = '2.1.0.RELEASE'
mybatisVersion = '1.4'
}
repositories {
mavenCentral()
maven {
url 'https://plugins.gradle.org/m2/'
}
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath("gradle.plugin.com.arenagod.gradle:mybatis-generator-plugin:${mybatisVersion}")
classpath("org.postgresql:postgresql:42.2.5")
}
}
apply plugin: 'application'
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'war'
war {
archiveName 'ROOT.war'
}
mainClassName = 'xyz.ashiras.Application'
jar {
baseName = 'gradle-spring-mybatis-postgres'
version = '0.0.1'
}
repositories {
mavenCentral()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
compile('org.springframework.boot:spring-boot-starter-web:2.1.0.RELEASE')
providedRuntime("org.springframework.boot:spring-boot-starter-tomcat")
// 以下のページをもとにバージョンを指定します。
// http://www.mybatis.org/spring-boot-starter/mybatis-spring-boot-autoconfigure/
// http://search.maven.org/#artifactdetails|org.mybatis.spring.boot|mybatis-spring-boot-starter|1.3.0|jar
compile('org.mybatis.spring.boot:mybatis-spring-boot-starter:1.3.2')
compile('org.springframework.boot:spring-boot-starter-data-jpa:2.1.0.RELEASE')
runtime('org.postgresql:postgresql:42.2.5')
testCompile('org.springframework.boot:spring-boot-starter-test')
}