Skip to content

Commit df4be1a

Browse files
committed
Facelift
1 parent 1e8f6b7 commit df4be1a

24 files changed

+534
-190
lines changed

.github/workflows/build.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: CI Build
2+
on: [push]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v2
8+
- name: Set up JDK 11
9+
uses: actions/setup-java@v2
10+
with:
11+
java-version: '11'
12+
distribution: 'adopt'
13+
- name: Build with Gradle
14+
run: ./gradlew build
15+
- name: Publish Unit Test Results
16+
uses: EnricoMi/publish-unit-test-result-action/composite@v1
17+
if: always()
18+
with:
19+
files: build/test-results/**/*.xml

.github/workflows/publish.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish package to the Maven Central Repository
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Set up Java
11+
uses: actions/setup-java@v2
12+
with:
13+
java-version: '11'
14+
distribution: 'adopt'
15+
- name: Publish package
16+
run: gradle publish
17+
env:
18+
OSSRH_USER: ${{ secrets.OSSRH_USER }}
19+
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
20+
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
21+
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}

HEADER

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

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[![CI](https://github.com/dajudge/kafkaproxy/actions/workflows/build.yaml/badge.svg)](https://github.com/dajudge/kindcontainer/actions/workflows/build.yaml)
2+
3+
14
kindcontainer
25
---
36
A Java-based [testcontainers.org](https://www.testcontainers.org/) container implementation that uses

bintray.gradle

Lines changed: 0 additions & 22 deletions
This file was deleted.

build.gradle

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ plugins {
22
id "java"
33
id "java-library"
44
id "maven-publish"
5-
id "com.jfrog.bintray" version "1.8.4"
65
id "com.palantir.git-version" version "0.12.2"
6+
id "com.github.hierynomus.license" version "0.16.1"
77
}
88

99
sourceCompatibility = 1.8
@@ -20,16 +20,12 @@ version versionDetails.isCleanTag && gitVersion().startsWith("release/")
2020
: System.currentTimeMillis() + "-SNAPSHOT"
2121
println "Build version $version"
2222

23-
apply from: "publishing.gradle"
24-
if (!version.endsWith("-SNAPSHOT")) {
25-
apply from: "bintray.gradle"
26-
} else {
27-
println "Not a tag build. Not configuring bintray."
28-
}
23+
apply from: "${rootProject.projectDir}/publishing.gradle"
24+
apply from: "${rootProject.projectDir}/signing.gradle"
2925

3026
dependencies {
31-
api "io.fabric8:kubernetes-client:4.6.4"
32-
api "org.testcontainers:testcontainers:1.14.1"
27+
api "io.fabric8:kubernetes-client:5.5.0"
28+
api "org.testcontainers:testcontainers:1.15.3"
3329

3430
testImplementation "junit:junit:4.13"
3531
testImplementation "org.awaitility:awaitility:4.0.2"
@@ -38,8 +34,22 @@ dependencies {
3834
testRuntimeOnly "ch.qos.logback:logback-classic:1.2.3"
3935
}
4036

37+
java {
38+
withJavadocJar()
39+
withSourcesJar()
40+
}
41+
42+
4143
test {
44+
// suppress completely stupid stacktrace dump by fabric8
45+
systemProperty "kubernetes.disable.autoConfig", "true"
46+
47+
4248
testLogging {
4349
showStandardStreams = true
4450
}
45-
}
51+
}
52+
53+
license {
54+
header file("${project.rootDir}/HEADER")
55+
}
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-5.3.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

gradlew.bat

Lines changed: 100 additions & 100 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)