Skip to content

Commit

Permalink
Migrate from buildSrc to build-logic
Browse files Browse the repository at this point in the history
  • Loading branch information
chkpnt committed Nov 18, 2023
1 parent 93f19e9 commit 0b72d27
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 28 deletions.
5 changes: 5 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions buildSrc/build.gradle → build-logic/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@ plugins {

repositories {
gradlePluginPortal()
maven { url("https://maven.hello2morrow.com/repository") }
}

dependencies {
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.31") // should match Kotlin version bundled with Gradle
implementation("com.gradle.publish:plugin-publish-plugin:0.19.0")
implementation("com.diffplug.spotless:spotless-plugin-gradle:6.1.2")
implementation("org.ajoberstar.git-publish:gradle-git-publish:3.0.1")
implementation("org.jetbrains.dokka:dokka-gradle-plugin:1.6.10")
implementation("com.hello2morrow:sonargraph-gradle-plugin:8.8.0")
// implementation("com.hello2morrow:sonargraph-gradle-plugin:8.8.0")
implementation("org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.3")
}
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id("jacoco")
id "org.sonarqube"
id "com.hello2morrow.sonargraph"
// id "com.hello2morrow.sonargraph"
}

/***************************
Expand Down Expand Up @@ -40,27 +40,27 @@ sonarqube {
}

/*********************************
* Sonargraph
* Sonargraph (inactive)
*********************************/

sonargraphDynamicReport {
activationCode = System.getenv("SONARGRAPH_ACTIVATION_CODE")
prepareForSonarQube = true
reportType = "full"
reportFormat = "xml, html"
qualityModelFile = "Sonargraph:Java.sgqm" //default Java quality model
reportFileName = "sonargraph"
failSet {
failOnEmptyWorkspace = true
}
}

// Unfortunately, sonargraphDynamicReport.reportDirectory returns
// not the default value but null if not set explicitly :-/
task prepareSonargraphReportForGhPages(type: Copy) {
from "$buildDir/sonargraph"
into "${ghPagesGroomingDir}/reports"
exclude '*.xml'
}

tasks["sonargraphDynamicReport"].finalizedBy(prepareSonargraphReportForGhPages)
//
//sonargraphDynamicReport {
// activationCode = System.getenv("SONARGRAPH_ACTIVATION_CODE")
// prepareForSonarQube = true
// reportType = "full"
// reportFormat = "xml, html"
// qualityModelFile = "Sonargraph:Java.sgqm" //default Java quality model
// reportFileName = "sonargraph"
// failSet {
// failOnEmptyWorkspace = true
// }
//}
//
//// Unfortunately, sonargraphDynamicReport.reportDirectory returns
//// not the default value but null if not set explicitly :-/
//task prepareSonargraphReportForGhPages(type: Copy) {
// from "$buildDir/sonargraph"
// into "${ghPagesGroomingDir}/reports"
// exclude '*.xml'
//}
//
//tasks["sonargraphDynamicReport"].finalizedBy(prepareSonargraphReportForGhPages)
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id "java-gradle-plugin"
id "groovy"
id "org.jetbrains.kotlin.jvm"
id "org.jetbrains.kotlin.jvm" version "1.5.31" // should match Kotlin version bundled with Gradle
id "truststorebuilder-versioning"
id "truststorebuilder-docs"
id "truststorebuilder-publish"
Expand Down
4 changes: 4 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pluginManagement {
// Include 'plugins build' to define convention plugins.
includeBuild('build-logic')
}

0 comments on commit 0b72d27

Please sign in to comment.