Compare commits

...

9 Commits

Author SHA1 Message Date
Uwe Kubosch 89740f105b Release 2.1.0-beta.5 with GitHub Pages 2023-05-18 15:57:10 +02:00
Uwe Kubosch d1566c674e Release 2.1.0-beta.4 2023-05-18 15:24:34 +02:00
Uwe Kubosch b9941aa4eb Yaml cleanup 2023-05-18 14:37:43 +02:00
Uwe Kubosch 3a744909bd Try building with Java 8 using jruby-gradle-plugin:2.0.2 2023-05-18 14:18:25 +02:00
Uwe Kubosch b13fa01a8e Skip building with Java 8 for now. 2023-05-18 13:57:06 +02:00
Uwe Kubosch e56aafd9f9 GitHub Actions: Use built-in gradle caching in actions/setup-java@v3 2023-05-18 13:43:52 +02:00
Uwe Kubosch 4076c2cf26 Test Java 8 in GitHub Actions 2023-05-18 13:37:18 +02:00
Uwe Kubosch 3136c014d1 Update to actions/setup-java@v3 in GitHub Actions 2023-05-18 13:28:40 +02:00
Uwe Kubosch 771db5062f Fix documentation site generation. 2023-05-18 12:59:24 +02:00
7 changed files with 77 additions and 118 deletions

View File

