Skip to content

Commit bf8da7d

Browse files
authored
Merge pull request #26 from asciidoctor/update-gradle
Upgrade gradle and asciidoctor-diagram to 2.2.3
2 parents cd58160 + 514e6bf commit bf8da7d

File tree

9 files changed

+38
-34
lines changed

9 files changed

+38
-34
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,34 @@
11
name: CI
2-
on: [push, pull_request]
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
311
jobs:
412
test:
513
strategy:
614
matrix:
7-
java: ['1.8', '11', '16']
15+
java: ['8', '11', '17']
816
os: [ubuntu-latest, macos-latest, windows-latest]
917
exclude:
1018
- os: macos-latest
11-
java: '1.8'
19+
java: '8'
1220
- os: macos-latest
13-
java: '16'
21+
java: '17'
1422
- os: windows-latest
15-
java: '1.8'
23+
java: '8'
1624
- os: windows-latest
17-
java: '16'
25+
java: '17'
1826
runs-on: ${{ matrix.os }}
1927
steps:
2028
- uses: actions/checkout@v2
21-
- uses: actions/setup-java@v1
29+
- uses: actions/setup-java@v2
2230
with:
31+
distribution: 'temurin'
2332
java-version: ${{ matrix.java }}
2433
- name: Build
2534
run: |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
properName=AsciidoctorJ Diagram Ditaamini
22
description=AsciidoctorJ Diagram Ditaamini bundles the Asciidoctor Diagram Ditaamini RubyGem (asciidoctor-diagram-ditaamini) so it can be loaded into the JVM using JRuby.
3-
version=1.0.1
3+
version=1.0.3
44
gem_name=asciidoctor-diagram-ditaamini
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
properName=AsciidoctorJ Diagram Plantuml
22
description=AsciidoctorJ Diagram Plantul bundles the Asciidoctor Diagram Plantuml RubyGem (asciidoctor-diagram-plantuml) so it can be loaded into the JVM using JRuby.
3-
version=1.2021.8
3+
version=1.2022.5
44
gem_name=asciidoctor-diagram-plantuml
55

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
properName=AsciidoctorJ Diagram
22
description=AsciidoctorJ Diagram bundles the Asciidoctor Diagram RubyGem (asciidoctor-diagram) so it can be loaded into the JVM using JRuby.
3-
version=2.2.1
3+
version=2.2.3
44
gem_name=asciidoctor-diagram

build.gradle

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,10 @@ buildscript {
1717
// modern plugins config
1818
plugins {
1919
id "signing"
20-
id "io.codearte.nexus-staging" version "0.22.0"
21-
id "de.marcphilipp.nexus-publish" version "0.4.0"
20+
id "io.github.gradle-nexus.publish-plugin" version "1.1.0"
2221
id 'com.github.jruby-gradle.base' version '2.0.0'
2322
}
2423

25-
apply plugin: 'io.codearte.nexus-staging'
26-
27-
28-
nexusStaging {
29-
if (project.hasProperty("sonatypeUsername")) {
30-
username = project.sonatypeUsername
31-
}
32-
if (project.hasProperty("sonatypePassword")) {
33-
password = project.sonatypePassword
34-
}
35-
repositoryDescription = "Release ${project.group} ${project.version}"
36-
}
37-
3824
// TIP use -PpublishRelease=true to active release behavior regardless of the version
3925
status = project.hasProperty('publishRelease') && project.publishRelease.toBoolean() ?
4026
'release' : ((version == 'unspecified' || version.endsWith('-SNAPSHOT')) ? 'snapshot' : 'release')
@@ -187,3 +173,18 @@ configure(subprojects.findAll { it.name != 'itest'}) {
187173
processResources.dependsOn jrubyPrepare
188174

189175
}
176+
177+
nexusPublishing {
178+
repositories {
179+
sonatype {
180+
if (project.hasProperty("sonatypeUsername")) {
181+
username = project.sonatypeUsername
182+
}
183+
if (project.hasProperty("sonatypePassword")) {
184+
password = project.sonatypePassword
185+
}
186+
repositoryDescription = "Release ${project.group} ${project.version}"
187+
}
188+
}
189+
clientTimeout = Duration.ofMinutes(5)
190+
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version=2.2.1
1+
version=2.2.3
22
gem_name=asciidoctor-diagram

gradle/publish.gradle

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
apply plugin: 'de.marcphilipp.nexus-publish'
1+
apply plugin: 'maven-publish'
22

33
publishing {
44
publications.create(project.ext.publicationName, MavenPublication) {
@@ -85,9 +85,3 @@ publishing {
8585
}
8686
}
8787
}
88-
89-
nexusPublishing {
90-
repositories {
91-
sonatype()
92-
}
93-
}

gradle/wrapper/gradle-wrapper.jar

285 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)