File tree Expand file tree Collapse file tree 4 files changed +38
-11
lines changed Expand file tree Collapse file tree 4 files changed +38
-11
lines changed Original file line number Diff line number Diff line change 31
31
uses : gradle/gradle-build-action@v2
32
32
33
33
- name : Run build and tests with Gradle wrapper
34
- run : ./gradlew test build
34
+ run : ./gradlew test build PdockerTests
35
35
36
36
- name : Publish test report
37
37
uses : mikepenz/action-junit-report@v3
Original file line number Diff line number Diff line change @@ -11,15 +11,32 @@ Add a dependency to your Maven/Gradle buildscript:
11
11
e.g.
12
12
13
13
``` groovy
14
- compileOnly 'net.luckperms:rest-api-client:0.1'
14
+ repositories {
15
+ maven {
16
+ url 'https://oss.sonatype.org/content/repositories/snapshots'
17
+ }
18
+ }
19
+
20
+ dependencies {
21
+ implementation 'net.luckperms:rest-api-java-client:0.1-SNAPSHOT'
22
+ }
15
23
```
16
24
17
25
``` xml
18
- <dependency >
19
- <groupId >net.luckperms</groupId >
20
- <artifactId >rest-api-client</artifactId >
21
- <version >0.1</version >
22
- </dependency >
26
+ <repositories >
27
+ <repository >
28
+ <id >sonatype-snapshots</id >
29
+ <url >https://oss.sonatype.org/content/repositories/snapshots</url >
30
+ </repository >
31
+ </repositories >
32
+
33
+ <dependencies >
34
+ <dependency >
35
+ <groupId >net.luckperms</groupId >
36
+ <artifactId >rest-api-java-client</artifactId >
37
+ <version >0.1-SNAPSHOT</version >
38
+ </dependency >
39
+ </dependencies >
23
40
```
24
41
25
42
Then, create a new client and start making calls:
Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ version = '0.1-SNAPSHOT'
11
11
12
12
13
13
java {
14
- toolchain {
15
- languageVersion = JavaLanguageVersion . of(11 )
16
- }
14
+ // toolchain {
15
+ // languageVersion = JavaLanguageVersion.of(11)
16
+ // }
17
17
18
18
sourceCompatibility = ' 1.8'
19
19
targetCompatibility = ' 1.8'
@@ -27,6 +27,7 @@ repositories {
27
27
}
28
28
29
29
test {
30
+ onlyIf { project. hasProperty(' dockerTests' ) }
30
31
useJUnitPlatform()
31
32
testLogging {
32
33
events = [TestLogEvent . PASSED , TestLogEvent . FAILED , TestLogEvent . SKIPPED ]
@@ -60,6 +61,15 @@ dependencies {
60
61
}
61
62
62
63
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
+ // }
63
73
publications {
64
74
mavenJava(MavenPublication ) {
65
75
from components. java
Original file line number Diff line number Diff line change 1
- rootProject. name = ' rest-api-client'
1
+ rootProject. name = ' rest-api-java- client'
You can’t perform that action at this time.
0 commit comments