Skip to content

Commit c31bdca

Browse files
committed
Configure publishing
1 parent 3938f6f commit c31bdca

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
uses: gradle/gradle-build-action@v2
3232

3333
- name: Run build and tests with Gradle wrapper
34-
run: ./gradlew test build
34+
run: ./gradlew test build PdockerTests
3535

3636
- name: Publish test report
3737
uses: mikepenz/action-junit-report@v3

build.gradle

+13-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ version = '0.1-SNAPSHOT'
1111

1212

1313
java {
14-
toolchain {
15-
languageVersion = JavaLanguageVersion.of(11)
16-
}
14+
//toolchain {
15+
// languageVersion = JavaLanguageVersion.of(11)
16+
//}
1717

1818
sourceCompatibility = '1.8'
1919
targetCompatibility = '1.8'
@@ -27,6 +27,7 @@ repositories {
2727
}
2828

2929
test {
30+
onlyIf { project.hasProperty('dockerTests') }
3031
useJUnitPlatform()
3132
testLogging {
3233
events = [TestLogEvent.PASSED, TestLogEvent.FAILED, TestLogEvent.SKIPPED]
@@ -60,6 +61,15 @@ dependencies {
6061
}
6162

6263
publishing {
64+
//repositories {
65+
// maven {
66+
// url = 'https://oss.sonatype.org/content/repositories/snapshots'
67+
// credentials {
68+
// username = sonatypeUsername
69+
// password = sonatypePassword
70+
// }
71+
// }
72+
//}
6373
publications {
6474
mavenJava(MavenPublication) {
6575
from components.java

settings.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
rootProject.name = 'rest-api-client'
1+
rootProject.name = 'rest-api-java-client'

0 commit comments

Comments
 (0)