Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor updates #701

Merged
merged 21 commits into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
967cd52
Add renovate.json
renovate[bot] Dec 23, 2023
1e3da31
chore(deps): update plugin com.github.ben-manes.versions to v0.50.0
renovate[bot] Jan 5, 2024
f70c44b
fix(deps): update dependency org.ysb33r.gradle.jruby:jrubygradle-reso…
renovate[bot] Jan 5, 2024
b245a88
chore(deps): update plugin org.ysb33r.gradletest to v3.0.0-alpha.4
renovate[bot] Jan 5, 2024
796dfe3
chore(deps): update plugin org.ajoberstar.git-publish to v2.1.3
renovate[bot] Jan 5, 2024
02600e7
chore(deps): update plugin fi.linuxbox.download.worker to v0.4
renovate[bot] Jan 5, 2024
452369e
chore(deps): update actions/setup-java action to v4
renovate[bot] Jan 5, 2024
c0a2c87
chore(deps): update plugin net.ossindex.audit to v0.4.11
renovate[bot] Jan 5, 2024
75b24ed
chore(deps): update plugin org.ysb33r.cloudci to v2.7
renovate[bot] Jan 5, 2024
71eaee5
fix(deps): update dependency org.jsoup:jsoup to v1.17.2
renovate[bot] Jan 5, 2024
bbe96b7
fix(deps): update dependency commons-io:commons-io to v2.15.1
renovate[bot] Jan 5, 2024
d3b9a46
chore(deps): update plugin org.ysb33r.os to v0.10
renovate[bot] Jan 5, 2024
91e3917
chore(deps): update plugin org.ysb33r.os to v1
renovate[bot] Jan 5, 2024
179aa13
chore(deps): update plugin org.ysb33r.cloudci.appveyor.testreporter t…
renovate[bot] Jan 5, 2024
19181dd
chore(deps): update plugin org.ajoberstar.git-publish to v4
renovate[bot] Jan 5, 2024
7da09d6
chore(deps): update plugin net.nemerosa.versioning to v2.15.1
renovate[bot] Jan 5, 2024
811e379
chore(deps): update plugin com.github.kt3k.coveralls to v2.12.2
renovate[bot] Jan 5, 2024
35ee035
chore(deps): update plugin org.ysb33r.cloudci to v4
renovate[bot] Jan 5, 2024
39a4fff
chore(deps): update actions/checkout action to v4
renovate[bot] Jan 9, 2024
20afba2
Enable Gradle caching flag
Goooler Jan 9, 2024
ce6f355
Tweak gradle-build-action usages
Goooler Jan 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 28 additions & 49 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,58 +4,47 @@ jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 11
distribution: zulu
# Licensing
- name: Licensing
uses: gradle/gradle-build-action@v2
- uses: gradle/gradle-build-action@v2
with:
arguments: --console=plain -S license
# Coding style
gradle-home-cache-cleanup: true
- name: Licensing
run: ./gradlew --console=plain -S license
- name: Coding style
uses: gradle/gradle-build-action@v2
with:
arguments: --console=plain -S codenarcAll
run: ./gradlew --console=plain -S codenarcAll
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
# use a short path to avoid exceeding the path limit on Windows... sigh
with:
path: 'w'
- uses: actions/setup-java@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 11
distribution: zulu
- uses: gradle/gradle-build-action@v2
with:
gradle-home-cache-cleanup: true
- name: Cache offline repository
uses: actions/cache@v3
with:
path: testfixtures/offline-repo/build/repo
key: ${{ runner.os }}-offline-repo-${{ hashFiles('module-versions.properties') }}
restore-keys: ${{ runner.os }}-offline-repo-
# Build
- name: Build offline repository
uses: gradle/gradle-build-action@v2
with:
arguments: --console=plain --no-build-cache :testfixtures-offline-repo:buildOfflineRepositories
run: ./gradlew --console=plain --no-build-cache :testfixtures-offline-repo:buildOfflineRepositories
- name: Build
uses: gradle/gradle-build-action@v2
with:
arguments: --console=plain --warning-mode=all -s clean assemble
# Test
run: ./gradlew --console=plain --warning-mode=all -s clean assemble
# TODO: Resolve the gem integration test issue. See https://github.com/asciidoctor/asciidoctor-gradle-plugin/issues/694
- name: Test
uses: gradle/gradle-build-action@v2
with:
arguments: --console=plain --warning-mode=all -s check --no-parallel -Djava.net.preferIPv4Stack=true -x gradleTest -x :asciidoctor-gradle-jvm-gems:IntTest --scan
run: ./gradlew --console=plain --warning-mode=all -s check --no-parallel -x gradleTest -x :asciidoctor-gradle-jvm-gems:IntTest --scan
env:
JAVA_TOOL_OPTIONS: -Djava.net.preferIPv4Stack=true
# Stop gradlew to avoid locking issues
- name: Cleanup
uses: gradle/gradle-build-action@v2
with:
arguments: --stop
run: ./gradlew --stop
build:
strategy:
matrix:
Expand All @@ -65,40 +54,30 @@ jobs:
# java: [ 8, 11 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: zulu
- uses: gradle/gradle-build-action@v2
with:
gradle-home-cache-cleanup: true
- name: Cache offline repository
uses: actions/cache@v3
with:
path: testfixtures/offline-repo/build/repo
key: ${{ runner.os }}-offline-repo-${{ hashFiles('module-versions.properties') }}
restore-keys: ${{ runner.os }}-offline-repo-
- name: Build offline repository
uses: gradle/gradle-build-action@v2
with:
arguments: --console=plain --no-build-cache :testfixtures-offline-repo:buildOfflineRepositories
# Build
run: ./gradlew --console=plain --no-build-cache :testfixtures-offline-repo:buildOfflineRepositories
- name: Build
uses: gradle/gradle-build-action@v2
with:
arguments: -i -S --console=plain --no-build-cache assemble
# Integration tests
run: ./gradlew -i -S --console=plain --no-build-cache assemble
- name: Integration tests (without slides)
uses: gradle/gradle-build-action@v2
with:
arguments: -i -s --console=plain --no-build-cache test intTest remoteTest --scan
run: ./gradlew -i -s --console=plain --no-build-cache test intTest remoteTest --scan
# arguments: -i -s --console=plain --no-build-cache test intTest remoteTest -x asciidoctor-gradle-jvm-slides:intTest
# arguments: -i -s --console=plain --no-build-cache test intTest remoteTest -x asciidoctor-gradle-slides-export:intTest -x asciidoctor-gradle-jvm-slides:intTest
# TODO: See https://github.com/asciidoctor/asciidoctor-gradle-plugin/issues/695
# - name: Integration tests (slides only)
# uses: eskatos/gradle-command-action@v2
# with:
# arguments: -i -s --console=plain --no-build-cache test asciidoctor-gradle-jvm-slides:intTest asciidoctor-gradle-slides-export:intTest
# Gradle tests
# uses: ./gradlew -i -s --console=plain --no-build-cache test asciidoctor-gradle-jvm-slides:intTest asciidoctor-gradle-slides-export:intTest
- name: Gradle tests
uses: gradle/gradle-build-action@v2
with:
arguments: -i -s --console=plain --no-build-cache gradleTest --scan
run: ./gradlew -i -s --console=plain --no-build-cache gradleTest --scan
20 changes: 9 additions & 11 deletions .github/workflows/push-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,19 @@ jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 11
distribution: zulu
- name: Combine documentation
uses: gradle/gradle-build-action@v2
- uses: gradle/gradle-build-action@v2
with:
build-root-directory: docs
arguments: --console=plain -q combineDocs
gradle-home-cache-cleanup: true
- run: cd docs
- name: Combine documentation
run: ./gradlew --console=plain -q combineDocs
- name: Publish documentation
uses: gradle/gradle-build-action@v2
with:
build-root-directory: docs
arguments: "--console=plain --info :antora:publishDocs :gh-pages:publishDocs
run: ./gradlew --console=plain --info :antora:publishDocs :gh-pages:publishDocs
-Dorg.ajoberstar.grgit.auth.username=${{ secrets.GITHUB_PUBLISH_USER }}
-Dorg.ajoberstar.grgit.auth.password=${{ secrets.GITHUB_PUBLISH_KEY }}
-Dorg.ajoberstar.grgit.auth.force=hardcoded"
-Dorg.ajoberstar.grgit.auth.force=hardcoded
18 changes: 9 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,18 @@
*/