@ -1,26 +1,15 @@
name: Build
on: [push, pull_request]
on: [ push, pull_request ]
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
with:
java-version: 11
# Cache
- name: Cache .gradle/caches
uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-cache-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle-cache-
- name: Cache .gradle/wrapper
uses: actions/cache@v1
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle-wrapper-
distribution: 'temurin'
java-version: '11'
cache: 'gradle'
# Licensing
- name: Licensing
uses: eskatos/gradle-command-action@v1
@ -38,22 +27,11 @@ jobs:
# use a short path to avoid exceeding the path limit on Windows... sigh
with:
path: 'w'
- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
with:
java-version: 11
# Cache
- name: Cache .gradle/caches
uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-cache-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle-cache-
- name: Cache .gradle/wrapper
uses: actions/cache@v1
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle-wrapper-
distribution: 'temurin'
java-version: '11'
cache: 'gradle'
# Build
- name: Build
uses: eskatos/gradle-command-action@v1
@ -89,84 +67,60 @@ jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
os: [ ubuntu-latest, macos-latest ]
java: [ 8, 11 ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: ${{ matrix.java }}
# Cache
- name: Cache .gradle/caches
uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-cache-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle-cache-
- name: Cache .gradle/wrapper
uses: actions/cache@v1
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle-wrapper-
# Build
- name: Build
uses: eskatos/gradle-command-action@v1
with:
arguments: -i -S --console=plain --no-build-cache assemble validateTaskProperties
# Unit tests
- name: Unit tests
uses: eskatos/gradle-command-action@v1
with:
arguments: -i -s --console=plain --no-build-cache test
# Integration tests
- name: Integration tests
uses: eskatos/gradle-command-action@v1
with:
arguments: -i -s --console=plain --no-build-cache intTest
# Gradle tests
- name: Compatibility tests
uses: eskatos/gradle-command-action@v1
with:
arguments: -i -s --console=plain --no-build-cache gradleTest
- name: Store reports
uses: actions/upload-artifact@v2
if: always()
with:
name: Test reports
path: "**/build/reports/**"
retention-days: 5
- uses: actions/checkout@v1
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'gradle'
# Build
- name: Build
uses: eskatos/gradle-command-action@v1
with:
arguments: -i -S --console=plain --no-build-cache assemble validateTaskProperties
# Unit tests
- name: Unit tests
uses: eskatos/gradle-command-action@v1
with:
arguments: -i -s --console=plain --no-build-cache test
# Integration tests
- name: Integration tests
uses: eskatos/gradle-command-action@v1
with:
arguments: -i -s --console=plain --no-build-cache intTest
# Gradle tests
- name: Compatibility tests
uses: eskatos/gradle-command-action@v1
with:
arguments: -i -s --console=plain --no-build-cache gradleTest
- name: Store reports
uses: actions/upload-artifact@v2
if: always()
with:
name: Test reports
path: "**/build/reports/**"
retention-days: 5
publish:
runs-on: ubuntu-latest
# on:
# push:
# branches:
# - release
needs: build
if: ${{ github.repository == 'jruby-gradle/jruby-gradle-plugin' && github.ref == 'refs/heads/release' }}
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: 8
- name: Cache .gradle/caches
uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-cache-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle-cache-
- name: Cache .gradle/wrapper
uses: actions/cache@v1
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle-wrapper-
- name: Publish to Gradle Portal
uses: eskatos/gradle-command-action@v1
with:
arguments: -i --console=plain --no-build-cache assemble publishPlugins -Dgradle.publish.key=${{ secrets.PUBLISH_KEY }} -Dgradle.publish.secret=${{ secrets.PUBLISH_SECRET }}
- name: Publish documentation
uses: eskatos/gradle-command-action@v1
with:
arguments: -i --console=plain --no-build-cache docs:publishGhPages -Dorg.ajoberstar.grgit.auth.username=${{ secrets.GH_PAGES_PUSH_USER }} -Dorg.ajoberstar.grgit.auth.password=${{ secrets.GH_PAGES_PUSH_TOKEN }} -Dorg.ajoberstar.grgit.auth.force=hardcoded
- uses: actions/checkout@v1
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '8'
cache: 'gradle'
- name: Publish to Gradle Portal
uses: eskatos/gradle-command-action@v1
with:
arguments: -i --console=plain --no-build-cache assemble publishPlugins -Dgradle.publish.key=${{ secrets.PUBLISH_KEY }} -Dgradle.publish.secret=${{ secrets.PUBLISH_SECRET }}
- name: Publish documentation
uses: eskatos/gradle-command-action@v1
with:
# arguments: -i --console=plain --no-build-cache docs:publishGhPages -Dorg.ajoberstar.grgit.auth.username=${{ secrets.GH_PAGES_PUSH_USER }} -Dorg.ajoberstar.grgit.auth.password=${{ secrets.GH_PAGES_PUSH_TOKEN }} -Dorg.ajoberstar.grgit.auth.force=hardcoded
arguments: -i --console=plain --no-build-cache docs:publishGhPages -Dorg.ajoberstar.grgit.auth.username=${{ secrets.GH_PAGES_PUSH_TOKEN }} -Dorg.ajoberstar.grgit.auth.password=${{ secrets.GH_PAGES_PUSH_TOKEN }} -Dorg.ajoberstar.grgit.auth.force=hardcoded

View File

@ -63,7 +63,7 @@ gemResolverStrategy {
excludeConfigurations 'foo', 'bar' // <1>
excludeModule 'foo.*' // <2>
excludeModule 'foo.*', /1\.2.*/ // <3>
useGemVersionResolver 'gems2'
useGemVersionResolver 'gems2' // <4>
}
----
<1> Exclude configurations `foo` and `bar` from being considered for GEM resolver strategies.

View File

@ -1,7 +1,7 @@
base_url: http://jruby-gradle.org/
local_tz: UTC
haml:
:ugly: true
generation:
:in_threads: 0
asciidoctor:
:safe: unsafe
:base_dir: null

View File

@ -5,7 +5,8 @@ buildscript {
}
dependencies {
/* wow. so recursion */
classpath "com.github.jruby-gradle:jruby-gradle-plugin:1.1.1"
classpath "com.github.jruby-gradle:jruby-gradle-plugin:2.0.2"
classpath 'org.ysb33r.gradle:grolifant:0.17.0'
}
}
apply plugin: 'groovy'
@ -18,14 +19,18 @@ configurations {
asciidoctor
}
dependencies {
asciidoctor('rubygems:awestruct:0.5.5')
asciidoctor('rubygems:coderay:1.1.0')
repositories {
ruby.gems()
}
/* later versions of 1.6.x have a dependency incompatibility with
* mime-types 2.x
*/
asciidoctor('rubygems:rest-client:1.6.7') { force = true }
dependencies {
asciidoctor('rubygems:awestruct:0.6.6')
asciidoctor('rubygems:coderay:1.1.3')
asciidoctor('rubygems:http_parser.rb:0.6.0')
asciidoctor('rubygems:public_suffix:4.0.7')
asciidoctor('rubygems:spoon:0.0.6')
asciidoctor('rubygems:htmlcompressor:0.4.0')
asciidoctor('rubygems:uglifier:4.2.0')
}
task prepareGroovyDocs(type: Copy) {

View File

@ -16,7 +16,7 @@ documentation intends only to cover the JRuby Gradle plugin's functionality.
[source,gradle]
.build.gradle
----
include::../examples/basic-topology.gradle[]
include::examples/basic-topology.gradle[]
----

View File

@ -17,7 +17,7 @@ dependencies {
/* Using the built-in `gems` configuration to describe the
* dependencies our JRubyExec-based tasks will need.
*/
gems "rubygems:asciidoctor:1.5.2+"
gems "rubygems:asciidoctor:2.0.20+"
}
task verifyAsciidoctorWorks(type: JRubyExec) {

View File

@ -1,4 +1,4 @@
version=2.1.0-beta.2
version=2.1.0-beta.5
group=com.github.jruby-gradle
copyrightYear=2014-2023