Skip to content

Commit c802266

Browse files
committed
build.gradleの整理
1 parent a29d015 commit c802266

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

build.gradle

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ buildscript {
66
}
77
repositories {
88
mavenCentral()
9+
jcenter()
910
}
1011
dependencies {
1112
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
@@ -27,32 +28,35 @@ sourceCompatibility = 1.8
2728

2829
repositories {
2930
mavenCentral()
31+
jcenter()
3032
}
3133

3234
[compileJava,compileTestJava]*.options*.encoding='UTF-8'
3335

3436
dependencies {
35-
compile group: 'net.bull.javamelody', name: 'javamelody-spring-boot-starter', version: '1.72.0'
37+
// compile group: 'net.bull.javamelody', name: 'javamelody-spring-boot-starter', version: '1.72.0'
3638
compile('org.springframework.boot:spring-boot-starter-data-jpa')
3739
compile('org.springframework.boot:spring-boot-starter-web') {
3840
exclude(module: 'spring-boot-starter-tomcat')
3941
exclude(group: 'org.apache.tomcat.embed')
4042
}
4143
providedCompile(group: 'org.springframework.boot', name: 'spring-boot-starter-tomcat')
4244
runtime('org.postgresql:postgresql')
45+
compile 'io.springfox:springfox-swagger2:2.9.0'
46+
compile 'io.springfox:springfox-swagger-ui:2.9.0'
4347
testCompile('org.springframework.boot:spring-boot-starter-test')
4448
}
4549

4650
test {
4751
ignoreFailures = true
4852
}
4953

50-
def devteam = project.hasProperty("devteam") ? project.property("devteam") + ":" : ""
51-
5254
sonarqube {
5355
properties {
54-
property "sonar.projectKey", "${devteam}${project.name}"
55-
property "sonar.projectName", "${devteam}${project.name}"
5656
property "sonar.jacoco.reportPath", "${project.buildDir}/jacoco/test.exec"
5757
}
5858
}
59+
60+
jacoco {
61+
toolVersion = jacocoVersion
62+
}

0 commit comments

Comments
 (0)