Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @bitweb/tech
8 changes: 3 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
version: 2

updates:

- package-ecosystem: "gradle"
directory: "/"
schedule:
interval: "monthly"
reviewers:
- "Jorich"
- "pr11t"
- "rammrain"
groups:
all-deps-minor-and-patch:
patterns:
- "*"
update-types:
- "minor"
- "patch"
- "patch"
7 changes: 7 additions & 0 deletions .github/scripts/publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

set -o errexit

./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --info

curl -X POST -H "Authorization: Bearer $(printf \"${ORG_GRADLE_PROJECT_mavenCentralUsername}:${ORG_GRADLE_PROJECT_mavenCentralPassword}\" | base64)" https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/ee.bitweb
9 changes: 4 additions & 5 deletions .github/workflows/build-and-test-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-version: 8.4

- name: Run build
run: ./gradlew build -x test

- name: Run Sonar analysis
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
name: Publish package to the Maven Central Repository

on:
release:
types: [created]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
with:
gradle-version: 8.5

- name: Publish packages
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.MAVEN_CENTRAL_SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.MAVEN_CENTRAL_SIGNING_KEY_PASSWORD }}
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
run: ./.github/scripts/publish.sh
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Given library has helper functions that make it a bit easier to test various fun

```
// https://mvnrepository.com/artifact/ee.bitweb/spring-test-core
testImplementation group: 'ee.bitweb', name: 'spring-test-core', version: '2.0.0'
testImplementation group: 'ee.bitweb', name: 'spring-test-core', version: '2.0.1'
```

Review available versions in [Maven Central](https://mvnrepository.com/artifact/ee.bitweb/spring-test-core).
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ plugins {
}

group 'ee.bitweb'
version '2.0.0'
version '2.0.1'
java {
sourceCompatibility = '17'
}
Expand Down
5 changes: 0 additions & 5 deletions deploy/injectGradleCredentials.sh

This file was deleted.

4 changes: 2 additions & 2 deletions library.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ nexusPublishing {
repositories {
if (project.hasProperty('mavenCentralUsername') & project.hasProperty('mavenCentralPassword')) {
sonatype {
nexusUrl.set(uri("https://oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://oss.sonatype.org/content/repositories/snapshots"))
nexusUrl.set(uri("https://ossrh-staging-api.central.sonatype.com/service/local/"))
snapshotRepositoryUrl.set(uri("https://central.sonatype.com/repository/maven-snapshots/"))
username = project.mavenCentralUsername
password = project.mavenCentralPassword
}
Expand Down
4 changes: 2 additions & 2 deletions sonarcloud.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ buildscript {
}
}
dependencies {
classpath("org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:4.4.1.3373")
classpath("org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:6.2.0.5505")
}
}
apply plugin: org.sonarqube.gradle.SonarQubePlugin

sonarqube {
sonar {
properties {
property "sonar.projectKey", "BitWeb_java-test-core-lib"
property "sonar.organization", "bitweb-oss"
Expand Down