Skip to content

Commit

Permalink
Update Dokka to 1.6.10
Browse files Browse the repository at this point in the history
  • Loading branch information
chkpnt committed Jan 11, 2022
1 parent 9a53eae commit 80cfbe4
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 23 deletions.
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" version "1.5.31" // should match Kotlin version bundled with Gradle
id "org.jetbrains.kotlin.jvm"
id "truststorebuilder-versioning"
id "truststorebuilder-docs"
id "truststorebuilder-publish"
Expand Down
3 changes: 2 additions & 1 deletion buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ repositories {
}

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:gradle-git-publish:3.0.0")
implementation("org.jetbrains.dokka:dokka-gradle-plugin:0.10.1")
implementation("org.jetbrains.dokka:dokka-gradle-plugin:1.6.10")
implementation("com.hello2morrow:sonargraph-gradle-plugin:8.8.0")
implementation("org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:3.3")
}
25 changes: 5 additions & 20 deletions buildSrc/src/main/groovy/truststorebuilder-docs.gradle
Original file line number Diff line number Diff line change
@@ -1,35 +1,20 @@
plugins {
id("org.ajoberstar.git-publish")
id("org.jetbrains.dokka")
}

/***************************
* Publish to Github Pages
***************************/

gitPublish {
ext {
groomingDir = "$buildDir/ghpages-grooming"
}
repoUri = '[email protected]:chkpnt/truststorebuilder-gradle-plugin.git'
branch = 'gh-pages'
preserve { include 'reports/*' } // until Sonargraph's report can be built again
contents {
from groomingDir
}
commitMessage = 'Publish of Github pages from Gradle'
ext {
ghPagesGroomingDir = "$buildDir/ghpages-grooming"
}

/***************************
* KDoc
***************************/

dokka {
outputFormat = 'html'
outputDirectory = "${gitPublish.groomingDir}/kdoc"
dokkaHtml {
outputDirectory.set(file("${ghPagesGroomingDir}/kdoc"))
}

task docs {
dependsOn dokka
dependsOn dokkaHtml
group org.gradle.api.plugins.JavaBasePlugin.DOCUMENTATION_GROUP
}
26 changes: 26 additions & 0 deletions buildSrc/src/main/groovy/truststorebuilder-publish.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id("maven-publish")
id("com.gradle.plugin-publish")
id("org.ajoberstar.git-publish")
}

/*********************************
Expand Down Expand Up @@ -63,3 +64,28 @@ pluginBundle {
}
}
}

task printSourceSetInformation2(){
doLast{
sourceSets.each { srcSet ->
println "["+srcSet.name+"]"
print "-->Source directories: "+srcSet.allJava.srcDirs+"\n"
print "-->Output directories: "+srcSet.output.classesDirs.files+"\n"
println ""
}
}
}

/***************************
* Publish to Github Pages
***************************/

gitPublish {
repoUri = '[email protected]:chkpnt/truststorebuilder-gradle-plugin.git'
branch = 'gh-pages'
preserve { include 'reports/*' } // until Sonargraph's report can be built again
contents {
from ghPagesGroomingDir
}
commitMessage = 'Publish of Github pages from Gradle'
}
2 changes: 1 addition & 1 deletion buildSrc/src/main/groovy/truststorebuilder-qa.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ sonargraphDynamicReport {
// not the default value but null if not set explicitly :-/
task prepareSonargraphReportForGhPages(type: Copy) {
from "$buildDir/sonargraph"
into "${gitPublish.groomingDir}/reports"
into "${ghPagesGroomingDir}/reports"
exclude '*.xml'
}

Expand Down

0 comments on commit 80cfbe4

Please sign in to comment.