-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
70 lines (61 loc) · 1.67 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
buildscript {
ext {
springBootVersion = '2.0.1.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
plugins {
id "org.flywaydb.flyway" version "5.1.4"
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'idea'
idea {
module {
outputDir file('build/classes/main')
testOutputDir file('build/classes/test')
}
}
bootJar {
baseName = 'material-safety-search'
version = '1.1.0'
}
group = "org"
sourceCompatibility = 10
targetCompatibility = 10
repositories {
mavenCentral()
}
dependencies {
compile("com.google.guava:guava:25.0-jre")
compile("joda-time:joda-time:2.9.4")
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter")
compile("org.springframework.data:spring-data-solr")
// Mariadb with Jpa
compile 'org.mariadb.jdbc:mariadb-java-client:2.3.0'
compile 'org.springframework.boot:spring-boot-starter-data-jpa'
// Solr
compile("org.springframework.boot:spring-boot-starter-data-solr:2.0.4.RELEASE")
//flyway
compile "org.flywaydb:flyway-core:5.1.4"
// JAXB needed because of java 10 (https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-with-Java-9-and-above)
compile group: 'org.glassfish.jaxb', name: 'jaxb-runtime', version: '2.3.0.1'
testCompile("junit:junit")
}
[bootRun].each { runTask ->
configure(runTask) {
systemProperties System.properties
}
}
task downloadDependencies(type: Exec) {
configurations.testRuntime.files
commandLine 'echo', 'Downloaded all dependencies'
}