GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Jenkinsfile-Windows: build and archive javadoc for web. · TinyAndNeo/objectbox-java@d8e5fd7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • ci
    • Jenkinsfile-Windows
  • objectbox-java
    • build.gradle
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎ci/Jenkinsfile-Windows‎

Copy file name to clipboardExpand all lines: ci/Jenkinsfile-Windows
+15Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
#!/usr/bin/env groovy
2+
13
String buildsToKeep = '500'
24

35
String gradleArgs = '-Dorg.gradle.daemon=false --stacktrace'
6+
boolean isPublish = BRANCH_NAME == 'publish'
47

58
// Note: using single quotes to avoid Groovy String interpolation leaking secrets.
69
def internalRepoArgsBat = '-PinternalObjectBoxRepo=%MVN_REPO_URL% ' +
@@ -67,6 +70,18 @@ pipeline {
6770
}
6871
}
6972
}
73+
74+
stage('package-javadoc-for-web') {
75+
when { expression { return isPublish } }
76+
steps {
77+
bat "gradlew $gradleArgs $internalRepoArgsBat :objectbox-java:packageJavadocForWeb"
78+
}
79+
post {
80+
always {
81+
archiveArtifacts artifacts: 'objectbox-java/build/dist/objectbox-java-web-api-docs.zip'
82+
}
83+
}
84+
}
7085
}
7186

7287
// For global vars see /jenkins/pipeline-syntax/globals
Collapse file

‎objectbox-java/build.gradle‎

Copy file name to clipboardExpand all lines: objectbox-java/build.gradle
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,15 @@ javadoc {
3838
}
3939

4040
// Note: use packageJavadocForWeb to get as ZIP.
41-
// Note: the style changes only work if using JDK 10+.
4241
task javadocForWeb(type: Javadoc) {
4342
group = 'documentation'
4443
description = 'Builds Javadoc incl. objectbox-java-api classes with web tweaks.'
4544

45+
javadocTool = javaToolchains.javadocToolFor {
46+
// Note: the style changes only work if using JDK 10+, 11 is latest LTS.
47+
languageVersion = JavaLanguageVersion.of(11)
48+
}
49+
4650
def srcApi = project(':objectbox-java-api').file('src/main/java/')
4751
if (!srcApi.directory) throw new GradleScriptException("Not a directory: ${srcApi}", null)
4852
// Hide internal API from javadoc artifact.

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.