Skip to content

Commit

Permalink
Delete Groovy from Sonarqube,Spotless and build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrepetersmeier committed Jan 28, 2025
1 parent 1f02a3c commit 3ed24e2
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 35 deletions.
2 changes: 0 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import com.github.jengelman.gradle.plugins.shadow.transformers.AppendingTransformer

plugins {
id 'groovy' // groovy support
id 'java' // java support
id 'scala' // scala support
id 'signing'
Expand Down Expand Up @@ -100,7 +99,6 @@ dependencies {
implementation "ch.qos.logback:logback-classic:1.5.16"

/* testing */
testImplementation 'org.spockframework:spock-core:2.3-groovy-4.0'
testImplementation 'org.scalatestplus:mockito-3-4_2.13:3.2.10.0'
testImplementation 'org.mockito:mockito-core:5.15.2' // mocking framework
testImplementation "org.scalatest:scalatest_${scalaVersion}:3.2.19"
Expand Down
6 changes: 1 addition & 5 deletions gradle/scripts/sonarqube.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ sonarqube {
'src/main/scala'] // src dirs
property "sonar.tests", [
'src/test/resources',
'src/test/scala',
'src/test/groovy'] // test src dirs
'src/test/scala',] // test src dirs
// reports stuff (for all languages)
property 'sonar.junit.reportPaths', [
'build/test-results/test'] // Comma-delimited list of paths to Surefire XML-format reports.
Expand All @@ -23,9 +22,6 @@ sonarqube {
// scala specific stuff
property 'sonar.scala.coverage.reportPaths', 'build/reports/scoverageTest/scoverage.xml'

// groovy specific stuff
property 'sonar.groovy.binaries', 'build/classes/groovy' // groovy binaries

// remove auto generated SimonaConfig file from analysis
property 'sonar.exclusions', [
"src/main/scala/edu/ie3/simona/config/SimonaConfig.scala"
Expand Down
16 changes: 0 additions & 16 deletions gradle/scripts/spotless.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,6 @@ spotless {
licenseHeader ie3LicHead
}

/* cf. https://github.com/diffplug/spotless/tree/master/plugin-gradle */
groovy {
licenseHeader ie3LicHead
// the Groovy Eclipse formatter extends the Java Eclipse formatter,
// so it formats Java files by default (unless `excludeJava` is used).
greclipse().configFile('greclipse.properties')
indentWithSpaces 2
}

groovyGradle {
// same as groovy, but for .gradle (defaults to '*.gradle')
target '*.gradle', 'gradle/scripts/*.gradle'
greclipse()
indentWithSpaces 2
}

//sets a license header, removes unused imports and formats conforming to the scala fmt formatter
scala {
scalafmt().configFile(".scalafmt.conf")
Expand Down
12 changes: 0 additions & 12 deletions src/test/resources/SpockConfig.groovy

This file was deleted.

0 comments on commit 3ed24e2

Please sign in to comment.