Skip to content

Commit 64e4f3a

Browse files
committed
Adding license headers + build
1 parent 5fe5aa9 commit 64e4f3a

File tree

8 files changed

+104
-5
lines changed

8 files changed

+104
-5
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build and test
2+
3+
on:
4+
push:
5+
# branches: [ develop, master ]
6+
branches:
7+
- '**'
8+
# pull_request:
9+
# branches: [ develop, master ]
10+
11+
jobs:
12+
validate:
13+
name: Validate Gradle wrapper
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Validate Gradle wrapper
18+
uses: gradle/wrapper-validation-action@v1
19+
build:
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
os: [ ubuntu-latest, macos-latest, windows-latest ]
24+
jdk: [ 11, 17 ]
25+
runs-on: ${{ matrix.os }}
26+
env:
27+
JDK_VERSION: ${{ matrix.jdk }}
28+
steps:
29+
- uses: actions/checkout@v3
30+
with:
31+
fetch-depth: 0
32+
- name: Set up JDK
33+
uses: actions/setup-java@v3
34+
with:
35+
java-version: ${{ matrix.jdk }}
36+
distribution: 'temurin'
37+
- name: Run the Gradle package task
38+
uses: gradle/gradle-build-action@v2
39+
with:
40+
arguments: build check

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@ replay_pid*
2525

2626
.idea
2727

28+
!gradle/wrapper/gradle-wrapper.jar
2829
build/
2930
.gradle/

build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ plugins {
1111
id 'signing'
1212
id 'maven-publish'
1313
id 'jacoco'
14-
// id 'com.github.johnrengelman.shadow' version "7.1.2"
1514
id 'com.diffplug.spotless' version '6.17.0'
1615
}
1716

@@ -35,11 +34,14 @@ project.ext {
3534
group 'com.github.dirkbolte.wiremock.extensions'
3635
version '0.0.1'
3736

37+
3838
publishing {
3939
publications {
4040
mavenJava(MavenPublication) {
4141
artifactId = 'state'
42+
4243
from components.java
44+
4345
pom {
4446
name = 'state'
4547
description = 'A WireMock extension to transfer state in between stubs'
@@ -117,6 +119,3 @@ idea {
117119
}
118120
}
119121

120-
121-
//shadowJar.mustRunAfter jar
122-

gradle/wrapper/gradle-wrapper.jar

60.2 KB
Binary file not shown.

src/main/java/com/github/dirkbolte/wiremock/state/ResponseTemplateModel.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright (C) 2023 Dirk Bolte
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package com.github.dirkbolte.wiremock.state;
217

318
import com.github.tomakehurst.wiremock.common.ListOrSingle;

src/main/java/com/github/dirkbolte/wiremock/state/StateHelper.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright (C) 2023 Dirk Bolte
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package com.github.dirkbolte.wiremock.state;
217

318
import com.github.jknack.handlebars.Options;

src/main/java/com/github/dirkbolte/wiremock/state/StateRecordingAction.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright (C) 2023 Dirk Bolte
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package com.github.dirkbolte.wiremock.state;
217

318
import com.fasterxml.jackson.annotation.JsonCreator;

src/test/java/com/github/dirkbolte/wiremock/state/StateTest.java

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/*
2+
* Copyright (C) 2023 Dirk Bolte
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
116
package com.github.dirkbolte.wiremock.state;
217

318
import com.fasterxml.jackson.core.JsonProcessingException;
@@ -6,7 +21,6 @@
621
import com.github.tomakehurst.wiremock.extension.Parameters;
722
import com.github.tomakehurst.wiremock.extension.responsetemplating.ResponseTemplateTransformer;
823
import com.github.tomakehurst.wiremock.junit5.WireMockExtension;
9-
import com.github.tomakehurst.wiremock.stubbing.StubMapping;
1024
import io.restassured.RestAssured;
1125
import io.restassured.http.ContentType;
1226
import org.apache.commons.lang3.RandomStringUtils;

0 commit comments

Comments
 (0)