Skip to content

Commit df501d3

Browse files
authored
Merge pull request #247 from jenkinsci/cleanup
Remove annotation-api dependency
2 parents 95baba2 + 9159e5c commit df501d3

File tree

7 files changed

+35
-10
lines changed

7 files changed

+35
-10
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
platform: [ubuntu-latest, macos-latest, windows-latest]
16-
jdk: [17]
17-
include:
18-
- platform: ubuntu-latest
19-
jdk: 11
20-
- platform: macos-latest
21-
jdk: 11
16+
jdk: [17, 21]
2217

2318
runs-on: ${{ matrix.platform }}
2419
name: on ${{ matrix.platform }} with JDK ${{ matrix.jdk }}
@@ -32,6 +27,10 @@ jobs:
3227
java-version: '${{ matrix.jdk }}'
3328
check-latest: true
3429
cache: 'maven'
30+
- name: Set up Maven
31+
uses: stCarolas/setup-maven@v4
32+
with:
33+
maven-version: 3.9.5
3534
- name: Build with Maven
3635
env:
3736
BROWSER: chrome-container

README.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
= Bootstrap 5 Jenkins Plugin
55

6-
image:https://ci.jenkins.io/job/Plugins/job/bootstrap5-api-plugin/job/master/badge/icon?subject=Jenkins%20CI[Jenkins, link=https://ci.jenkins.io/job/Plugins/job/bootstrap5-api-plugin/job/master/]
7-
image:https://github.com/jenkinsci/bootstrap5-api-plugin/workflows/GitHub%20CI/badge.svg?branch=master[GitHub Actions, link=https://github.com/jenkinsci/bootstrap5-api-plugin/actions]
6+
image:https://ci.jenkins.io/job/Plugins/job/bootstrap5-api-plugin/job/main/badge/icon?subject=Jenkins%20CI[Jenkins, link=https://ci.jenkins.io/job/Plugins/job/bootstrap5-api-plugin/job/main/]
7+
image:https://github.com/jenkinsci/bootstrap5-api-plugin/workflows/GitHub%20CI/badge.svg?branch=main[GitHub Actions, link=https://github.com/jenkinsci/bootstrap5-api-plugin/actions]
88
image:https://img.shields.io/github/issues-pr/jenkinsci/bootstrap5-api-plugin.svg[GitHub pull requests, link=https://github.com/jenkinsci/bootstrap5-api-plugin/pulls]
99

1010
Provides https://getbootstrap.com/[Bootstrap 5] for Jenkins Plugins. Bootstrap is -- according to their self-perception --

go.sh renamed to bin/go.sh

File renamed without changes.
File renamed without changes.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package ${package};
2+
${imports}
3+
/**
4+
* {@link ${class_to_assert}} specific assertions - Generated by CustomAssertionGenerator.
5+
*/
6+
@edu.hm.hafner.util.Generated(value="assertj-assertions-generator")
7+
public class ${custom_assertion_class} extends AbstractObjectAssert<${custom_assertion_class}, ${class_to_assert}> {
8+
9+
/**
10+
* Creates a new <code>{@link ${custom_assertion_class}}</code> to make assertions on actual ${class_to_assert}.
11+
* @param actual the ${class_to_assert} we want to make assertions on.
12+
*/
13+
public ${custom_assertion_class}(${class_to_assert} actual) {
14+
super(actual, ${custom_assertion_class}.class);
15+
}
16+
17+
/**
18+
* An entry point for ${custom_assertion_class} to follow AssertJ standard <code>assertThat()</code> statements.<br>
19+
* With a static import, one can write directly: <code>assertThat(my${class_to_assert})</code> and get specific assertion with code completion.
20+
* @param actual the ${class_to_assert} we want to make assertions on.
21+
* @return a new <code>{@link ${custom_assertion_class}}</code>
22+
*/
23+
@org.assertj.core.util.CheckReturnValue
24+
public static ${custom_assertion_class} assertThat(${class_to_assert} actual) {
25+
return new ${custom_assertion_class}(actual);
26+
}

etc/assertj-templates/assertions_entry_point_class_template.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package ${package};
55
* type-specific assertion objects.
66
*/
77
@edu.umd.cs.findbugs.annotations.SuppressFBWarnings("NM")
8-
@javax.annotation.Generated(value="assertj-assertions-generator")
8+
@edu.hm.hafner.util.Generated(value="assertj-assertions-generator")
99
public class Assertions extends org.assertj.core.api.Assertions {
1010
${all_assertions_entry_points}
1111
/**

etc/assertj-templates/soft_assertions_entry_point_class_template.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ package ${package};
44
* Entry point for soft assertions of different data types.
55
*/
66
@edu.umd.cs.findbugs.annotations.SuppressFBWarnings("NM")
7-
@javax.annotation.Generated(value="assertj-assertions-generator")
7+
@edu.hm.hafner.util.Generated(value="assertj-assertions-generator")
88
public class SoftAssertions extends org.assertj.core.api.AutoCloseableSoftAssertions {
99
${all_assertions_entry_points}
1010
}

0 commit comments

Comments
 (0)