From c31bdca6a6852ea72073ee45a4d782dc18671337 Mon Sep 17 00:00:00 2001 From: Luck Date: Sun, 8 Dec 2024 22:40:39 +0000 Subject: [PATCH] Configure publishing --- .github/workflows/ci.yml | 2 +- build.gradle | 16 +++++++++++++--- settings.gradle | 2 +- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d4edbe5..c4598d8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: uses: gradle/gradle-build-action@v2 - name: Run build and tests with Gradle wrapper - run: ./gradlew test build + run: ./gradlew test build PdockerTests - name: Publish test report uses: mikepenz/action-junit-report@v3 diff --git a/build.gradle b/build.gradle index b609f2b..9943e7b 100644 --- a/build.gradle +++ b/build.gradle @@ -11,9 +11,9 @@ version = '0.1-SNAPSHOT' java { - toolchain { - languageVersion = JavaLanguageVersion.of(11) - } + //toolchain { + // languageVersion = JavaLanguageVersion.of(11) + //} sourceCompatibility = '1.8' targetCompatibility = '1.8' @@ -27,6 +27,7 @@ repositories { } test { + onlyIf { project.hasProperty('dockerTests') } useJUnitPlatform() testLogging { events = [TestLogEvent.PASSED, TestLogEvent.FAILED, TestLogEvent.SKIPPED] @@ -60,6 +61,15 @@ dependencies { } publishing { + //repositories { + // maven { + // url = 'https://oss.sonatype.org/content/repositories/snapshots' + // credentials { + // username = sonatypeUsername + // password = sonatypePassword + // } + // } + //} publications { mavenJava(MavenPublication) { from components.java diff --git a/settings.gradle b/settings.gradle index 885cd8e..7f4041c 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1 @@ -rootProject.name = 'rest-api-client' +rootProject.name = 'rest-api-java-client'