@@ -23,6 +23,7 @@ buildscript {
2323 classpath " gradle.plugin.com.google.cloud.tools:jib-gradle-plugin:${ project.jibVersion} "
2424 classpath " io.freefair.gradle:maven-plugin:${ project.gradleMavenPluginVersion} "
2525 classpath " io.freefair.gradle:lombok-plugin:${ project.gradleLombokPluginVersion} "
26+ classpath " org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.1.1"
2627 }
2728}
2829
@@ -58,8 +59,13 @@ def casWebApplicationBinaryName = "cas.war"
5859project. ext. " casServerVersion" = casServerVersion
5960project. ext. " casWebApplicationBinaryName" = casWebApplicationBinaryName
6061
62+ apply plugin : " war"
6163apply plugin : " io.freefair.war-overlay"
6264
65+ apply from : rootProject. file(" gradle/tasks.gradle" )
66+ apply from : rootProject. file(" gradle/springboot.gradle" )
67+ apply from : rootProject. file(" gradle/dockerjib.gradle" )
68+
6369apply plugin : " io.freefair.lombok"
6470lombok {
6571 config[" config.stopBubbling" ] = " true"
@@ -70,14 +76,30 @@ lombok {
7076 config[" lombok.toString.doNotUseGetters" ] = " true"
7177}
7278
73- apply from : rootProject. file(" gradle/tasks.gradle" )
74-
75- apply plugin : " war"
7679apply plugin : " eclipse"
80+ eclipse {
81+ classpath {
82+ downloadSources = true
83+ downloadJavadoc = true
84+ }
85+ }
86+
7787apply plugin : " idea"
88+ idea {
89+ module {
90+ downloadJavadoc = true
91+ downloadSources = true
92+ }
93+ }
7894
79- apply from : rootProject. file(" gradle/springboot.gradle" )
80- apply from : rootProject. file(" gradle/dockerjib.gradle" )
95+ apply plugin : " org.sonarqube"
96+ sonarqube {
97+ properties {
98+ property " sonar.projectKey" , " CenterForOpenScience_osf-cas"
99+ property " sonar.organization" , " centerforopenscience"
100+ property " sonar.host.url" , " https://sonarcloud.io"
101+ }
102+ }
81103
82104dependencies {
83105 // Other CAS dependencies/modules may be listed here...
@@ -152,17 +174,3 @@ configurations.all {
152174 }
153175 }
154176}
155-
156- eclipse {
157- classpath {
158- downloadSources = true
159- downloadJavadoc = true
160- }
161- }
162-
163- idea {
164- module {
165- downloadJavadoc = true
166- downloadSources = true
167- }
168- }
0 commit comments