-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
91 lines (80 loc) · 2.43 KB
/
build.gradle
File metadata and controls
91 lines (80 loc) · 2.43 KB
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
import org.gradle.plugins.ide.idea.model.IdeaLanguageLevel
buildscript {
ext {
lombokVersion = '1.18.4'
springBootVersion = '2.1.4.RELEASE'
}
repositories {
mavenLocal()
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
jcenter()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath "com.diffplug.spotless:spotless-plugin-gradle:3.21.1"
}
}
plugins {
id "com.diffplug.gradle.spotless" version "3.21.1"
}
println "Building $project.name with gradle $gradle.gradleVersion on JVM ${org.gradle.internal.jvm.Jvm.current()}"
subprojects {
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
bootJar {
baseName = 'soundscribe'
version = '1.0'
}
sourceCompatibility = 11
targetCompatibility = 11
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
jar {
manifest {
attributes 'Implementation-Title': 'SoundScribe',
'Main-Class': 'com.soundscribe.SoundscribeBeCoreApplication.java'
}
}
apply plugin: "com.diffplug.gradle.spotless"
spotless {
java {
encoding 'UTF-8'
target project.fileTree(project.rootDir) {
include '**/*.java'
exclude '**/jvamp-1.3/**'
}
googleJavaFormat()
}
}
dependencyManagement {
imports {
mavenBom "org.springframework.boot:spring-boot-dependencies:$springBootVersion"
}
dependencies {
//to do change to $project.version when new spring version will be in develop
dependency group: 'io.springfox', name: 'springfox-swagger2', version: '2.6.1'
dependency group: 'io.springfox', name: 'springfox-swagger-ui', version: '2.6.1'
dependency group: 'org.javassist', name: 'javassist', version: '3.25.0-GA'
}
}
idea {
module {
inheritOutputDirs = false
outputDir = file('../out/production')
testOutputDir = file('../out/test')
languageLevel = new IdeaLanguageLevel('11')
jdkName = '11'
downloadJavadoc = true
downloadSources = true
}
}
}