plugins {
id 'net.nemerosa.versioning' version '2.6.1' apply false
id 'com.github.ben-manes.versions' version '0.17.0' apply false
id 'net.nemerosa.versioning' version '2.15.1' apply false
id 'com.github.ben-manes.versions' version '0.50.0' apply false
id 'com.github.hierynomus.license' version '0.16.1' apply false
id 'com.github.kt3k.coveralls' version '2.8.2' apply false
id 'net.ossindex.audit' version '0.1.1' apply false
id 'com.github.kt3k.coveralls' version '2.12.2' apply false
id 'net.ossindex.audit' version '0.4.11' apply false
id 'org.kordamp.jdeps' version '0.2.0' apply false
id 'fi.linuxbox.download.worker' version '0.3' apply false
id 'fi.linuxbox.download.worker' version '0.4' apply false
id 'org.ysb33r.ivypot' version '1.0.0' apply false
id 'org.ysb33r.os' version '0.9' apply false
id 'org.ysb33r.cloudci' version '2.5' apply false
id 'org.ysb33r.cloudci.appveyor.testreporter' version '2.5' apply false
id 'org.ysb33r.gradletest' version '3.0.0-alpha.3' apply false
id 'org.ysb33r.os' version '1.0.0' apply false
id 'org.ysb33r.cloudci' version '4.0.0' apply false
id 'org.ysb33r.cloudci.appveyor.testreporter' version '4.0.0' apply false
id 'org.ysb33r.gradletest' version '3.0.0-alpha.4' apply false
id 'idea'
}

