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 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
Original file line number Diff line number Diff line change @@ -11,15 +11,32 @@ Add a dependency to your Maven/Gradle buildscript:
1111e.g.
1212
1313``` 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+ }
1523```
1624
1725``` 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 >
2340```
2441
2542Then, 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'
1111
1212
1313java {
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
2929test {
30+ onlyIf { project. hasProperty(' dockerTests' ) }
3031 useJUnitPlatform()
3132 testLogging {
3233 events = [TestLogEvent . PASSED , TestLogEvent . FAILED , TestLogEvent . SKIPPED ]
@@ -60,6 +61,15 @@ dependencies {
6061}
6162
6263publishing {
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
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