Expand Down
2 changes: 1 addition & 1 deletion docs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
id 'idea'
id 'org.asciidoctor.jvm.convert' apply false
id 'org.asciidoctor.editorconfig' apply false
id 'org.ajoberstar.git-publish' version '2.1.1' apply false
id 'org.ajoberstar.git-publish' version '4.2.1' apply false
}

repositories {
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ project_issues = https://github.com/asciidoctor/asciidoctor-gradle-plugin/i
project_vcs = https://github.com/asciidoctor/asciidoctor-gradle-plugin.git

cglibVersion = 3.3.0
jsoupVersion = 1.13.1
jsoupVersion = 1.17.2
spockVersion = 2.3-groovy-3.0
grolifantVersion = 2.2.3
jacocoVersion = 0.8.6
codenarcVersion = 3.3.0
nodejsGradleVersion = 2.2.0
pluginJrubySimpleVersion = 1.0.0
pluginJrubySimpleVersion = 1.0.1
pluginPublishPlugin = 1.2.1

org.gradle.daemon = true
org.gradle.caching = true
org.gradle.parallel = true

org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m
6 changes: 6 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
]
}
2 changes: 1 addition & 1 deletion testfixtures/jvm/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies {
implementation gradleApi()
implementation gradleTestKit()
api "org.ysb33r.gradle:grolifant-herd:${agProject.versionOf('grolifant')}"
api 'commons-io:commons-io:2.6'
api 'commons-io:commons-io:2.15.1'
implementation "org.jsoup:jsoup:$jsoupVersion"
implementation "cglib:cglib-nodep:$cglibVersion"
implementation("org.spockframework:spock-core:${agProject.versionOf('spock')}") {
Expand Down